diff --git a/config.yml b/config.yml index c512b32..7ba34b9 100644 --- a/config.yml +++ b/config.yml @@ -106,14 +106,18 @@ params: menu: main: - - identifier: posts - name: Posts - url: /posts/ - weight: 30 - identifier: admin name: Admin url: /admin/ weight: 10 + - identifier: diary + name: Diary + url: /blog/ + weight: 30 + - identifier: posts + name: Posts + url: /posts/ + weight: 30 # - identifier: tags # name: Tags # url: /tags/ diff --git a/content/docs/2021-05-21-pyphy-mulrienjin-1pyeon-gibon-aidieo.md b/content/blog/2021-05-21-pyphy-mulrienjin-1pyeon-gibon-aidieo.md similarity index 100% rename from content/docs/2021-05-21-pyphy-mulrienjin-1pyeon-gibon-aidieo.md rename to content/blog/2021-05-21-pyphy-mulrienjin-1pyeon-gibon-aidieo.md diff --git a/content/docs/2021-07-09-bandoceyi-weonri-jongryu-soja-yeogsa-saneob-mosfetbuteo-ram-flash-geurigo-intel-4004ggaji.md b/content/blog/2021-07-09-bandoceyi-weonri-jongryu-soja-yeogsa-saneob-mosfetbuteo-ram-flash-geurigo-intel-4004ggaji.md similarity index 100% rename from content/docs/2021-07-09-bandoceyi-weonri-jongryu-soja-yeogsa-saneob-mosfetbuteo-ram-flash-geurigo-intel-4004ggaji.md rename to content/blog/2021-07-09-bandoceyi-weonri-jongryu-soja-yeogsa-saneob-mosfetbuteo-ram-flash-geurigo-intel-4004ggaji.md diff --git a/content/docs/2021-07-09-cryptography.md b/content/blog/2021-07-09-cryptography.md similarity index 100% rename from content/docs/2021-07-09-cryptography.md rename to content/blog/2021-07-09-cryptography.md diff --git a/content/docs/2021-07-10-jeonsanyuceyeoghag-cfd-with-python-navier-stokes-equation.md b/content/blog/2021-07-10-jeonsanyuceyeoghag-cfd-with-python-navier-stokes-equation.md similarity index 100% rename from content/docs/2021-07-10-jeonsanyuceyeoghag-cfd-with-python-navier-stokes-equation.md rename to content/blog/2021-07-10-jeonsanyuceyeoghag-cfd-with-python-navier-stokes-equation.md diff --git a/content/docs/2021-08-06-hardware-security.md b/content/blog/2021-08-06-hardware-security.md similarity index 100% rename from content/docs/2021-08-06-hardware-security.md rename to content/blog/2021-08-06-hardware-security.md diff --git a/content/docs/2021-08-06-security-of-iot.md b/content/blog/2021-08-06-security-of-iot.md similarity index 100% rename from content/docs/2021-08-06-security-of-iot.md rename to content/blog/2021-08-06-security-of-iot.md diff --git a/content/docs/2021-08-06-yangja-keompyuteowa-yangja-eonilring.md b/content/blog/2021-08-06-yangja-keompyuteowa-yangja-eonilring.md similarity index 100% rename from content/docs/2021-08-06-yangja-keompyuteowa-yangja-eonilring.md rename to content/blog/2021-08-06-yangja-keompyuteowa-yangja-eonilring.md diff --git a/content/docs/2021-10-30-1-spectre-attacks-exploiting-peculative-execution.md b/content/blog/2021-10-30-1-spectre-attacks-exploiting-peculative-execution.md similarity index 100% rename from content/docs/2021-10-30-1-spectre-attacks-exploiting-peculative-execution.md rename to content/blog/2021-10-30-1-spectre-attacks-exploiting-peculative-execution.md diff --git a/content/docs/2021-10-30-ad-techwa-tonggyeyi-sseuimsae.md b/content/blog/2021-10-30-ad-techwa-tonggyeyi-sseuimsae.md similarity index 100% rename from content/docs/2021-10-30-ad-techwa-tonggyeyi-sseuimsae.md rename to content/blog/2021-10-30-ad-techwa-tonggyeyi-sseuimsae.md diff --git a/content/docs/2021-10-30-gugeuleun-geu-manheun-peijireul-eoddeohge-cajanaelgga.md b/content/blog/2021-10-30-gugeuleun-geu-manheun-peijireul-eoddeohge-cajanaelgga.md similarity index 100% rename from content/docs/2021-10-30-gugeuleun-geu-manheun-peijireul-eoddeohge-cajanaelgga.md rename to content/blog/2021-10-30-gugeuleun-geu-manheun-peijireul-eoddeohge-cajanaelgga.md diff --git a/content/docs/2023-10-25-toward-an-electronically-mediated-decentralistic-society.md b/content/blog/2023-10-25-toward-an-electronically-mediated-decentralistic-society.md similarity index 100% rename from content/docs/2023-10-25-toward-an-electronically-mediated-decentralistic-society.md rename to content/blog/2023-10-25-toward-an-electronically-mediated-decentralistic-society.md diff --git a/static/admin/config.yml b/static/admin/config.yml index cf7e9ba..4850119 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -24,3 +24,18 @@ collections: - { label: 'Slug', name: 'slug', widget: 'string' } - { label: 'Description', name: 'description', widget: 'string', required: false } - { label: 'Body', name: 'body', widget: 'markdown' } + + - name: 'diary' + label: 'Diary' + folder: 'content/blog' + create: true + publish_mode: editorial_workflow + slug: '{{year}}-{{month}}-{{day}}-{{slug}}' + editor: + preview: false + fields: + - { label: 'Title', name: 'title', widget: 'string' } + - { label: 'Publish Date', name: 'date', widget: 'datetime' } + - { label: 'Slug', name: 'slug', widget: 'string' } + - { label: 'Description', name: 'description', widget: 'string', required: false } + - { label: 'Body', name: 'body', widget: 'markdown' }