1
0
Fork 0
forked from mirrors/hugo-tufte

Personal changes, dark theme, less whitespace

This commit is contained in:
Phil Bajsicki 2024-09-27 15:36:01 +02:00
commit 3be1680484
8 changed files with 80 additions and 40 deletions
layouts

View file

@ -3,14 +3,15 @@
{{ partial "brand.html" . }}
{{ with .Content }}
<section>
{{ . }}
{{ . }}
</section>
{{ end }}
<section class="page-list">
{{ $pgFilter1 := where .Site.RegularPages "Draft" false }}
{{ $pgFilter2 := where .Site.RegularPages "Params.date" "!=" nil }}
{{ $pgFilter := $pgFilter1 | intersect $pgFilter2 }}
{{ range (.Paginate $pgFilter).Pages }}
{{ end }}
<section class="page-list">
{{ $pgFilter1 := where .Site.RegularPages "Draft" false }}
{{ $pgFilter2 := where .Site.RegularPages "Params.date" "!=" nil }}
{{ $pgFilter3 := where .Site.RegularPages "Params.hidefromhome" "!=" true }}
{{ $pgFilter := $pgFilter1 | intersect $pgFilter2 | intersect $pgFilter3}}
{{ range (.Paginate $pgFilter).Pages }}
<h2 class="content-title">
{{ if .IsNode }}
<a href="{{ .Permalink }}">{{ .Title}}</a>