diff --git a/layouts/_partials/page-metadata/post-full.html b/layouts/_partials/page-metadata/post-full.html index d184c55..5dea827 100644 --- a/layouts/_partials/page-metadata/post-full.html +++ b/layouts/_partials/page-metadata/post-full.html @@ -1,5 +1,5 @@ {{ if or .Date .Params.authors .Site.Params.readingtime .Site.Params.gitFileURL }} -
+
{{ if .Date }}
+ {{ end }} diff --git a/layouts/_partials/page-metadata/post-short.html b/layouts/_partials/page-metadata/post-short.html index 9b799af..ab202f7 100644 --- a/layouts/_partials/page-metadata/post-short.html +++ b/layouts/_partials/page-metadata/post-short.html @@ -1,5 +1,5 @@ {{ if or .Date .Params.authors .Site.Params.readingtime }} -
+
{{ if .Date }}
+ {{ end }} diff --git a/layouts/_partials/share.html b/layouts/_partials/share.html index 05fded3..f52db42 100644 --- a/layouts/_partials/share.html +++ b/layouts/_partials/share.html @@ -1,4 +1,4 @@ -
+
{{ if .Site.Params.shareButtons.twitter }}
+ diff --git a/layouts/page.html b/layouts/page.html index 5800455..1382b45 100644 --- a/layouts/page.html +++ b/layouts/page.html @@ -1,74 +1,76 @@ {{ define "main" }} -
-

- {{ .Title | markdownify }} - {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} -

-
+
+
+

+ {{ .Title | markdownify }} + {{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }} +

+
- {{ partial "page-metadata/post-full.html" . }} - {{ partial "series-box.html" . }} + {{ partial "page-metadata/post-full.html" . }} + {{ partial "series-box.html" . }} - {{ if .Params.Toc }} -
-
- {{ i18n "table_of_contents" }} + {{ if .Params.Toc }} +
+
+ {{ i18n "table_of_contents" }} + {{ .TableOfContents }} +
+
+
+ {{ i18n "table_of_contents" }} {{ .TableOfContents }} -
-
-
- {{ i18n "table_of_contents" }} - {{ .TableOfContents }} -
- {{ end }} + + {{ end }} - {{ partial "feature-figure.html" . }} + {{ partial "feature-figure.html" . }} -
+ {{ end }} + + {{ if .Site.Params.shareButtons }} + {{ partial "share.html" . }} + {{ end }} + + {{ if .Params.comments }} +
+ {{ partial "comments.html" . }} +
+ {{ end }}
- - {{ partial "series-box.html" . }} - - {{ if or .NextInSection .PrevInSection }} -
- {{ with .NextInSection }} - - {{ else }} - - {{ end }} - - {{ with .PrevInSection }} - - {{ else }} - - {{ end }} -
- {{ end }} - - {{ if .Site.Params.shareButtons }} - {{ partial "share.html" . }} - {{ end }} - - {{ if .Params.comments }} -
- {{ partial "comments.html" . }} -
- {{ end }} {{ end }}