i18n chinese for titles and breadcrumbs of series and tags

This commit is contained in:
liulj 2024-11-03 22:23:46 +08:00
parent 862630533c
commit c119b71f94
3 changed files with 11 additions and 2 deletions

View File

@ -31,3 +31,12 @@
- id: code_copied - id: code_copied
translation: "已复制!" translation: "已复制!"
- id: articles
translation: "所有文章"
- id: Series
translation: "合集"
- id: Tags
translation: "标签"

View File

@ -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 }}

View File

@ -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 "&nbsp;»&nbsp;" | safeHTML -}}<a href="{{ $bc_pg.Permalink }}">{{ $bc_pg.Name }}</a> {{- print "&nbsp;»&nbsp;" | safeHTML -}}<a href="{{ $bc_pg.Permalink }}">{{ i18n $bc_pg.Name }}</a>
{{- end }} {{- end }}
{{- end -}} {{- end -}}