From f4f4ed4233548a796ae05a720a09c73683c9208a Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Mon, 7 Sep 2026 17:14:39 +0800 Subject: config: set title in feed; migrate to zola 0.23 --- config.toml | 68 --------------------------------------------------------- zola.toml | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 68 deletions(-) delete mode 100644 config.toml create mode 100644 zola.toml diff --git a/config.toml b/config.toml deleted file mode 100644 index 11d7eb6..0000000 --- a/config.toml +++ /dev/null @@ -1,68 +0,0 @@ -# The URL the site will be built for -base_url = "https://blog.135e2.dev" - -# Whether to automatically compile all Sass files in the sass directory -compile_sass = true - -# The default language; used in feeds. -default_language = "zh-cn" - -# theme -theme = "Seje2" - -# When set to "true", the generated HTML files are minified. -minify_html = true - -# When set to "true", a feed is automatically generated. -generate_feeds = true - -# The filename to use for the feed. Used as the template filename, too. -# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed. -# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed. -feed_filenames = ["rss.xml"] - -taxonomies = [ - {name = "categories", feed = true}, - {name = "tags", feed = true}, -] - -[markdown.highlighting] -style = "class" -light_theme = "solarized-light" -dark_theme = "one-dark-pro" - -[extra] -# Put all your custom variables here -# show Chinese date format instead of normal date format -seje_chinese_date = true -# show summary instead of the whole article on the index page -seje_show_summary_only = true -# Google Font API mirror URLs (for China mainland users, try fonts.loli.net) -seje_font_mirror = "fonts.googleapis.com" -# whether use traditional Chinese style vertical layout -seje_vertical_layout = false -# additional custom fonts to include (must be in CSS font-family format) -seje_custom_fonts = "" -# whether enable darkmode. Possible values: auto, always, never -seje_darkmode = "auto" -# Your site blog links -seje_menu_links = [ - {url = "$BASE_URL/", name = "home"}, - {url = "$BASE_URL/archives", name = "archives"}, - {url = "$BASE_URL/about", name = "about"}, - {url = "$BASE_URL/tags", name = "tag"}, - {url = "$BASE_URL/rss.xml", name = "rss"}, -] - -[translations] -title = "无何有之乡" -home = "主页" -archives = "归档" -about = "关于" -tag = "标签" -rss = "订阅" -more = "查看全文" -olderArticle = "旧文章" -newer = "上一篇" -older = "下一篇" -loading = "加载中..." diff --git a/zola.toml b/zola.toml new file mode 100644 index 0000000..cd4e8ca --- /dev/null +++ b/zola.toml @@ -0,0 +1,72 @@ +# The URL the site will be built for +base_url = "https://blog.135e2.dev" + +# Whether to automatically compile all Sass files in the sass directory +compile_sass = true + +# The default language; used in feeds. +default_language = "zh-cn" + +# theme +theme = "Seje2" + +# When set to "true", the generated HTML files are minified. +minify_html = true + +# When set to "true", a feed is automatically generated. +generate_feeds = true + +# The site title and description; used in feeds by default. +title = "无何有之乡" +description = "the Land of Nothingless" + +# The filename to use for the feed. Used as the template filename, too. +# Defaults to "atom.xml", which has a built-in template that renders an Atom 1.0 feed. +# There is also a built-in template "rss.xml" that renders an RSS 2.0 feed. +feed_filenames = ["rss.xml"] + +taxonomies = [ + {name = "categories", feed = true}, + {name = "tags", feed = true}, +] + +[markdown.highlighting] +style = "class" +light_theme = "solarized-light" +dark_theme = "one-dark-pro" + +[extra] +# Put all your custom variables here +# show Chinese date format instead of normal date format +seje_chinese_date = true +# show summary instead of the whole article on the index page +seje_show_summary_only = true +# Google Font API mirror URLs (for China mainland users, try fonts.loli.net) +seje_font_mirror = "fonts.googleapis.com" +# whether use traditional Chinese style vertical layout +seje_vertical_layout = false +# additional custom fonts to include (must be in CSS font-family format) +seje_custom_fonts = "" +# whether enable darkmode. Possible values: auto, always, never +seje_darkmode = "auto" +# Your site blog links +seje_menu_links = [ + {url = "$BASE_URL/", name = "home"}, + {url = "$BASE_URL/archives", name = "archives"}, + {url = "$BASE_URL/about", name = "about"}, + {url = "$BASE_URL/tags", name = "tag"}, + {url = "$BASE_URL/rss.xml", name = "rss"}, +] + +[translations] +title = "无何有之乡" +home = "主页" +archives = "归档" +about = "关于" +tag = "标签" +rss = "订阅" +more = "查看全文" +olderArticle = "旧文章" +newer = "上一篇" +older = "下一篇" +loading = "加载中..." -- cgit v1.2.3