I wrote a small personal knowlege base for cooking recipes I like: reCocina.
I have added date in frontmatter to sort by date (last recipes) in index
BUT I want to keep my taxonomy singles sorted by title.
Current taxonomy_single
template is only this:
{% extends "base.html" %}
{% block main %}
<h1 class="page-title">{{ macros::category(name = term.name) }}</h1>
<p class="page-subtitle">{{ macros::category(name = term.name, type = "description") }}</p>
<div class="container mb-4">
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 row-cols-xxl-4 g-4">
{% for page in paginator.pages %}
{{ macros::recipeCard(recipe = page) }}
{% endfor %}
</div>
</div>
{% include "partials/paginator.html" %}
{% endblock main %}
DONE. I noticed I should have taken a look Tera docs
{% for page in paginator.pages | sort(attribute="title") %}