🎉 Initial commit

This commit is contained in:
Jimmy Cai
2020-08-22 13:20:08 +02:00
commit c698d944e6
69 changed files with 3781 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
{{- with .Description -}}
{{- . -}}
{{- else -}}
{{- if .IsPage -}}
{{- .Summary -}}
{{- else -}}
{{- with .Site.Params.subtitle -}}
{{- . -}}
{{- end -}}
{{- end -}}
{{- end -}}
+16
View File
@@ -0,0 +1,16 @@
{{- $title := .Title -}}
{{- $siteTitle := .Site.Title -}}
{{- $authorName := .Site.Author.name -}}
{{- if .IsHome -}}
{{- $v1 := where .Site.RegularPages "Type" "post" -}}
{{- $v2 := where .Site.RegularPages "Params.hidden" "!=" true -}}
{{- $filtered := $v1 | intersect $v2 -}}
{{- $pag := .Paginate ($filtered) -}}
{{ if .Paginator.HasPrev }}{{ .Paginator }} - {{ end }}{{ $siteTitle }}
{{- else if eq .Kind "term" -}}
{{- $pag := .Paginate (where .Data.Pages "Type" "post") -}}
{{ title .Data.Singular }}: {{ $title }}{{ if .Paginator.HasPrev }} - {{ .Paginator }}{{ end }} - {{ $siteTitle }}
{{- else -}}
{{- $title -}}
{{- end -}}