diff options
Diffstat (limited to 'layouts/posts')
-rw-r--r-- | layouts/posts/list.html | 10 | ||||
-rw-r--r-- | layouts/posts/single.html | 19 |
2 files changed, 11 insertions, 18 deletions
diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 3a3eb97..6115fae 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -1,16 +1,11 @@ {{ define "main" }} - {{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} {{ $paginator := .Paginate (where .Pages "Params.hidden" "ne" true) }} {{ range sort .Paginator.Pages }} <article class="markdown book-post"> <h2> <a href="{{ .RelPermalink }}">{{ .Title }}</a> </h2> - {{ with .Date }} - <h5> - <strong>{{ .Format $dateFormat }}</strong> - </h5> - {{ end }} + {{ partial "docs/post-meta" . }} <p> {{- .Summary -}} {{ if .Truncated }} @@ -19,9 +14,10 @@ </p> </article> {{ end }} + {{ template "_internal/pagination.html" . }} {{ end }} {{ define "toc" }} - + {{ partial "docs/taxonomy" . }} {{ end }} diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 69352cd..00df697 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,16 +1,13 @@ {{ define "main" }} - {{ $dateFormat := default "January 2, 2006" .Site.Params.BookDateFormat }} - <header class="markdown"> - <h1>{{ .Title }}</h1> - {{ with .Date }} - <h5> - <strong>{{ .Format $dateFormat }}</strong> - </h5> - {{ end }} - </header> - <article class="markdown"> +<article class="markdown"> + <h1> + <a href="{{ .RelPermalink }}">{{ .Title }}</a> + </h1> + {{ partial "docs/post-meta" . }} + <p> {{- .Content -}} - </article> + </p> +</article> {{ end }} {{ define "toc" }} |