diff options
author | Xavier Valls Pla <xaviervallspla@gmail.com> | 2020-06-24 19:45:03 +0300 |
---|---|---|
committer | Xavier Valls Pla <xaviervallspla@gmail.com> | 2020-06-24 19:45:03 +0300 |
commit | 2b8e779abb7e8a44e053bd44a6902ac2bd38d8bc (patch) | |
tree | 839e129abd764a3ab7f2265bcf4247136ad0d1fd /layouts | |
parent | efe78af487bba7ab7e21e0a74c17e21660d4a7ee (diff) |
restructure the single post
post pagination was not correctly aligned, which helped see that the structure
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 429d1db..b83b04c 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -5,24 +5,24 @@ {{ define "main" }} {{ $dateFormat := .Site.Params.dateFormat | default "Jan 2 2006" }} - <div class="post"> - <header class="post__header"> - <h1 id="post__title">{{.Title}}</h1> - <time datetime="{{ .Date }}" class="post__date" - >{{ .Date.Format $dateFormat }}</time> - </header> - <div class="article-w-ToC"> + <div class="post__container"> + <div class="post"> + <header class="post__header"> + <h1 id="post__title">{{.Title}}</h1> + <time datetime="{{ .Date }}" class="post__date" + >{{ .Date.Format $dateFormat }}</time> + </header> <article class="post__content"> {{ partial "anchored-headings.html" .Content }} {{ if or .Params.math .Site.Params.math }} {{ partial "math.html" . }} {{ end }} </article> - {{ if or .Params.toc .Site.Params.toc }} - {{ .TableOfContents }} - {{ end }} + {{ partial "tags.html" .}} {{ partial "post-pagination.html" .}} </div> - {{ partial "tags.html" .}} {{ partial "post-pagination.html" .}} + {{ if or .Params.toc .Site.Params.toc }} + {{ .TableOfContents }} + {{ end }} </div> {{ template "_internal/disqus.html" . }} |