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 }}