diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-11-25 11:59:42 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2018-11-25 11:59:42 +0100 |
commit | aa2b1870d0f1af84171c60df233b9befa8817853 (patch) | |
tree | 9c4676339ea68f28a428eae68bd699ced9f4b882 /layouts | |
parent | a9738191b8fef15a0fe96af533813a8acfa1055b (diff) |
Cleanup posts rendering
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/posts/baseof.html | 6 | ||||
-rw-r--r-- | layouts/posts/list.html | 2 | ||||
-rw-r--r-- | layouts/posts/single.html | 16 |
3 files changed, 9 insertions, 15 deletions
diff --git a/layouts/posts/baseof.html b/layouts/posts/baseof.html index 5601fb4..47371c0 100644 --- a/layouts/posts/baseof.html +++ b/layouts/posts/baseof.html @@ -8,10 +8,8 @@ </head> <body> - <main> - <div class="book-posts mx-auto"> - {{ template "main" . }} - </div> + <main class="book-posts mx-auto"> + {{ template "main" . }} </main> {{ partial "docs/inject/body" . }} diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 4fda83f..da13220 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,5 +1,4 @@ {{ define "main" }} -<section> {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }} {{ range sort .Paginator.Pages }} <article> @@ -16,5 +15,4 @@ </article> {{ end }} {{ template "_internal/pagination.html" . }} -</section> {{ end }}
\ No newline at end of file diff --git a/layouts/posts/single.html b/layouts/posts/single.html index f31b1a9..9081faa 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,11 +1,9 @@ {{ define "main" }} -<section> - <header> - <h1>{{ .Title }}</h1> - <h5>{{ .Date.Format "January 2, 2006" }}</h5> - </header> - <article class="markdown"> - {{- .Content -}} - </article> -</section> +<header> + <h1>{{ .Title }}</h1> + <h5>{{ .Date.Format "January 2, 2006" }}</h5> +</header> +<article class="markdown"> + {{- .Content -}} +</article> {{ end }}
\ No newline at end of file |