|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
{{ $page := . }}
|
|
|
|
|
|
|
|
|
|
{{ $authors := partial "paige/authors.html" $page }}
|
|
|
|
|
{{ $categories := $page.Params.categories | default slice | uniq }}
|
|
|
|
|
{{ $categories := $page.GetTerms "categories" }}
|
|
|
|
|
{{ $commiturl := "" }}
|
|
|
|
|
{{ $date := $page.PublishDate }}
|
|
|
|
|
{{ $dateformat := $page.Param "paige.date.format" | default ":date_long" }}
|
|
|
|
@ -13,9 +13,9 @@
|
|
|
|
|
{{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
|
|
|
|
|
{{ $pinned := $page.Params.paige.pin }}
|
|
|
|
|
{{ $readingtime := $page.ReadingTime }}
|
|
|
|
|
{{ $series := $page.Params.series }}
|
|
|
|
|
{{ $series := $page.GetTerms "series" }}
|
|
|
|
|
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape }}
|
|
|
|
|
{{ $tags := $page.Params.tags | default slice | uniq }}
|
|
|
|
|
{{ $tags := $page.GetTerms "tags" }}
|
|
|
|
|
{{ $title := $page.Title | markdownify | plainify | htmlUnescape }}
|
|
|
|
|
{{ $titlelink := $page.RelPermalink }}
|
|
|
|
|
|
|
|
|
@ -61,40 +61,20 @@
|
|
|
|
|
|
|
|
|
|
{{ if or $categories $tags }}
|
|
|
|
|
<p class="mb-0 paige-keywords text-center text-secondary">
|
|
|
|
|
{{ $terms := slice }}
|
|
|
|
|
|
|
|
|
|
{{ range $categories }}
|
|
|
|
|
{{ $terms = $terms | append (dict "name" . "url" (printf "categories/%v/" . | relLangURL | string)) }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ range $tags }}
|
|
|
|
|
{{ $terms = $terms | append (dict "name" . "url" (printf "tags/%v/" . | relLangURL | string)) }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ range $i, $term := sort $terms "name" -}}
|
|
|
|
|
{{ range $i, $term := sort (append $categories $tags) "LinkTitle" -}}
|
|
|
|
|
{{- if gt $i 0 }}, {{ end -}}
|
|
|
|
|
|
|
|
|
|
{{- $title := $term.name -}}
|
|
|
|
|
|
|
|
|
|
{{- with (site.GetPage $term.url).Title -}}
|
|
|
|
|
{{- $title = . -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
|
|
|
|
|
<a class="link-secondary" href="{{ .url | safeURL }}">{{ $title }}</a>
|
|
|
|
|
<a class="link-secondary" href="{{ .RelPermalink | safeURL }}">{{ .Title }}</a>
|
|
|
|
|
{{- end }}
|
|
|
|
|
</p>
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
|
|
{{ with $series }}
|
|
|
|
|
<p class="mb-0 paige-series text-center text-secondary">
|
|
|
|
|
{{ range $i, $name := . -}}
|
|
|
|
|
{{ range $i, $series := . -}}
|
|
|
|
|
{{- if gt $i 0 }}, {{ end -}}
|
|
|
|
|
|
|
|
|
|
{{- with site.GetPage (print "series/" $name) -}}
|
|
|
|
|
<a class="link-secondary" href="{{ .RelPermalink }}">{{ .Title | default $name }}</a>
|
|
|
|
|
{{- else -}}
|
|
|
|
|
{{- $name -}}
|
|
|
|
|
{{- end -}}
|
|
|
|
|
<a class="link-secondary" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
|
|
|
|
{{- end }}
|
|
|
|
|
</p>
|
|
|
|
|
{{ end }}
|
|
|
|
|