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

@@ -1,7 +1,7 @@
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<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 -}}
</title>
<link>
{{- .Permalink -}}

View File

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