mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-24 22:15:52 -05:00
i18n for page title and breadcrumbs
This commit is contained in:
parent
c119b71f94
commit
cfa11d7183
@ -32,9 +32,6 @@
|
||||
- id: code_copied
|
||||
translation: "已复制!"
|
||||
|
||||
- id: articles
|
||||
translation: "所有文章"
|
||||
|
||||
- id: Series
|
||||
translation: "合集"
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
{{- $bc_pg := site.GetPage ($scratch.Get "path") -}}
|
||||
|
||||
{{- if (and ($bc_pg) (gt (len . ) 0))}}
|
||||
{{- print " » " | safeHTML -}}<a href="{{ $bc_pg.Permalink }}">{{ i18n $bc_pg.Name }}</a>
|
||||
{{- print " » " | safeHTML -}}<a href="{{ $bc_pg.Permalink }}">{{ i18n $bc_pg.Name | default $bc_pg.Name }}</a>
|
||||
{{- end }}
|
||||
|
||||
{{- end -}}
|
||||
|
@ -8,7 +8,7 @@
|
||||
{{- end }}
|
||||
|
||||
{{- /* Title */}}
|
||||
<title>{{ if .IsHome }}{{ else }}{{ if .Title }}{{ .Title }} | {{ end }}{{ end }}{{ site.Title }}</title>
|
||||
<title>{{ if .IsHome }}{{ else }}{{ if .Title }}{{ i18n .Title | default .Title }} | {{ end }}{{ end }}{{ site.Title }}</title>
|
||||
|
||||
{{- /* Meta */}}
|
||||
{{- if .IsHome }}
|
||||
|
Loading…
Reference in New Issue
Block a user