diff options
author | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-05 21:02:38 +0000 |
---|---|---|
committer | Matthew Lemon <chaffinach+git@protonmail.ch> | 2022-01-05 21:02:38 +0000 |
commit | bd856b0c078d14beb2d92cd7ef13c1f131b1bebc (patch) | |
tree | 6343411fdaad49371e3d97816dbd13fd6746ee34 /themes/problematic/layouts/partials | |
parent | 4c76ce4aa306db8e6d8d5b825126c09fca723eec (diff) | |
parent | f7a556559b17c6267ff898f68cae02a49bf87da6 (diff) |
added in clegg post
Diffstat (limited to 'themes/problematic/layouts/partials')
-rw-r--r-- | themes/problematic/layouts/partials/footer.html | 0 | ||||
-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 |
4 files changed, 31 insertions, 0 deletions
diff --git a/themes/problematic/layouts/partials/footer.html b/themes/problematic/layouts/partials/footer.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/themes/problematic/layouts/partials/footer.html diff --git a/themes/problematic/layouts/partials/head.html b/themes/problematic/layouts/partials/head.html new file mode 100644 index 0000000..12477e4 --- /dev/null +++ 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 new file mode 100644 index 0000000..9a66449 --- /dev/null +++ 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> |