mirror of
https://github.com/loikein/hugo-tufte.git
synced 2025-08-08 04:02:44 +02:00
update some layouts
This commit is contained in:
parent
37e9cb786c
commit
9ef1d4b721
5 changed files with 38 additions and 30 deletions
layouts
|
@ -7,9 +7,10 @@
|
|||
</section>
|
||||
{{ end }}
|
||||
<section class="page-list">
|
||||
{{ range (.Paginate .Site.RegularPages).Pages }}
|
||||
{{/* range where .Site.RegularPages "Type" "posts" */}}
|
||||
{{ if ne .Draft true}}
|
||||
{{ $pgFilter1 := where .Site.RegularPages "Draft" false }}
|
||||
{{ $pgFilter2 := where .Site.RegularPages "Params.date" "!=" nil }}
|
||||
{{ $pgFilter := $pgFilter1 | intersect $pgFilter2 }}
|
||||
{{ range (.Paginate $pgFilter).Pages }}
|
||||
<h2 class="content-title">
|
||||
{{ if .IsNode }}
|
||||
<a href="{{ .Permalink }}">{{ .Title}}</a>
|
||||
|
@ -23,8 +24,6 @@
|
|||
{{ else }}
|
||||
<p>{{ truncate 140 .Summary }}</p>
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</section>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue