mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2025-06-07 22:04:25 +02:00
Some more fuckery with post listing
This commit is contained in:
parent
f5c6b310c1
commit
04e10eb676
3 changed files with 10 additions and 11 deletions
|
@ -10,13 +10,14 @@
|
|||
{{ end }}
|
||||
|
||||
{{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }}
|
||||
<table class="post-meta">
|
||||
{{ range .Paginator.Pages }}
|
||||
<table class="post-entry-meta">
|
||||
{{ range first 5 .Paginator.Pages }}
|
||||
<tr>
|
||||
<td><a href="{{ .RelPermalink }}">{{ .Title | markdownify}}</a></td>
|
||||
<td>{{ .Params.Date.Format "2006-01-02" }}</td>
|
||||
<td>{{ .Params.Author }}</td>
|
||||
<td > {{ range .Params.tags }} #<a href="{{ (urlize (printf "tags/%s/" .)) | absLangURL }}">{{ . }}</a> {{ end }}</td>
|
||||
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
||||
<!--
|
||||
{{ if and (.Param "readingTime") (eq (.Param "readingTime") true) }}
|
||||
<td class="post-reading-time">- {{ .ReadingTime }} min read ({{ .WordCount }} words)</td>
|
||||
|
|
|
@ -2,12 +2,8 @@
|
|||
{{ if eq .Type $.Site.Params.contentTypeName }}
|
||||
<div class="post-meta">
|
||||
{{ if .Params.Date }}
|
||||
<span>
|
||||
<span class="post-date">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
{{ if $.Site.Params.showLastUpdated }}
|
||||
[{{or $.Site.Params.updatedDatePrefix "Updated"}}: {{ .Lastmod.Format "2006-01-02" }}]
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue