NixNet/_includes/category/title.html

10 lines
362 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% for category in site.data.categories %}
{% if category.slug == page.category %}
{% assign category_name = category.name %}
{% endif %}
{% endfor %}
<h1 class="page-title">
<div class="page-title__text">{{ category_name }}</div>
<div class="page-title__subtitle">Articles on the category <strong>{{ category_name }}</strong></div>
</h1>