mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-02-04 16:05:57 -05:00
i18n chinese for titles and breadcrumbs of series and tags
This commit is contained in:
parent
862630533c
commit
c119b71f94
@ -31,3 +31,12 @@
|
|||||||
|
|
||||||
- id: code_copied
|
- id: code_copied
|
||||||
translation: "已复制!"
|
translation: "已复制!"
|
||||||
|
|
||||||
|
- id: articles
|
||||||
|
translation: "所有文章"
|
||||||
|
|
||||||
|
- id: Series
|
||||||
|
translation: "合集"
|
||||||
|
|
||||||
|
- id: Tags
|
||||||
|
translation: "标签"
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{{- if .Title }}
|
{{- if .Title }}
|
||||||
<header class="page-header">
|
<header class="page-header">
|
||||||
<h1>{{ .Title }}</h1>
|
<h1>{{ i18n .Title }}</h1>
|
||||||
{{- if .Description }}
|
{{- if .Description }}
|
||||||
<div class="post-description">
|
<div class="post-description">
|
||||||
{{ .Description }}
|
{{ .Description }}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
{{- $bc_pg := site.GetPage ($scratch.Get "path") -}}
|
{{- $bc_pg := site.GetPage ($scratch.Get "path") -}}
|
||||||
|
|
||||||
{{- if (and ($bc_pg) (gt (len . ) 0))}}
|
{{- if (and ($bc_pg) (gt (len . ) 0))}}
|
||||||
{{- print " » " | safeHTML -}}<a href="{{ $bc_pg.Permalink }}">{{ $bc_pg.Name }}</a>
|
{{- print " » " | safeHTML -}}<a href="{{ $bc_pg.Permalink }}">{{ i18n $bc_pg.Name }}</a>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user