another go with tags
This commit is contained in:
parent
1bcb55eba1
commit
73dd6adab0
3 changed files with 15 additions and 14 deletions
|
|
@ -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 %}
|
||||
12
tags.md
12
tags.md
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
layout: page
|
||||
title: Posts by tags
|
||||
permalink: /tags/
|
||||
---
|
||||
{% for tag in site.tags %}
|
||||
*{{ tag[0] }}
|
||||
|
||||
{% for post in tag[1] %}
|
||||
⋅⋅*[{{ post.title }}]({{ post.url }}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue