fix(title): terms title error and change delimiter from "|" to "-" (#299)

This commit is contained in:
Dillon
2020-05-01 16:23:17 +08:00
committed by GitHub
parent 79df5c667e
commit 5b689bf29b
12 changed files with 14 additions and 14 deletions

View File

@@ -10,7 +10,7 @@
{{- end -}}
{{- $params := .Params | merge .Site.Params.page -}}
{{- .Scratch.Set "version" "0.2.3" -}}
{{- .Scratch.Set "version" "0.2.4" -}}
{{- if eq hugo.Environment "production" -}}
{{- .Scratch.Set "cdn" .Site.Params.cdn -}}

View File

@@ -1,5 +1,5 @@
{{- define "title" }}
{{- .Params.Title | default (T .Section) | default .Section | printf (T "allSome") }} | {{ .Site.Title -}}
{{- .Params.Title | default (T .Section) | default .Section | printf (T "allSome") }} - {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}

View File

@@ -1,4 +1,4 @@
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
{{- define "content" -}}
{{- $params := .Scratch.Get "params" -}}