diff --git a/docs b/docs index 19740c371..483d685a8 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 19740c371950563a14a9312d31312424d73cde5e +Subproject commit 483d685a8034e38e20188d2e27c1ddfa581ecfa7 diff --git a/hugo.toml b/hugo.toml index 50e037326..80699984a 100644 --- a/hugo.toml +++ b/hugo.toml @@ -219,14 +219,8 @@ enableEmoji = true mediaType = "text/markdown" isPlainText = true isHTML = false - # FixIt 0.2.15 | NEW Options to make output baidu_urls.txt file - [outputFormats.BaiduUrls] - baseName = "baidu_urls" - mediaType = "text/plain" - isPlainText = true - isHTML = false # FixIt 0.3.0 | NEW Options to make output /archives/index.html file - [archives] + [outputFormats.archives] path = "archives" baseName = "index" mediaType = "text/html" @@ -234,21 +228,39 @@ enableEmoji = true isHTML = true permalinkable = true # FixIt 0.3.0 | NEW Options to make output /offline/index.html file - [offline] + [outputFormats.offline] path = "offline" baseName = "index" mediaType = "text/html" isPlainText = false isHTML = true permalinkable = true + # FixIt 0.3.0 | NEW Options to make output readme.md file + [outputFormats.README] + baseName = "readme" + mediaType = "text/markdown" + isPlainText = true + isHTML = false + # FixIt 0.3.0 | CHANGED Options to make output baidu_urls.txt file + [outputFormats.baidu_urls] + baseName = "baidu_urls" + mediaType = "text/plain" + isPlainText = true + isHTML = false # ------------------------------------------------------------------------------------- # Customizing Output Formats # See: https://gohugo.io/templates/output-formats/#customizing-output-formats # ------------------------------------------------------------------------------------- +# Options to make hugo output files, the optional values are below: +# home: ["HTML", "RSS", "JSON", "archives", "offline", "README", "baidu_urls"] +# page: ["HTML", "MarkDown"] +# section: ["HTML", "RSS"] +# taxonomy: ["HTML", "RSS"] +# term: ["HTML", "RSS"] [outputs] - home = ["HTML", "RSS", "JSON", "BaiduUrls", "archives", "offline"] + home = ["HTML", "RSS", "JSON", "archives", "offline"] page = ["HTML", "MarkDown"] section = ["HTML", "RSS"] taxonomy = ["HTML"] diff --git a/i18n/de.toml b/i18n/de.toml index 2ec488b09..3e559e528 100644 --- a/i18n/de.toml +++ b/i18n/de.toml @@ -55,6 +55,10 @@ recentlyUpdated = "Zuletzt aktualisiert" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/en.toml b/i18n/en.toml index ab799cdf9..209f15c09 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -54,6 +54,10 @@ recentlyUpdated = "Recently Updated" [section.totalWordCount] one = "Total one word" other = "Total {{ .Count }} words" + +[section.archiveCounter] +one = "Only one article" +other = "{{ .Count }} articles in total" # === Section === # === Pagination === diff --git a/i18n/es.toml b/i18n/es.toml index 722c01e2e..effdf4072 100644 --- a/i18n/es.toml +++ b/i18n/es.toml @@ -55,6 +55,10 @@ recentlyUpdated = "Actualizado recientemente" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/fr.toml b/i18n/fr.toml index aaa81c3a9..34e6d5a05 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -54,6 +54,10 @@ recentlyUpdated = "Récemment Modifié" [section.totalWordCount] one = "Nombre de mots: 1" other = "Nombre de mots: {{ .Count }}" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/it.toml b/i18n/it.toml index 9be327bbf..21bb4f270 100644 --- a/i18n/it.toml +++ b/i18n/it.toml @@ -55,6 +55,10 @@ recentlyUpdated = "Aggiornati di recente" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/pl.toml b/i18n/pl.toml index 7a0f45a9e..0a8209ff6 100644 --- a/i18n/pl.toml +++ b/i18n/pl.toml @@ -55,6 +55,10 @@ recentlyUpdated = "Ostatnio zaktualizowane" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/pt-BR.toml b/i18n/pt-BR.toml index 08d826fcc..10b88c5bc 100644 --- a/i18n/pt-BR.toml +++ b/i18n/pt-BR.toml @@ -55,6 +55,10 @@ recentlyUpdated = "Recentemente atualizado" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/ro.toml b/i18n/ro.toml index d2e86883c..8f2dc1d58 100644 --- a/i18n/ro.toml +++ b/i18n/ro.toml @@ -55,6 +55,10 @@ recentlyUpdated = "Actualizat recent" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/ru.toml b/i18n/ru.toml index 92d3d86b0..85a514e63 100644 --- a/i18n/ru.toml +++ b/i18n/ru.toml @@ -55,6 +55,10 @@ recentlyUpdated = "Недавно обновленные" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/sr.toml b/i18n/sr.toml index 6b9b4847d..3da42f632 100644 --- a/i18n/sr.toml +++ b/i18n/sr.toml @@ -55,6 +55,10 @@ recentlyUpdated = "Недавно Ажурирано" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/vi.toml b/i18n/vi.toml index d5b4a05c2..948f5bdb5 100644 --- a/i18n/vi.toml +++ b/i18n/vi.toml @@ -54,6 +54,10 @@ recentlyUpdated = "Mới nhất" [section.totalWordCount] one = "" other = "" + +[section.archiveCounter] +one = "" +other = "" # === Section === # === Pagination === diff --git a/i18n/zh-CN.toml b/i18n/zh-CN.toml index 3bcc2ce0d..b1ed49fe9 100644 --- a/i18n/zh-CN.toml +++ b/i18n/zh-CN.toml @@ -53,6 +53,9 @@ recentlyUpdated = "最近更新" [section.totalWordCount] other = "总计约 {{ .Count }} 字" + +[section.archiveCounter] +other = "共计 {{ .Count }} 篇文章" # === Section === # === Pagination === diff --git a/i18n/zh-TW.toml b/i18n/zh-TW.toml index d2395c335..643b23c05 100644 --- a/i18n/zh-TW.toml +++ b/i18n/zh-TW.toml @@ -53,6 +53,9 @@ recentlyUpdated = "最近更新" [section.totalWordCount] other = "總計約 {{ .Count }} 字" + +[section.archiveCounter] +other = "共計 {{ .Count }} 篇文章" # === Section === # === Pagination === diff --git a/layouts/index.txt b/layouts/index.baidu_urls.txt similarity index 100% rename from layouts/index.txt rename to layouts/index.baidu_urls.txt diff --git a/layouts/index.readme.md b/layouts/index.readme.md new file mode 100644 index 000000000..bb7ff5803 --- /dev/null +++ b/layouts/index.readme.md @@ -0,0 +1,13 @@ +# {{ .Site.Title }} + +{{ $pages := where .Site.RegularPages "Type" "posts" -}} +{{- $pages = where $pages "Draft" "eq" false -}} +{{- T "section.archiveCounter" (len $pages) }} +{{ range $pages.GroupByPublishDate "2006" }} + {{- if ne .Key "0001" -}} + {{- printf "\n## %v\n\n" .Key -}} + {{- range .Pages -}} + {{- printf "- %v [%v](%v \"%v\")\n" (.PublishDate.Format "01-02") .Title .Permalink (.PublishDate.Format "2006-01-02 15:04:05") -}} + {{- end -}} + {{- end -}} +{{- end -}}