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/_default/list.html | 35 +++++++++++++++++++++++------------ layouts/_default/rss.xml | 2 +- layouts/_default/terms.html | 37 ++++++++++++++++++++++++------------- 3 files changed, 48 insertions(+), 26 deletions(-) (limited to 'layouts/_default') 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" . }} -- cgit v1.2.3