Feat: add params.withSiteTitle and params.titleDelimiter to resolve #395

This commit is contained in:
Cell
2023-12-28 15:59:01 +08:00
parent 7aface4334
commit fbe58346e5
15 changed files with 42 additions and 17 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
{{- define "title" -}}
{{- .Title -}}
{{- if .Site.Params.withSiteTitle }} {{ .Site.Params.titleDelimiter }} {{ .Site.Title }}{{- end -}}
{{- end -}}
{{- define "content" -}}
{{- $params := .Scratch.Get "params" -}}