mirror of
https://github.com/dillonzq/LoveIt.git
synced 2024-11-14 19:06:16 +01:00
fix(title): terms title error and change delimiter from "|" to "-" (#299)
This commit is contained in:
parent
79df5c667e
commit
5b689bf29b
12 changed files with 14 additions and 14 deletions
|
@ -8,7 +8,7 @@ author: "Dillon"
|
||||||
authorLink: "https://dillonzq.com"
|
authorLink: "https://dillonzq.com"
|
||||||
description: "This article shows the basic Markdown syntax and format."
|
description: "This article shows the basic Markdown syntax and format."
|
||||||
|
|
||||||
tags: ["Markdown"]
|
tags: ["Markdown", "HTML"]
|
||||||
categories: ["Markdown"]
|
categories: ["Markdown"]
|
||||||
featuredImage: "/images/basic-markdown-syntax/featured-image.png"
|
featuredImage: "/images/basic-markdown-syntax/featured-image.png"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ author: "Dillon"
|
||||||
authorLink: "https://dillonzq.com"
|
authorLink: "https://dillonzq.com"
|
||||||
description: "Cet article présente la syntaxe et le format de base de Markdown."
|
description: "Cet article présente la syntaxe et le format de base de Markdown."
|
||||||
|
|
||||||
tags: ["Markdown"]
|
tags: ["Markdown", "HTML"]
|
||||||
categories: ["Markdown"]
|
categories: ["Markdown"]
|
||||||
featuredImage: "/images/basic-markdown-syntax/featured-image.png"
|
featuredImage: "/images/basic-markdown-syntax/featured-image.png"
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ author: "Dillon"
|
||||||
authorLink: "https://dillonzq.com"
|
authorLink: "https://dillonzq.com"
|
||||||
description: "这篇文章展示了基本的 Markdown 语法和格式."
|
description: "这篇文章展示了基本的 Markdown 语法和格式."
|
||||||
|
|
||||||
tags: ["Markdown"]
|
tags: ["Markdown", "HTML"]
|
||||||
categories: ["Markdown"]
|
categories: ["Markdown"]
|
||||||
featuredImage: "/images/basic-markdown-syntax/featured-image.png"
|
featuredImage: "/images/basic-markdown-syntax/featured-image.png"
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- define "title" }}
|
{{- define "title" }}
|
||||||
{{- T "pageNotFound" | printf "404 %s" }} | {{ .Site.Title -}}
|
{{- T "pageNotFound" | printf "404 %s" }} - {{ .Site.Title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "content" -}}
|
{{- define "content" -}}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- $params := .Params | merge .Site.Params.page -}}
|
{{- $params := .Params | merge .Site.Params.page -}}
|
||||||
{{- .Scratch.Set "version" "0.2.3" -}}
|
{{- .Scratch.Set "version" "0.2.4" -}}
|
||||||
|
|
||||||
{{- if eq hugo.Environment "production" -}}
|
{{- if eq hugo.Environment "production" -}}
|
||||||
{{- .Scratch.Set "cdn" .Site.Params.cdn -}}
|
{{- .Scratch.Set "cdn" .Site.Params.cdn -}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- define "title" }}
|
{{- 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 -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "content" -}}
|
{{- define "content" -}}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
|
{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
|
||||||
|
|
||||||
{{- define "content" -}}
|
{{- define "content" -}}
|
||||||
{{- $params := .Scratch.Get "params" -}}
|
{{- $params := .Scratch.Get "params" -}}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||||
<channel>
|
<channel>
|
||||||
<title>
|
<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>
|
</title>
|
||||||
<link>
|
<link>
|
||||||
{{- .Permalink -}}
|
{{- .Permalink -}}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{{- define "title" }}{{ .Title }} | {{ .Site.Title }}{{ end -}}
|
{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
|
||||||
|
|
||||||
{{- define "content" -}}
|
{{- define "content" -}}
|
||||||
{{- $params := .Scratch.Get "params" -}}
|
{{- $params := .Scratch.Get "params" -}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- define "title" -}}
|
{{- define "title" -}}
|
||||||
{{- .Title }} | {{ T .Data.Singular | default .Data.Singular }} | {{ .Site.Title -}}
|
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "content" -}}
|
{{- define "content" -}}
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
|
||||||
<channel>
|
<channel>
|
||||||
<title>
|
<title>
|
||||||
{{- .Params.Title }} | {{ T .Data.Singular | default .Data.Singular }} | {{ .Site.Title -}}
|
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
|
||||||
</title>
|
</title>
|
||||||
<link>
|
<link>
|
||||||
{{- .Permalink -}}
|
{{- .Permalink -}}
|
||||||
</link>
|
</link>
|
||||||
<description>
|
<description>
|
||||||
{{- .Params.Title }} | {{ T .Data.Singular | default .Data.Singular }} | {{ .Site.Title -}}
|
{{- .Title }} - {{ T .Data.Singular | default .Data.Singular }} - {{ .Site.Title -}}
|
||||||
</description>
|
</description>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
{{- with .Site.LanguageCode -}}
|
{{- with .Site.LanguageCode -}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- define "title" -}}
|
{{- define "title" -}}
|
||||||
{{- .Title | default (T .Data.Plural) | default .Data.Plural }} | {{ .Site.Title -}}
|
{{- .Params.Title | default (T .Data.Plural) | default .Data.Plural | printf (T "allSome") }} - {{ .Site.Title -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{- define "content" -}}
|
{{- define "content" -}}
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
<div class="page archive">
|
<div class="page archive">
|
||||||
{{- /* Title */ -}}
|
{{- /* Title */ -}}
|
||||||
<h2 class="single-title animated pulse faster">
|
<h2 class="single-title animated pulse faster">
|
||||||
{{- T "all" }}{{ T $taxonomies | default $taxonomies -}}
|
{{- .Params.Title | default (T $taxonomies) | default $taxonomies | printf (T "allSome") -}}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
{{- /* Categories Page */ -}}
|
{{- /* Categories Page */ -}}
|
||||||
|
|
Loading…
Reference in a new issue