diff --git a/_data/menu.yml b/_data/menu.yml index 3af58d9..bf3f4b5 100644 --- a/_data/menu.yml +++ b/_data/menu.yml @@ -1,7 +1,6 @@ entries: - title: about - content: | -

Lorem.

+ content_file: about.md - title: all posts post_list: true diff --git a/_includes/menu.html b/_includes/menu.html index 4ddf29a..a327b2a 100644 --- a/_includes/menu.html +++ b/_includes/menu.html @@ -1,7 +1,15 @@ {%- for item in include.collection -%}

// {{ item.title }} //

- {%- if item.content -%}{{ item.content }}{%- endif -%} + {%- if item.content_file -%} + {%- assign _menu_page = site.pages + | where: 'path', item.content_file + | first + -%} + {{ _menu_page.content | markdownify }} + {%- elsif item.content -%} + {{ item.content }} + {%- endif -%}
{%- if item.post_list -%}{%- include post_list.html -%}{%- endif -%} {%- if item.entries -%} diff --git a/about.md b/about.md new file mode 100644 index 0000000..4a9c348 --- /dev/null +++ b/about.md @@ -0,0 +1,6 @@ +--- +--- + +a minimal, monochrome dark jekyll theme for writers and developers who prefer simplicity over noise. + +configure your menu in `_data/menu.yml`, write posts in `_posts/` — that's it.