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

View file

@ -1,11 +1,12 @@
{{/*
This template render single pages
This template render single pages
*/}}
{{ define "main" }}
<article id="main">
{{ partial "brand.html" . }}
{{ partial "content.header.html" . }}
{{ partial "toc.html" . }}
<section>{{ .Content }}</section>

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>

View file

@ -23,6 +23,10 @@
{{- range .Params.tags -}}
<a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>&nbsp;
{{- end -}}
{{- range .Params.categories -}}
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">@{{ . }}</a>&nbsp;
{{- end -}}
</span>
{{- end -}}
</section>