From b3b8fa73ef5f82bed55e12221526fbeddc03374f Mon Sep 17 00:00:00 2001 From: Jimmy Cai Date: Sun, 27 Feb 2022 09:48:57 +0100 Subject: feat(article): add link to translated content (#511) --- exampleSite/config.yaml | 10 ++++++++++ exampleSite/content/page/about/index.cn.md | 5 +++++ 2 files changed, 15 insertions(+) create mode 100644 exampleSite/content/page/about/index.cn.md (limited to 'exampleSite') 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 -- cgit v1.2.3