This commit is contained in:
1 parent
2a498515c7
commit
60891c90b0
4 files changed
+12
-4
No files matched your search
@@ -1,4 +1,9 @@
|
||||
{{ range first 5 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
|
||||
{{ $pinned := where site.RegularPages "Params.pinned" true }}
|
||||
{{ range $pinned }}
|
||||
<a href="{{ .Permalink }}">{{ partial "summary.html" . }}</a>
|
||||
{{ end }}
|
||||
|
||||
{{ range first 4 (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections )}}
|
||||
<a href="{{ .Permalink }}">{{ partial "summary.html" . }}</a>
|
||||
{{ end }}
|
||||
|
||||
|
||||
@@ -23,7 +23,9 @@
|
||||
<div class="text-green-custom font-bold text-xl mb-2">{{ .Title }}</div>
|
||||
<p class="text-white-custom text-base pb-5">{{ substr .Summary 0 130 | plainify | htmlUnescape }}...</p>
|
||||
<p class="text-sm text-lightgray-custom items-center">
|
||||
{{ if not .Params.pinned }}
|
||||
<time>{{ .Date.Format "02.01.2006" }}</time>
|
||||
{{ end }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
Reference in new issue
Block a user