move home page to site/pages
This commit is contained in:
parent
134300421c
commit
5963b95e37
4 changed files with 42 additions and 25 deletions
19
site/_includes/home.njk
Normal file
19
site/_includes/home.njk
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
layout: "base.njk"
|
||||
---
|
||||
{{ content | safe }}
|
||||
{%- for name, collection in collections -%}
|
||||
{%- if name not in ["all", "timeline", "pages"] -%}
|
||||
<h2>{{name | capitalize }}</h2>
|
||||
<ul>
|
||||
{%- for item in collection | reverse -%}
|
||||
<li>
|
||||
<a href="{{item.url}}">{{item.data.title}}</a>
|
||||
{%- if item.data.dateString -%}
|
||||
<aside>{{item.data.dateString}}</aside>
|
||||
{%- endif -%}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
Loading…
Add table
Add a link
Reference in a new issue