Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions _data/menu.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
entries:
- title: about
content: |
<p> Lorem.</p>
content_file: about.md

- title: all posts
post_list: true
10 changes: 9 additions & 1 deletion _includes/menu.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
{%- for item in include.collection -%}
<section>
<h2 class="section-title">// {{ item.title }} //</h2>
{%- 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 -%}
</section>
{%- if item.post_list -%}{%- include post_list.html -%}{%- endif -%}
{%- if item.entries -%}
Expand Down
6 changes: 6 additions & 0 deletions about.md
Original file line number Diff line number Diff line change
@@ -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.