From a2717c2d00c2176a5c6a9fb0a3fb3b47ffa397cd Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Mon, 27 Jan 2020 00:04:18 -0500 Subject: Getting uniform look across pages, hugo be weird --- layouts/404.html | 29 ++++++++++++++++++++++------- layouts/_default/list.html | 35 +++++++++++++++++++++++------------ layouts/_default/rss.xml | 2 +- layouts/_default/terms.html | 37 ++++++++++++++++++++++++------------- layouts/index.html | 35 +++++++++++++++++++++++++---------- 5 files changed, 95 insertions(+), 43 deletions(-) (limited to 'layouts') diff --git a/layouts/404.html b/layouts/404.html index 5268d0c..96e8505 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,9 +1,24 @@ {{ partial "header.html" . }} -
-

404 Resource Not Found

-

- The thing you are looking for can not be found. - Home -

-
+
+
+
+
+
+ {{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }} +
+
+
+

{{ .Title | markdownify }}

+
+
+
+
+

+ The thing you are looking for can not be found. +

+

+ Home +

+
+
{{ partial "footer.html" . }} diff --git a/layouts/_default/list.html b/layouts/_default/list.html index ffe85da..249ea3d 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,14 +1,25 @@ {{ partial "header.html" . }} -
- {{ if not .IsHome }} -

{{ .Title | markdownify }}

- {{ end }} - -
+
+
+
+
+
+ {{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }} +
+
+
+

{{ .Title | markdownify }}

+
+
+
+
+
    + {{ range (where .Data.Pages "Section" "!=" "") }} +
  • {{ .Date.Format "Jan 2nd, 2006" }} + {{ .Title | markdownify }} +
  • + {{ end }} +
+
+
{{ partial "footer.html" . }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index f907888..a8eedea 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -12,7 +12,7 @@ {{ with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} - {{ range .Pages }} + {{ range where .Site.RegularPages "Section" "posts" }} {{ .Title }} {{ .Permalink }} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 20347df..3455ec5 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -1,15 +1,26 @@ {{ partial "header.html" . }} -
- {{ if not .IsHome }} -

{{ .Title | markdownify }}

- {{ end }} -
    - {{ range $key, $value := .Data.Terms }} -
  • - {{ $key }} - ({{ len $value }}) -
  • - {{ end }} -
-
+
+
+
+
+
+ {{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }} +
+
+
+

{{ .Title | markdownify }}

+
+
+
+
+
    + {{ range $key, $value := .Data.Terms }} +
  • + {{ $key }} + ({{ len $value }}) +
  • + {{ end }} +
+
+
{{ partial "footer.html" . }} diff --git a/layouts/index.html b/layouts/index.html index 624f3a0..e0c9263 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,13 +1,28 @@ {{ partial "header.html" . }} -
- {{ .Content }} +
+
+
+
+
+ {{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }} +
+
+
+

{{ .Title | markdownify }}

+
+
+
- -
+
+ {{ .Content }} + +
    + {{ range where .Site.RegularPages "Section" "posts" }} +
  • {{ .Date.Format "January 2, 2006" }} + {{ .Title | markdownify }} +
  • + {{ end }} +
+
+ {{ partial "footer.html" . }} -- cgit v1.2.3