cookbook/index.njk

27 lines
749 B
Plaintext

---
title: "Hello World!"
layout: main.njk
---
<h1>Cookbook</h1>
<p>Hello! This is a collection of delicious recipes.</p>
<p>Please add some of your own favourite recipes (or some cool feature) in the <a href="https://tildegit.org/jakew/cookbook">Git repo</a>.</p>
<h2>Contents</h2>
<ul>
{%- for recipe in collections.recipe -%}
<li class="recipe-item">
<span class="recipe-title">
<a href="{{ recipe.url | url }}">{{ recipe.data.title }}</a>
<span class="recipe-user">(~{{ recipe.data.recipe.author.username }})</span>
</span>
{% if recipe.data.recipe.description %}
<span class="recipe-description">{{ recipe.data.recipe.description }}</span>
{% endif %}
</li>
{%- endfor -%}
</ul>