From 53606571f69777af336ca6ffa8cdf08d58596a7d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 24 Jan 2019 21:47:31 +0000 Subject: [PATCH] Restyle list page headers turns out `display-5` isn't actually a thing! --- layouts/partials/content.html | 26 +++++++++++++++----------- layouts/posts/list.html | 5 ++++- 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/layouts/partials/content.html b/layouts/partials/content.html index 313108a..ea58042 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -7,15 +7,19 @@
{{ end }}{{ end }} {{ partial "breadcrumbs/index.html" . }} -

{{ .Title }}

+

{{ .Title }}

{{ partial "subtitle.html" . }}
-

{{ partial "content-details.html" . }}

-
-
- {{ if .TableOfContents }} -
- {{ .TableOfContents }} -
- {{ end }} - {{ .Content }} -
+{{ if ne .Kind "section" }} +

{{ partial "content-details.html" . }}

+{{ end }} +{{ if .Content }} +
+
+ {{ if .TableOfContents }} +
+ {{ .TableOfContents }} +
+ {{ end }} + {{ .Content }} +
+{{ end }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 1c33e7a..474b732 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,7 +1,10 @@ {{ define "main" }}
-

{{ .Title }}

+ {{ partial "content.html" . }} + {{ if .Content }} +
+ {{ end }} {{ range .Data.Pages.GroupByDate "2006-01" }} {{ $month := print .Key "-01" }} {{ if (index .Pages 0).Date.IsZero }}