📝 Style: modify web page title separator symbol

This commit is contained in:
Cell
2023-12-27 17:42:40 +08:00
parent 927e6f9946
commit b9539e9d69
13 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
---
layout: offline
description: '{{ T "offlineTitle" }} - {{ .Site.Title }}'
description: '{{ T "offlineTitle" }} | {{ .Site.Title }}'
keywords:
- PWA
- {{ T "offlineTitle" }}
+1 -1
View File
@@ -1,5 +1,5 @@
{{- define "title" -}}
{{- T "pageNotFound" | printf "404 %v" }} - {{ .Site.Title -}}
{{- T "pageNotFound" | printf "404 %v" }} | {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}
+1 -1
View File
@@ -1,5 +1,5 @@
{{- define "title" }}
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} | {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
{{- define "content" -}}
{{- $params := .Scratch.Get "params" -}}
+1 -1
View File
@@ -1,7 +1,7 @@
{{- /* TODO remove this template */ -}}
{{- warnf "The `type:friends` in front matter is deprecated. Use `layout:friends` instead.\n" -}}
{{- warnf "Front matter 参数 `type:friends` 已弃用。请改用 `layout:friends`。" -}}
{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
{{- define "content" -}}
{{- $params := .Scratch.Get "params" -}}
+1 -1
View File
@@ -2,7 +2,7 @@
{{- warnf "The `type:offline` in front matter is deprecated. Use `layout:offline` instead.\n" -}}
{{- warnf "Front matter 参数 `type:offline` 已弃用。请改用 `layout:offline`。" -}}
{{- define "title" -}}
{{- T "offlineTitle" }} - {{ .Site.Title -}}
{{- T "offlineTitle" }} | {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
{{- define "content" -}}
{{- $params := .Scratch.Get "params" -}}
+1 -1
View File
@@ -1,5 +1,5 @@
{{- define "title" -}}
{{- T "offlineTitle" }} - {{ .Site.Title -}}
{{- T "offlineTitle" }} | {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}
+1 -1
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 | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
{{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} | {{ .Site.Title -}}
</title>
<link>
{{- .Permalink -}}
+1 -1
View File
@@ -1,4 +1,4 @@
{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
{{- define "content" -}}
{{- $params := .Scratch.Get "params" -}}
+1 -1
View File
@@ -1,5 +1,5 @@
{{- define "title" -}}
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} | {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}
+2 -2
View File
@@ -1,13 +1,13 @@
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} | {{ .Site.Title -}}
</title>
<link>
{{- .Permalink -}}
</link>
<description>
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} | {{ .Site.Title -}}
</description>
<generator>Hugo -- gohugo.io</generator>
{{- with .Site.LanguageCode -}}
+1 -1
View File
@@ -1,5 +1,5 @@
{{- define "title" -}}
{{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | dict "Some" | T "allSome" }} - {{ .Site.Title -}}
{{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | dict "Some" | T "allSome" }} | {{ .Site.Title -}}
{{- end -}}
{{- define "content" -}}