Skip to content

Commit 6b07b0a

Browse files
committed
Add tags into post layout
1 parent 4127f7a commit 6b07b0a

6 files changed

+15
-20
lines changed

_layouts/post.html

+6
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ <h1>{{ page.title }}</h1>
1111
<h2 class="post-subheading">{{ page.subtitle }}</h2>
1212
{% endif %}
1313
<span class="post-meta">Posted on {{ page.date | date: "%B %-d, %Y" }}</span>
14+
<br>
15+
<span class="post-meta">Tags:
16+
{% for tag in page.tags %}
17+
<a href="{{ site.baseurl }}/tags/{{ tag }}">{{ tag }}</a>
18+
{% endfor %}
19+
</span>
1420
</div>
1521
</div>
1622
</div>

_layouts/tagpage.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
layout: default
33
---
44

5-
<h1>{{ page.tag }}</h1>
5+
<h1>Posts with `{{ page.tag }}` tag:</h1>
66

77
<ul>
88
{% for post in site.tags[page.tag] %}

_posts/2015-10-25-init-evorepo-project.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ subtitle: An introduction to our project
55
description:
66
author: Alexandru Cîtea
77
image:
8-
tags:
9-
- project
10-
- infoiasi
11-
- wade
12-
- web
13-
- evorepo
8+
tags: [project, infoiasi, wade, web, evorepo]
149
---
1510

1611

_posts/2015-11-14-deploy-openstack-kilo-with-devstack.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ subtitle: Step by step tutorial for deploying OpenStack
55
description:
66
author: Alexandru Coman
77
image:
8-
tags:
9-
- project
10-
- infoiasi
11-
- wade
12-
- web
13-
- evorepo
8+
tags: [project, infoiasi, wade, web, evorepo]
149
---
1510

1611
### Table of Contents

_posts/2015-11-19-create-a-cluster-on-windows-azure.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ subtitle: Step by step tutorial for creating an cluster on Windows Azure using e
55
description:
66
author: Alexandru Coman
77
image:
8-
tags:
9-
- project
10-
- infoiasi
11-
- wade
12-
- web
13-
- evorepo
8+
tags: [project, infoiasi, wade, web, evorepo]
149
---
1510

1611
**Table of content**:

index.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ <h3 class="post-subtitle">{{ post.subtitle }}</h3>
1616

1717
<p class="post-meta">
1818
{% if post.author %}Author: {{ post.author }} {% endif %}
19-
Posted on {{ post.date | date: "%B %-d, %Y" }}
19+
Posted on {{ post.date | date: "%B %-d, %Y" }}<br>
20+
Tags:
21+
{% for tag in post.tags %}
22+
<a href="{{ site.baseurl }}/tags/{{ tag }}">{{ tag }}</a>
23+
{% endfor %}
2024
</p>
2125

2226
{% if post.image or post.description %}

0 commit comments

Comments
 (0)