diff --git a/content/diary/2000-01-01-draft.md b/content/blog/2000-01-01-draft.md similarity index 100% rename from content/diary/2000-01-01-draft.md rename to content/blog/2000-01-01-draft.md diff --git a/content/diary/2021-01-28-what-i-wanted-to-do.md b/content/blog/2021-01-28-what-i-wanted-to-do.md similarity index 100% rename from content/diary/2021-01-28-what-i-wanted-to-do.md rename to content/blog/2021-01-28-what-i-wanted-to-do.md diff --git a/content/diary/2021-06-20-siheomeul-iljuil-apdugo.md b/content/blog/2021-06-20-siheomeul-iljuil-apdugo.md similarity index 100% rename from content/diary/2021-06-20-siheomeul-iljuil-apdugo.md rename to content/blog/2021-06-20-siheomeul-iljuil-apdugo.md diff --git a/content/diary/2021-09-10-attitude-for-criticism.md b/content/blog/2021-09-10-attitude-for-criticism.md similarity index 100% rename from content/diary/2021-09-10-attitude-for-criticism.md rename to content/blog/2021-09-10-attitude-for-criticism.md diff --git a/content/diary/2021-09-11-what-i-want-to-do.md b/content/blog/2021-09-11-what-i-want-to-do.md similarity index 100% rename from content/diary/2021-09-11-what-i-want-to-do.md rename to content/blog/2021-09-11-what-i-want-to-do.md diff --git a/content/diary/2021-10-08-beulrogeu-geulsseugineun-neomu-himdeuleo.md b/content/blog/2021-10-08-beulrogeu-geulsseugineun-neomu-himdeuleo.md similarity index 100% rename from content/diary/2021-10-08-beulrogeu-geulsseugineun-neomu-himdeuleo.md rename to content/blog/2021-10-08-beulrogeu-geulsseugineun-neomu-himdeuleo.md diff --git a/content/diary/2021-10-23-datacenter.md b/content/blog/2021-10-23-datacenter.md similarity index 100% rename from content/diary/2021-10-23-datacenter.md rename to content/blog/2021-10-23-datacenter.md diff --git a/content/diary/2021-10-23-gaeinjeongbo-privacy.md b/content/blog/2021-10-23-gaeinjeongbo-privacy.md similarity index 100% rename from content/diary/2021-10-23-gaeinjeongbo-privacy.md rename to content/blog/2021-10-23-gaeinjeongbo-privacy.md diff --git a/content/diary/2021-10-23-haggyoeseo-haessdeon-peurojegteudeul.md b/content/blog/2021-10-23-haggyoeseo-haessdeon-peurojegteudeul.md similarity index 100% rename from content/diary/2021-10-23-haggyoeseo-haessdeon-peurojegteudeul.md rename to content/blog/2021-10-23-haggyoeseo-haessdeon-peurojegteudeul.md diff --git a/content/diary/2021-10-23-how-i-wanted-to-do.md b/content/blog/2021-10-23-how-i-wanted-to-do.md similarity index 100% rename from content/diary/2021-10-23-how-i-wanted-to-do.md rename to content/blog/2021-10-23-how-i-wanted-to-do.md diff --git a/content/diary/2021-10-23-insaeng-dubeonjjae-silpae.md b/content/blog/2021-10-23-insaeng-dubeonjjae-silpae.md similarity index 100% rename from content/diary/2021-10-23-insaeng-dubeonjjae-silpae.md rename to content/blog/2021-10-23-insaeng-dubeonjjae-silpae.md diff --git a/content/diary/2021-10-30-jeonja-jeeoyi-segyein-mirae-geu-boanyi-wihyeob.md b/content/blog/2021-10-30-jeonja-jeeoyi-segyein-mirae-geu-boanyi-wihyeob.md similarity index 100% rename from content/diary/2021-10-30-jeonja-jeeoyi-segyein-mirae-geu-boanyi-wihyeob.md rename to content/blog/2021-10-30-jeonja-jeeoyi-segyein-mirae-geu-boanyi-wihyeob.md diff --git a/content/diary/2021-10-30-yangjadeulyi-teuraenjiseuteo.md b/content/blog/2021-10-30-yangjadeulyi-teuraenjiseuteo.md similarity index 100% rename from content/diary/2021-10-30-yangjadeulyi-teuraenjiseuteo.md rename to content/blog/2021-10-30-yangjadeulyi-teuraenjiseuteo.md diff --git a/content/diary/2021-12-01-daehag-ibsiga-handangye-namassda.md b/content/blog/2021-12-01-daehag-ibsiga-handangye-namassda.md similarity index 100% rename from content/diary/2021-12-01-daehag-ibsiga-handangye-namassda.md rename to content/blog/2021-12-01-daehag-ibsiga-handangye-namassda.md diff --git a/content/diary/2021-12-21-godeunghaggyo-dolabogi.md b/content/blog/2021-12-21-godeunghaggyo-dolabogi.md similarity index 100% rename from content/diary/2021-12-21-godeunghaggyo-dolabogi.md rename to content/blog/2021-12-21-godeunghaggyo-dolabogi.md diff --git a/content/diary/2022-04-09-dareun-jibe-eonjhyeo-sandaneun-geoseun.md b/content/blog/2022-04-09-dareun-jibe-eonjhyeo-sandaneun-geoseun.md similarity index 100% rename from content/diary/2022-04-09-dareun-jibe-eonjhyeo-sandaneun-geoseun.md rename to content/blog/2022-04-09-dareun-jibe-eonjhyeo-sandaneun-geoseun.md diff --git a/content/diary/2022-04-14-gyoyug-silpae.md b/content/blog/2022-04-14-gyoyug-silpae.md similarity index 100% rename from content/diary/2022-04-14-gyoyug-silpae.md rename to content/blog/2022-04-14-gyoyug-silpae.md diff --git a/content/diary/2023-05-06-about-usb-c-and-dp-alt-mode.md b/content/blog/2023-05-06-about-usb-c-and-dp-alt-mode.md similarity index 100% rename from content/diary/2023-05-06-about-usb-c-and-dp-alt-mode.md rename to content/blog/2023-05-06-about-usb-c-and-dp-alt-mode.md diff --git a/content/diary/2023-10-23-git-mirror-self-hosting.md b/content/blog/2023-10-23-git-mirror-self-hosting.md similarity index 100% rename from content/diary/2023-10-23-git-mirror-self-hosting.md rename to content/blog/2023-10-23-git-mirror-self-hosting.md diff --git a/static/admin/config.yml b/static/admin/config.yml index 2c4f583..7d386fa 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -25,6 +25,20 @@ collections: - { label: 'Description', name: 'description', widget: 'string', required: false } - { label: 'Body', name: 'body', widget: 'markdown' } + - name: 'daily' + label: 'Daily' + folder: 'content/daily' + create: true + publish_mode: editorial_workflow + slug: '{{year}}-{{month}}-{{day}}' + editor: + preview: false + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Publish Date', name: 'date', widget: 'datetime' } + - { label: 'Slug', name: 'slug', widget: 'string' } + - { label: 'Body', name: 'body', widget: 'markdown' } + - name: 'diary' label: 'Diary' folder: 'content/diary' diff --git a/themes/mytheme/layouts/_default/list.html b/themes/mytheme/layouts/_default/list.html index f214580..1a3819c 100644 --- a/themes/mytheme/layouts/_default/list.html +++ b/themes/mytheme/layouts/_default/list.html @@ -1,6 +1,6 @@ {{ define "main" }}
-
+

{{ .Title }}

@@ -25,4 +25,8 @@ {{ end }}
+
+
Posts
+
Daily
+
{{ end }}