Skip to content

Commit

Permalink
🔀 Merge pull request #32 from canstand/dev
Browse files Browse the repository at this point in the history
Fix pagination uses the date of current article; update zh i18n
  • Loading branch information
jpanther authored Nov 16, 2021
2 parents 82740f8 + d70c63d commit b62816e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions i18n/zh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ error:
404_description: "您请求的页面似乎不存在。"

footer:
# dark_appearance: "Switch to dark appearance"
# light_appearance: "Switch to light appearance"
dark_appearance: "切换为深色模式"
light_appearance: "切换为浅色模式"
powered_by: "由 {{ .Hugo }} & {{ .Congo }} 强力驱动"

list:
Expand All @@ -27,7 +27,7 @@ sharing:
email: "通过电子邮件发送"
facebook: "分享到 Facebook"
linkedin: "分享到 LinkedIn"
# pinterest: "Pin on Pinterest"
pinterest: "钉到 Pinterest"
reddit: "提交到 Reddit"
twitter: "分享到 Twitter"

Expand Down
4 changes: 2 additions & 2 deletions layouts/partials/article-pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>
<span class="mt-[0.1rem] text-xs text-neutral-400 dark:text-neutral-500">
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ partial "meta/date.html" . }}
{{ partial "meta/date.html" .NextInSection }}
{{ end }}
</span>
</span>
Expand All @@ -29,7 +29,7 @@
>
<span class="mt-[0.1rem] text-xs text-neutral-400 dark:text-neutral-500">
{{ if .Params.showDate | default (.Site.Params.article.showDate | default true) }}
{{ partial "meta/date.html" . }}
{{ partial "meta/date.html" .PrevInSection }}
{{ end }}
</span>
</span>
Expand Down

0 comments on commit b62816e

Please sign in to comment.