mirror of
https://github.com/imfing/hextra.git
synced 2025-07-08 08:07:20 -04:00
Compare commits
2 Commits
v0.8.6
...
eb1ea564a7
Author | SHA1 | Date | |
---|---|---|---|
eb1ea564a7 | |||
f66c915d5b |
@ -7,7 +7,6 @@
|
||||
|
||||
{{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}}
|
||||
{{- $pages = where $pages "Params.excludeSearch" "!=" true -}}
|
||||
{{- $pages = where $pages "Content" "!=" "" -}}
|
||||
|
||||
{{- $output := dict -}}
|
||||
|
||||
|
@ -10,6 +10,10 @@
|
||||
<title>
|
||||
{{- if .IsHome -}}
|
||||
{{ .Site.Title -}}
|
||||
{{ else if eq .Kind "page" -}}
|
||||
{{ with .Title }}{{ . }} – {{ end -}}
|
||||
{{ $sectionTitle := index .Site.Params.sectionsTitles .Section }}
|
||||
{{ $sectionTitle | default .Site.Title }}
|
||||
{{ else -}}
|
||||
{{ with .Title }}{{ . }} – {{ end -}}
|
||||
{{ .Site.Title -}}
|
||||
|
Reference in New Issue
Block a user