forked from mirrors/hugo-tufte
Personal changes, dark theme, less whitespace
This commit is contained in:
parent
23b85481b6
commit
3be1680484
8 changed files with 80 additions and 40 deletions
layouts
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
{{- range .Params.tags -}}
|
||||
<a href="{{ "/tags/" | absURL }}{{ . | urlize }}">{{ . }}</a>
|
||||
{{- end -}}
|
||||
|
||||
{{- range .Params.categories -}}
|
||||
<a href="{{ "/categories/" | absURL }}{{ . | urlize }}">@{{ . }}</a>
|
||||
{{- end -}}
|
||||
</span>
|
||||
{{- end -}}
|
||||
</section>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue