another go at post subsites

This commit is contained in:
Lukasz Skotarek 2020-04-03 09:42:54 +02:00
parent d2513a8b54
commit 699948ebc9
2 changed files with 6 additions and 8 deletions

View file

@ -4,10 +4,9 @@ title: Posts by categories
permalink: /categories/
---
{% for category in site.categories %}
<h3>{{ category[0] }}</h3>
<ul>
*{{ category[0] }}
{% for post in category[1] %}
<li><a href=" {{ post.url }}">{{ post.title }}</a></li>
⋅⋅*[{{ post.title }}]({{ post.url }}
{% endfor %}
</ul>
{% endfor %}

View file

@ -4,10 +4,9 @@ title: Posts by tags
permalink: /tags/
---
{% for tag in site.tags %}
<h3>{{ tag[0] }}</h3>
<ul>
*{{ tag[0] }}
{% for post in tag[1] %}
<li><a href=" {{ post.url }}">{{ post.title }}</a></li>
⋅⋅*[{{ post.title }}]({{ post.url }}
{% endfor %}
</ul>
{% endfor %}