diff options
-rw-r--r-- | content/_index.md | 3 | ||||
-rw-r--r-- | content/blog/facebook-clegg.md | 9 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/li.html | 6 | ||||
-rw-r--r-- | themes/problematic/layouts/_default/list.html | 5 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/head.html | 13 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/header.html | 12 | ||||
-rw-r--r-- | themes/problematic/layouts/partials/posts.html | 6 |
7 files changed, 49 insertions, 5 deletions
diff --git a/content/_index.md b/content/_index.md index bfc0cf0..e9f54cf 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,3 +1,4 @@ -# Toss! + There is not much to see from the top of this particular mountain. + <img src="/img/poser_guy.png" alt="Me Me on a mountain" style="margin-left: 0px;"> </div> diff --git a/content/blog/facebook-clegg.md b/content/blog/facebook-clegg.md new file mode 100644 index 0000000..2c2c335 --- /dev/null +++ b/content/blog/facebook-clegg.md @@ -0,0 +1,9 @@ +--- +title: Nick Clegg is a total trumpet +date: 2021-10-31 +draft: false +--- +And so is the other guy... + +{{< youtube pDCtkB1IZWk >}} + diff --git a/themes/problematic/layouts/_default/li.html b/themes/problematic/layouts/_default/li.html new file mode 100644 index 0000000..2a7f3d9 --- /dev/null +++ b/themes/problematic/layouts/_default/li.html @@ -0,0 +1,6 @@ +<li> + <a href="{{ .Permalink }}"> + <small><time>{{ .Date.Format "Jan 2, 2006" }}</time></small>: + {{ .Title }} + </a> +</li> diff --git a/themes/problematic/layouts/_default/list.html b/themes/problematic/layouts/_default/list.html index 61cf6dc..97af0e3 100644 --- a/themes/problematic/layouts/_default/list.html +++ b/themes/problematic/layouts/_default/list.html @@ -1,6 +1,3 @@ {{ define "main" }} -<h1>{{ .Title }}</h1> - {{ range .Pages.ByPublishDate.Reverse }} - <p><a href="{{ .RelPermalink }}">{{ .Title }}</a></p> - {{ end }} +{{- partial "posts.html" . -}} {{ end }} diff --git a/themes/problematic/layouts/partials/head.html b/themes/problematic/layouts/partials/head.html index e69de29..12477e4 100644 --- a/themes/problematic/layouts/partials/head.html +++ b/themes/problematic/layouts/partials/head.html @@ -0,0 +1,13 @@ +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + {{ with .Site.Params.description -}} + <meta name="description" content="{{ . }}"> + {{ end }} + {{ printf `<link rel="shortcut icon" href="%s">` ("favicon.ico" | absURL) | safeHTML }} + {{ with .OutputFormats.Get "rss" -}} + {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + <title>{{ .Title }}</title> +</head> diff --git a/themes/problematic/layouts/partials/header.html b/themes/problematic/layouts/partials/header.html index e69de29..9a66449 100644 --- a/themes/problematic/layouts/partials/header.html +++ b/themes/problematic/layouts/partials/header.html @@ -0,0 +1,12 @@ +<header id="banner"> + <h2><a href="{{ .Site.BaseURL }}">{{ .Site.Title }}</a></h2> + <nav> + <ul> + {{ range .Site.Menus.main.ByWeight -}} + <li> + {{ .Pre }}<a href="{{ .URL }}" title="{{ .Title }}">{{- .Name -}}</a>{{ .Post }} + </li> + {{- end }} + </ul> + </nav> +</header> diff --git a/themes/problematic/layouts/partials/posts.html b/themes/problematic/layouts/partials/posts.html new file mode 100644 index 0000000..8ff3eb2 --- /dev/null +++ b/themes/problematic/layouts/partials/posts.html @@ -0,0 +1,6 @@ +<h3>Posts</h3> +<ul id="posts"> +{{- range where site.RegularPages "Type" "in" site.Params.mainSections }} + {{ .Render "li" }} +{{- end }} +</ul> |