fix: fix i18n bug

This commit is contained in:
Dillon
2019-08-25 01:15:06 +08:00
parent 4ce4029715
commit ca6d543878
3 changed files with 9 additions and 0 deletions

View File

@@ -84,6 +84,9 @@ other = "min"
[second] [second]
other = "sec" other = "sec"
[return]
other = "return"
# === posts/single.html === # === posts/single.html ===
# === 404.html === # === 404.html ===

View File

@@ -87,6 +87,9 @@ other = "分"
[second] [second]
other = "秒" other = "秒"
[return]
other = "返回"
# === posts/single.html === # === posts/single.html ===
# === 404.html === # === 404.html ===

View File

@@ -77,6 +77,9 @@
{{ $REin = `\[(.+?)\]\^\((.+?)\)` }} {{ $REin = `\[(.+?)\]\^\((.+?)\)` }}
{{ $REout = `<strong><ruby>$1<rt>$2</rt></ruby></strong>` }} {{ $REout = `<strong><ruby>$1<rt>$2</rt></ruby></strong>` }}
{{ $content = replaceRE $REin $REout $content }} {{ $content = replaceRE $REin $REout $content }}
{{ $REin = `<sup>\[return\]</sup>` }}
{{ $REout = printf "<sup>[%s]</sup>" (T "return") }}
{{ $content = replaceRE $REin $REout $content }}
{{ $REin = `<(h[23456]) (id=".+?")>` }} {{ $REin = `<(h[23456]) (id=".+?")>` }}
{{ $REout = `<a class="post-dummy-target" $2></a><$1>` }} {{ $REout = `<a class="post-dummy-target" $2></a><$1>` }}
{{ $content = replaceRE $REin $REout $content }} {{ $content = replaceRE $REin $REout $content }}