From 23a2a5aab06f5a87d61de8b4a9d92ccd3fb367a6 Mon Sep 17 00:00:00 2001 From: geekifan Date: Sun, 11 May 2025 12:26:39 +0800 Subject: [PATCH] refactor: move posts, data and configs to exampleSite --- .../assets}/img/commons/avatar.jpg | Bin .../config}/_default/languages.toml | 0 .../config}/_default/markup.toml | 0 .../config}/_default/params.toml | 1 - {content => exampleSite/content}/_index.en.md | 0 .../content}/_index.zh-CN.md | 0 .../content}/about/index.en.md | 0 .../content}/about/index.zh-CN.md | 0 .../content}/archives/index.en.html | 0 .../content}/archives/index.zh-CN.html | 0 .../content}/categories/_index.en.md | 0 .../content}/categories/_index.zh-CN.md | 0 .../devices-mockup.png | Bin .../devtools-dark.png | Bin .../devtools-light.png | Bin .../index.en.md | 0 .../index.zh-CN.md | 0 .../2019-08-08-text-and-typography/mockup.png | Bin .../2019-08-08-write-a-new-post/index.en.md | 0 .../index.zh-CN.md | 0 .../2019-08-09-getting-started/index.en.md | 0 .../2019-08-09-getting-started/index.zh-CN.md | 0 .../pages-source-dark.png | Bin .../pages-source-light.png | Bin .../index.en.md | 0 .../index.zh-CN.md | 0 .../content}/tags/_index.en.md | 0 .../content}/tags/_index.zh-CN.md | 0 {data => exampleSite/data}/authors/en.yaml | 0 {data => exampleSite/data}/authors/zh-CN.yaml | 0 exampleSite/hugo.toml | 18 ++++++++++++++++++ 31 files changed, 18 insertions(+), 1 deletion(-) rename {assets => exampleSite/assets}/img/commons/avatar.jpg (100%) rename {config => exampleSite/config}/_default/languages.toml (100%) rename {config => exampleSite/config}/_default/markup.toml (100%) rename {config => exampleSite/config}/_default/params.toml (96%) rename {content => exampleSite/content}/_index.en.md (100%) rename {content => exampleSite/content}/_index.zh-CN.md (100%) rename {content => exampleSite/content}/about/index.en.md (100%) rename {content => exampleSite/content}/about/index.zh-CN.md (100%) rename {content => exampleSite/content}/archives/index.en.html (100%) rename {content => exampleSite/content}/archives/index.zh-CN.html (100%) rename {content => exampleSite/content}/categories/_index.en.md (100%) rename {content => exampleSite/content}/categories/_index.zh-CN.md (100%) rename {content => exampleSite/content}/post/2019-08-08-text-and-typography/devices-mockup.png (100%) rename {content => exampleSite/content}/post/2019-08-08-text-and-typography/devtools-dark.png (100%) rename {content => exampleSite/content}/post/2019-08-08-text-and-typography/devtools-light.png (100%) rename {content => exampleSite/content}/post/2019-08-08-text-and-typography/index.en.md (100%) rename {content => exampleSite/content}/post/2019-08-08-text-and-typography/index.zh-CN.md (100%) rename {content => exampleSite/content}/post/2019-08-08-text-and-typography/mockup.png (100%) rename {content => exampleSite/content}/post/2019-08-08-write-a-new-post/index.en.md (100%) rename {content => exampleSite/content}/post/2019-08-08-write-a-new-post/index.zh-CN.md (100%) rename {content => exampleSite/content}/post/2019-08-09-getting-started/index.en.md (100%) rename {content => exampleSite/content}/post/2019-08-09-getting-started/index.zh-CN.md (100%) rename {content => exampleSite/content}/post/2019-08-09-getting-started/pages-source-dark.png (100%) rename {content => exampleSite/content}/post/2019-08-09-getting-started/pages-source-light.png (100%) rename {content => exampleSite/content}/post/2019-08-11-customize-the-favicon/index.en.md (100%) rename {content => exampleSite/content}/post/2019-08-11-customize-the-favicon/index.zh-CN.md (100%) rename {content => exampleSite/content}/tags/_index.en.md (100%) rename {content => exampleSite/content}/tags/_index.zh-CN.md (100%) rename {data => exampleSite/data}/authors/en.yaml (100%) rename {data => exampleSite/data}/authors/zh-CN.yaml (100%) create mode 100644 exampleSite/hugo.toml diff --git a/assets/img/commons/avatar.jpg b/exampleSite/assets/img/commons/avatar.jpg similarity index 100% rename from assets/img/commons/avatar.jpg rename to exampleSite/assets/img/commons/avatar.jpg diff --git a/config/_default/languages.toml b/exampleSite/config/_default/languages.toml similarity index 100% rename from config/_default/languages.toml rename to exampleSite/config/_default/languages.toml diff --git a/config/_default/markup.toml b/exampleSite/config/_default/markup.toml similarity index 100% rename from config/_default/markup.toml rename to exampleSite/config/_default/markup.toml diff --git a/config/_default/params.toml b/exampleSite/config/_default/params.toml similarity index 96% rename from config/_default/params.toml rename to exampleSite/config/_default/params.toml index 0f018f9..fa04e68 100644 --- a/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -1,4 +1,3 @@ -theme_version = "5.2.0" toc = true avatar = "img/commons/avatar.jpg" author = "yifan" diff --git a/content/_index.en.md b/exampleSite/content/_index.en.md similarity index 100% rename from content/_index.en.md rename to exampleSite/content/_index.en.md diff --git a/content/_index.zh-CN.md b/exampleSite/content/_index.zh-CN.md similarity index 100% rename from content/_index.zh-CN.md rename to exampleSite/content/_index.zh-CN.md diff --git a/content/about/index.en.md b/exampleSite/content/about/index.en.md similarity index 100% rename from content/about/index.en.md rename to exampleSite/content/about/index.en.md diff --git a/content/about/index.zh-CN.md b/exampleSite/content/about/index.zh-CN.md similarity index 100% rename from content/about/index.zh-CN.md rename to exampleSite/content/about/index.zh-CN.md diff --git a/content/archives/index.en.html b/exampleSite/content/archives/index.en.html similarity index 100% rename from content/archives/index.en.html rename to exampleSite/content/archives/index.en.html diff --git a/content/archives/index.zh-CN.html b/exampleSite/content/archives/index.zh-CN.html similarity index 100% rename from content/archives/index.zh-CN.html rename to exampleSite/content/archives/index.zh-CN.html diff --git a/content/categories/_index.en.md b/exampleSite/content/categories/_index.en.md similarity index 100% rename from content/categories/_index.en.md rename to exampleSite/content/categories/_index.en.md diff --git a/content/categories/_index.zh-CN.md b/exampleSite/content/categories/_index.zh-CN.md similarity index 100% rename from content/categories/_index.zh-CN.md rename to exampleSite/content/categories/_index.zh-CN.md diff --git a/content/post/2019-08-08-text-and-typography/devices-mockup.png b/exampleSite/content/post/2019-08-08-text-and-typography/devices-mockup.png similarity index 100% rename from content/post/2019-08-08-text-and-typography/devices-mockup.png rename to exampleSite/content/post/2019-08-08-text-and-typography/devices-mockup.png diff --git a/content/post/2019-08-08-text-and-typography/devtools-dark.png b/exampleSite/content/post/2019-08-08-text-and-typography/devtools-dark.png similarity index 100% rename from content/post/2019-08-08-text-and-typography/devtools-dark.png rename to exampleSite/content/post/2019-08-08-text-and-typography/devtools-dark.png diff --git a/content/post/2019-08-08-text-and-typography/devtools-light.png b/exampleSite/content/post/2019-08-08-text-and-typography/devtools-light.png similarity index 100% rename from content/post/2019-08-08-text-and-typography/devtools-light.png rename to exampleSite/content/post/2019-08-08-text-and-typography/devtools-light.png diff --git a/content/post/2019-08-08-text-and-typography/index.en.md b/exampleSite/content/post/2019-08-08-text-and-typography/index.en.md similarity index 100% rename from content/post/2019-08-08-text-and-typography/index.en.md rename to exampleSite/content/post/2019-08-08-text-and-typography/index.en.md diff --git a/content/post/2019-08-08-text-and-typography/index.zh-CN.md b/exampleSite/content/post/2019-08-08-text-and-typography/index.zh-CN.md similarity index 100% rename from content/post/2019-08-08-text-and-typography/index.zh-CN.md rename to exampleSite/content/post/2019-08-08-text-and-typography/index.zh-CN.md diff --git a/content/post/2019-08-08-text-and-typography/mockup.png b/exampleSite/content/post/2019-08-08-text-and-typography/mockup.png similarity index 100% rename from content/post/2019-08-08-text-and-typography/mockup.png rename to exampleSite/content/post/2019-08-08-text-and-typography/mockup.png diff --git a/content/post/2019-08-08-write-a-new-post/index.en.md b/exampleSite/content/post/2019-08-08-write-a-new-post/index.en.md similarity index 100% rename from content/post/2019-08-08-write-a-new-post/index.en.md rename to exampleSite/content/post/2019-08-08-write-a-new-post/index.en.md diff --git a/content/post/2019-08-08-write-a-new-post/index.zh-CN.md b/exampleSite/content/post/2019-08-08-write-a-new-post/index.zh-CN.md similarity index 100% rename from content/post/2019-08-08-write-a-new-post/index.zh-CN.md rename to exampleSite/content/post/2019-08-08-write-a-new-post/index.zh-CN.md diff --git a/content/post/2019-08-09-getting-started/index.en.md b/exampleSite/content/post/2019-08-09-getting-started/index.en.md similarity index 100% rename from content/post/2019-08-09-getting-started/index.en.md rename to exampleSite/content/post/2019-08-09-getting-started/index.en.md diff --git a/content/post/2019-08-09-getting-started/index.zh-CN.md b/exampleSite/content/post/2019-08-09-getting-started/index.zh-CN.md similarity index 100% rename from content/post/2019-08-09-getting-started/index.zh-CN.md rename to exampleSite/content/post/2019-08-09-getting-started/index.zh-CN.md diff --git a/content/post/2019-08-09-getting-started/pages-source-dark.png b/exampleSite/content/post/2019-08-09-getting-started/pages-source-dark.png similarity index 100% rename from content/post/2019-08-09-getting-started/pages-source-dark.png rename to exampleSite/content/post/2019-08-09-getting-started/pages-source-dark.png diff --git a/content/post/2019-08-09-getting-started/pages-source-light.png b/exampleSite/content/post/2019-08-09-getting-started/pages-source-light.png similarity index 100% rename from content/post/2019-08-09-getting-started/pages-source-light.png rename to exampleSite/content/post/2019-08-09-getting-started/pages-source-light.png diff --git a/content/post/2019-08-11-customize-the-favicon/index.en.md b/exampleSite/content/post/2019-08-11-customize-the-favicon/index.en.md similarity index 100% rename from content/post/2019-08-11-customize-the-favicon/index.en.md rename to exampleSite/content/post/2019-08-11-customize-the-favicon/index.en.md diff --git a/content/post/2019-08-11-customize-the-favicon/index.zh-CN.md b/exampleSite/content/post/2019-08-11-customize-the-favicon/index.zh-CN.md similarity index 100% rename from content/post/2019-08-11-customize-the-favicon/index.zh-CN.md rename to exampleSite/content/post/2019-08-11-customize-the-favicon/index.zh-CN.md diff --git a/content/tags/_index.en.md b/exampleSite/content/tags/_index.en.md similarity index 100% rename from content/tags/_index.en.md rename to exampleSite/content/tags/_index.en.md diff --git a/content/tags/_index.zh-CN.md b/exampleSite/content/tags/_index.zh-CN.md similarity index 100% rename from content/tags/_index.zh-CN.md rename to exampleSite/content/tags/_index.zh-CN.md diff --git a/data/authors/en.yaml b/exampleSite/data/authors/en.yaml similarity index 100% rename from data/authors/en.yaml rename to exampleSite/data/authors/en.yaml diff --git a/data/authors/zh-CN.yaml b/exampleSite/data/authors/zh-CN.yaml similarity index 100% rename from data/authors/zh-CN.yaml rename to exampleSite/data/authors/zh-CN.yaml diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml new file mode 100644 index 0000000..a6296ba --- /dev/null +++ b/exampleSite/hugo.toml @@ -0,0 +1,18 @@ +title = 'Chirpy' +enableGitInfo = true +theme = "hugo-theme-chirpy" +themesDir = "../../" + +defaultContentLanguage = "en" +defaultContentLanguageInSubdir = false +hasCJKLanguage = true + +[pagination] + pagerSize = 5 + +[outputs] + home = ["HTML", "RSS", "JSON"] + +[taxonomies] + category = "categories" + tag = "tags"