Skip to content

Commit 4ac3f7a

Browse files
committed
add support for tags
1 parent 034020b commit 4ac3f7a

File tree

5 files changed

+23
-1
lines changed

5 files changed

+23
-1
lines changed

_layouts/post.html

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ <h2 class="post-title">{{ page.title }}</h2>
1111
<article class="post-content">
1212
{{ content }}
1313
</article>
14+
15+
<li id="taglist">
16+
{% for tag in page.tags %}
17+
<a href='{{ site.baseurl}}/tags/#{{tag | downcase | replace:" ","-" }}'>{{tag | downcase | replace:" ","-" }}</a>
18+
{% endfor %}
19+
</li>
1420

1521
{% include revision.html %}
1622

assets/css/style.css

+14
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,20 @@ code {
305305
margin-bottom: 3em;
306306
}
307307

308+
.taglistpage{
309+
list-style: none
310+
}
311+
312+
.tagname{
313+
text-decoration: none;
314+
}
315+
316+
#hometaglink {
317+
margin: 1em 0 -2em 0;
318+
text-align: center;
319+
float: none;
320+
}
321+
308322
@media (min-width: 38em) {
309323
.post-list time {
310324
float: right;

blog/_posts/2016-01-07-revamp.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "New year, new site"
33
author: Tamas Nagy
44
layout: post
5-
tags: [blog, design]
5+
tags: [meta]
66
image: blog_old_crop.png
77
---
88

blog/_posts/2016-01-23-building-jekyll-site-debian.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
title: Building this Jekyll site on Debian 8
33
author: Tamas Nagy
44
layout: post
5+
tags: [meta, linux]
56
---
67

78
One of my goals with the redesign was to improve the portability of my

index.html

+1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
</li>
1717
{% endfor %}
1818
</ul>
19+
<a id="hometaglink" href="tags/">View posts organized by tags</a>
1920
</div> <!-- .post-list -->

0 commit comments

Comments
 (0)