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 }}