add links page
This commit is contained in:
parent
28078ca979
commit
9620ed2247
9 changed files with 418 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
<a class="{{ 'nav-active' if '/recipes' in page.url }}" href="{{ "/recipes/" | url }}">/recipes</a>
|
||||
<a class="{{ 'nav-active' if '/music' in page.url }}" href="{{ "/music/" | url }}">/music</a>
|
||||
<a class="{{ 'nav-active' if '/books' in page.url }}" href="{{ "/books/" | url }}">/books</a>
|
||||
<a class="{{ 'nav-active' if '/links' in page.url }}" href="{{ "/links/" | url }}">/links</a>
|
||||
<a class="{{ 'nav-active' if '/search' in page.url }}" href="{{ "/search/" | url }}">/search</a>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
22
site/pages/links.njk
Normal file
22
site/pages/links.njk
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
layout: "base.njk"
|
||||
title: "Links"
|
||||
permalink: /links/
|
||||
useTitle: true
|
||||
---
|
||||
<main>
|
||||
<section data-pagefind-body>
|
||||
<ul class="collection">
|
||||
{%- for item in collections.webroll -%}
|
||||
<li>
|
||||
<a href="{{item.url}}">{{item.data.title}}</a>
|
||||
{%- if item.data.date -%}
|
||||
<aside>{{item.data.date | formatDate("MMMM DD, YYYY") }}</aside>
|
||||
{%- endif -%}
|
||||
<aside>Tags: {{ item.data.tags | join(", ") }}</aside>
|
||||
{{item.data.description | safe}}
|
||||
</li>
|
||||
{%- endfor -%}
|
||||
</ul>
|
||||
</section>
|
||||
</main>
|
Loading…
Add table
Add a link
Reference in a new issue