properly format metadata and previous and next pages
This commit is contained in:
parent
94d498f0e1
commit
b31611af40
4 changed files with 32 additions and 17 deletions
|
@ -25,7 +25,7 @@
|
|||
<!-- [html-validate-disable-next prefer-native-element] -->
|
||||
<div class="postListItem" role="listitem">
|
||||
<div class="postHeader">
|
||||
<span class="postTitle">{{ .Title }}</span>
|
||||
<span class="postTitle">{{ .Title }}</span></a>
|
||||
{{ $formattedDate := .Date.Format "2006-01-02" }}
|
||||
<time class="postDate" datetime="{{ $formattedDate }}">{{ .Date | time.Format ":date_long" }}</time>
|
||||
</div>
|
||||
|
@ -33,7 +33,7 @@
|
|||
<p>{{ .Summary }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
{{ range .Pages.ByWeight }}
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue