From 49dc23cf9ca477e50f039faa1eab7170c8bf7e67 Mon Sep 17 00:00:00 2001 From: ppippi Date: Fri, 17 Oct 2025 21:53:54 +0900 Subject: [PATCH 1/2] folder page make --- _adk | 1 + _config.yml | 12 + _includes/header.html | 1 + _layouts/collection-chapter.html | 62 +++ _layouts/collection-index.html | 36 ++ _layouts/home.html | 14 + _posts/_adk/01-introduction.md | 6 + _posts_en/_adk/01-introduction.md | 6 + _sass/base/_variables.scss | 6 +- _sass/layouts/_index.scss | 2 +- _sass/layouts/_posts.scss | 2 +- _sass/layouts/_tags.scss | 16 +- assets/css/main.scss | 388 ++++++++++++++++-- assets/css/style.scss | 3 + assets/img/2025-10-10-adk/adk-social-card.png | Bin 0 -> 17597 bytes 15 files changed, 499 insertions(+), 56 deletions(-) create mode 120000 _adk create mode 100644 _layouts/collection-chapter.html create mode 100644 _layouts/collection-index.html create mode 100644 _posts/_adk/01-introduction.md create mode 100644 _posts_en/_adk/01-introduction.md create mode 100644 assets/css/style.scss create mode 100644 assets/img/2025-10-10-adk/adk-social-card.png diff --git a/_adk b/_adk new file mode 120000 index 0000000..d68f192 --- /dev/null +++ b/_adk @@ -0,0 +1 @@ +_posts/_adk \ No newline at end of file diff --git a/_config.yml b/_config.yml index b1f34f7..0b4f705 100644 --- a/_config.yml +++ b/_config.yml @@ -104,6 +104,18 @@ collections: posts_en: output: true permalink: /en/:year/:month/:day/:title/ + adk: + output: true + permalink: /adk/:path/ + +defaults: + - scope: + path: "" + type: adk + values: + layout: collection-chapter + collection_label: ADK + lang: ko # BUILD SETTINGS markdown: kramdown diff --git a/_includes/header.html b/_includes/header.html index f622419..48f982c 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -27,6 +27,7 @@

{% else %} {% assign site_pages = site.pages %} {% endif %} + {% for page in site_pages %} {% if page.title and page.hide != true %}
  • diff --git a/_layouts/collection-chapter.html b/_layouts/collection-chapter.html new file mode 100644 index 0000000..38c24e6 --- /dev/null +++ b/_layouts/collection-chapter.html @@ -0,0 +1,62 @@ +--- +layout: default +--- + +{% assign collection_name = page.collection %} +{% assign sort_key = page.collection_sort_key | default: 'order' %} +{% assign collection_items = site[collection_name] | sort: sort_key %} +{% assign collection_label = page.collection_label | default: collection_name | replace: '_', ' ' | capitalize %} + +
    + + +
    +
    +

    {{ page.title }}

    + {% if page.date %} +

    {{ page.date | date: "%Y.%m.%d" }}

    + {% endif %} +
    +
    + {{ content }} +
    + + {% if collection_items %} + + {% endif %} +
    +
    diff --git a/_layouts/collection-index.html b/_layouts/collection-index.html new file mode 100644 index 0000000..6d85e89 --- /dev/null +++ b/_layouts/collection-index.html @@ -0,0 +1,36 @@ +--- +layout: default +--- + +{% assign collection_name = page.collection | default: page.collection_name %} +{% assign index_sort_key = page.collection_sort_key | default: 'order' %} +{% assign collection_entries = site[collection_name] | sort: index_sort_key %} +{% assign collection_label = page.collection_label | default: collection_name | replace: '_', ' ' | capitalize %} + +
    +
    +

    {{ page.title | default: collection_label }}

    + {% if page.description %} +

    {{ page.description }}

    + {% endif %} +
    + +
      + {% for entry in collection_entries %} +
    1. +
      + {{ forloop.index }}. +
      + {{ entry.title }} + {% if entry.subtitle %} +

      {{ entry.subtitle }}

      + {% endif %} + {% if entry.description %} +

      {{ entry.description }}

      + {% endif %} +
      +
      +
    2. + {% endfor %} +
    +
    diff --git a/_layouts/home.html b/_layouts/home.html index d4861fb..cb3bfda 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -58,6 +58,20 @@

    {{ site.theme_settings.title }}