diff --git a/src/index.md b/src/index.md index a75e2ee..09d1b19 100644 --- a/src/index.md +++ b/src/index.md @@ -6,14 +6,35 @@ title: Homepage An index of family recipes collected over generations. +
+ Sort by: + + +
+
-{% for recipe in collections.recipe %} -
+{% for recipe in collections.recipe | sort(attribute="data.title") %} +

{{ recipe.data.title }}

- {% if recipe.data.author %} -

From the kitchen of: {{ recipe.data.author }}

- {% endif %} +

From the kitchen of: {{ recipe.data.author | default: 'Unknown Author' }}

{% endfor %}
+ + + +