diff options
author | Jimmy Cai <github@jimmycai.com> | 2022-02-27 11:48:57 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-27 11:48:57 +0300 |
commit | b3b8fa73ef5f82bed55e12221526fbeddc03374f (patch) | |
tree | dd454a8fbe0d21413b64179804bf7bb9911f5bb5 /exampleSite | |
parent | 26fb06951b880cbafd9d408637c300eb19dfceab (diff) |
feat(article): add link to translated content (#511)
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.yaml | 10 | ||||
-rw-r--r-- | exampleSite/content/page/about/index.cn.md | 5 |
2 files changed, 15 insertions, 0 deletions
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 7ff0505..b2fe1d3 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -4,6 +4,16 @@ theme: hugo-theme-stack paginate: 5 title: Example Site +languages: + en: + languageName: English + title: Example Site + weight: 1 + cn: + languageName: 中文 + title: 演示站点 + weight: 2 + # Change it to your Disqus shortname before using disqusShortname: hugo-theme-stack diff --git a/exampleSite/content/page/about/index.cn.md b/exampleSite/content/page/about/index.cn.md new file mode 100644 index 0000000..060c006 --- /dev/null +++ b/exampleSite/content/page/about/index.cn.md @@ -0,0 +1,5 @@ +--- +title: 关于 +--- + +This is a test page for i18n support.
\ No newline at end of file |