diff --git a/CHANGELOG.md b/CHANGELOG.md index 01d7a61a..3f6f05b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. > Snapshot: - :sparkles: Feat: enhance auto toc feature ([#104](https://github.com/Lruihao/FixIt/issues/104) [#136](https://github.com/Lruihao/FixIt/issues/136)) +- :sparkles: Feat(SEO): add options to make output baidu_urls.txt file ([#138](https://github.com/Lruihao/FixIt/issues/138)) - :bug: Fix: Giscus comments invalid config `inputPosition` - :art: Style: add scroll bar for auto toc ([#136](https://github.com/Lruihao/FixIt/issues/136)) - :arrow_up: Chore: update some third-party libraries diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 6b7a12de..b12696d3 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -1213,23 +1213,35 @@ enableEmoji = true [privacy.youtube] privacyEnhanced = true -# Options to make output .md files -# 用于输出 Markdown 格式文档的设置 [mediaTypes] - [mediaTypes."text/plain"] + # Options to make output .md files + # 用于输出 Markdown 格式文档的设置 + [mediaTypes."text/markdown"] suffixes = ["md"] + # Options to make output .txt files + # 用于输出 txt 文件的设置 + [mediaTypes."text/plain"] + suffixes = ["txt"] -# Options to make output .md files -# 用于输出 Markdown 格式文档的设置 -[outputFormats.MarkDown] - mediaType = "text/plain" - isPlainText = true - isHTML = false +[outputFormats] + # Options to make output .md files + # 用于输出 Markdown 格式文档的设置 + [outputFormats.MarkDown] + mediaType = "text/plain" + isPlainText = true + isHTML = false + # Options to make output baidu_urls.txt file + # 用于输出 baidu_urls.txt 文件的设置 + [outputFormats.BaiduUrls] + baseName = "baidu_urls" + mediaType = "text/plain" + isPlainText = true + isHTML = false # Options to make hugo output files # 用于 Hugo 输出文档的设置 [outputs] - home = ["HTML", "RSS", "JSON"] + home = ["HTML", "RSS", "JSON", "BaiduUrls"] page = ["HTML", "MarkDown"] section = ["HTML", "RSS"] taxonomy = ["HTML", "RSS"] diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 0a63de7f..0af3b585 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -881,21 +881,32 @@ Please open the code block below to view the complete sample configuration :(fa- [privacy.youtube] privacyEnhanced = true -# Options to make output .md files +# {{< version 0.2.15 changed >}} [mediaTypes] - [mediaTypes."text/plain"] + # Options to make output .md files + [mediaTypes."text/markdown"] suffixes = ["md"] + # Options to make output .txt files + [mediaTypes."text/plain"] + suffixes = ["txt"] -# Options to make output .md files -[outputFormats.MarkDown] - mediaType = "text/plain" - isPlainText = true - isHTML = false +# {{< version 0.2.15 changed >}} +[outputFormats] + # Options to make output .md files + [outputFormats.MarkDown] + mediaType = "text/markdown" + isPlainText = true + isHTML = false + # {{< version 0.2.15 >}} Options to make output baidu_urls.txt file + [outputFormats.BaiduUrls] + baseName = "baidu_urls" + mediaType = "text/plain" + isPlainText = true + isHTML = false -# Options to make hugo output files +# {{< version 0.2.15 changed >}} Options to make hugo output files [outputs] - # {{< version 0.2.0 changed >}} - home = ["HTML", "RSS", "JSON"] + home = ["HTML", "RSS", "JSON", "BaiduUrls"] page = ["HTML", "MarkDown"] section = ["HTML", "RSS"] taxonomy = ["HTML", "RSS"] diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index a4aadeb0..6406e426 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -882,21 +882,32 @@ hugo [privacy.youtube] privacyEnhanced = true -# 用于输出 Markdown 格式文档的设置 +# {{< version 0.2.15 changed >}} [mediaTypes] - [mediaTypes."text/plain"] + # 用于输出 Markdown 格式文档的设置 + [mediaTypes."text/markdown"] suffixes = ["md"] + # 用于输出 txt 格式文档的设置 + [mediaTypes."text/plain"] + suffixes = ["txt"] -# 用于输出 Markdown 格式文档的设置 -[outputFormats.MarkDown] - mediaType = "text/plain" - isPlainText = true - isHTML = false +# {{< version 0.2.15 changed >}} +[outputFormats] + # 用于输出 Markdown 格式文档的设置 + [outputFormats.MarkDown] + mediaType = "text/plain" + isPlainText = true + isHTML = false + # {{< version 0.2.15 >}} 用于输出 baidu_urls.txt 文件的设置 + [outputFormats.BaiduUrls] + baseName = "baidu_urls" + mediaType = "text/plain" + isPlainText = true + isHTML = false -# 用于 Hugo 输出文档的设置 +# {{< version 0.2.15 changed >}} 用于 Hugo 输出文档的设置 [outputs] - # {{< version 0.2.0 changed >}} - home = ["HTML", "RSS", "JSON"] + home = ["HTML", "RSS", "JSON", "BaiduUrls"] page = ["HTML", "MarkDown"] section = ["HTML", "RSS"] taxonomy = ["HTML", "RSS"] diff --git a/layouts/index.txt b/layouts/index.txt new file mode 100644 index 00000000..3164374b --- /dev/null +++ b/layouts/index.txt @@ -0,0 +1,3 @@ +{{- range (where .Site.Pages "Kind" "page") -}} + {{- println .Permalink -}} +{{- end -}} \ No newline at end of file