From 03ae8b3dd5aa0bcfd1eb5b31258ccd9e63ab2af3 Mon Sep 17 00:00:00 2001 From: Xin Date: Sat, 12 Aug 2023 19:41:54 +0100 Subject: [PATCH] chore: add i18n and update toc --- i18n/en.yaml | 2 ++ i18n/ja.yaml | 2 ++ layouts/partials/toc.html | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 i18n/en.yaml create mode 100644 i18n/ja.yaml diff --git a/i18n/en.yaml b/i18n/en.yaml new file mode 100644 index 0000000..2b11b83 --- /dev/null +++ b/i18n/en.yaml @@ -0,0 +1,2 @@ +article: + on_this_page: "On this page" diff --git a/i18n/ja.yaml b/i18n/ja.yaml new file mode 100644 index 0000000..91c46b4 --- /dev/null +++ b/i18n/ja.yaml @@ -0,0 +1,2 @@ +article: + on_this_page: "このページでは" diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 3e8322e..0f37015 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -7,7 +7,7 @@ {{ if $toc }}
{{ with .Fragments.Headings }} -

On This Page {{ $toc }}

+

{{ i18n "article.on_this_page" }}

{{ range . }}