another go with tags
This commit is contained in:
parent
1bcb55eba1
commit
73dd6adab0
|
|
@ -28,8 +28,8 @@
|
|||
|
||||
<nav>
|
||||
<a href="{{ site.baseurl }}/">Blog</a>
|
||||
<!-- <a href="{{ site.baseurl }}/tags">Posts by tags</a>
|
||||
<a href="{{ site.baseurl }}/categories">Posts by categories</a> -->
|
||||
<a href="{{ site.baseurl }}/tags">Tags</a>
|
||||
<!-- <a href="{{ site.baseurl }}/categories">Posts by categories</a> -->
|
||||
<a href="{{ site.baseurl }}/about">About</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
|
|||
13
tags.html
Normal file
13
tags.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
layout: page
|
||||
title: Posts by tags
|
||||
permalink: /tags/
|
||||
---
|
||||
{% for tag in site.tags %}
|
||||
<h3>{{ tag[0] }}</h3>
|
||||
<ul>
|
||||
{% for post in tag[1] %}
|
||||
<li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
Loading…
Reference in a new issue