This commit is contained in:
liulijun 2025-04-22 20:34:24 +00:00 committed by GitHub
commit ca18b07e31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 9 additions and 3 deletions

View file

@ -31,3 +31,9 @@
- id: code_copied
translation: "已复制!"
- id: Series
translation: "合集"
- id: Tags
translation: "标签"

View file

@ -2,7 +2,7 @@
{{- if .Title }}
<header class="page-header">
<h1>{{ .Title }}</h1>
<h1>{{ i18n .Title| default .Title }}</h1>
{{- if .Description }}
<div class="post-description">
{{ .Description }}

View file

@ -11,7 +11,7 @@
{{- $bc_pg := site.GetPage ($scratch.Get "path") -}}
{{- 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 | default $bc_pg.Name }}</a>
{{- end }}
{{- end -}}

View file

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