diff options
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 |