Skip to content

Commit 89abc78

Browse files
committed
Added tagging
1 parent 829f4ba commit 89abc78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+210
-3
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
.PHONY: generate_tags
2+
13
local:
24
jekyll serve --watch
35

4-
build:
6+
generate_tags:
7+
bash generate_tags.sh
8+
9+
build: generate_tags
510
jekyll build
611

712
upload: build

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
highlighter: rouge
22
url: http://stathers.net
33

4+
date_format: "%b %-d, %Y"
5+
46
gems: [jekyll-paginate]
57
plugins: [jekyll-paginate]
68

79
host: 127.0.0.1
810
paginate: 1
9-
exclude: [README.md, Makefile]
11+
exclude: [README.md, Makefile, generate_tags.sh]

_layouts/posts.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,17 @@ <h2>{{ page.title }}</h2>
77

88
<div id="page_date">
99
{{ page.date | date: "%-d %B %Y" }}
10+
11+
{%- if page.tags -%}
12+
{% for tag in page.tags %}
13+
<a href="{{site.baseurl}}/tag-list.html#{{tag | slugize}}">
14+
#{{ tag }}
15+
</a>
16+
{% endfor %}
17+
{%- endif -%}
1018
</div>
1119

20+
1221
<div id="post">
1322
{{ content }}
1423
</div>

_layouts/tagpage.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
layout: default
3+
---
4+
<div class="post">
5+
<h1>Tag: {{ page.tag | replace: '-', " " }}</h1>
6+
<ul>
7+
{% for post in site.tags[page.tag] %}
8+
<li><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.date | date: "%b %-d, %Y" }})<br>
9+
{{ post.description }}
10+
</li>
11+
{% endfor %}
12+
</ul>
13+
</div>
14+
<hr>
15+
{{ content }}

_posts/2014-05-09-website-relaunch.md

Lines changed: 1 addition & 0 deletions

_posts/2014-05-14-gandi-dns.md

Lines changed: 1 addition & 0 deletions

_posts/2014-06-15-video-list-website.md

Lines changed: 1 addition & 0 deletions

_posts/2014-08-03-raspberry-pi-motion-controlled-stair-lights-part-1.md

Lines changed: 1 addition & 0 deletions

_posts/2015-03-01-basic-iptables.md

Lines changed: 1 addition & 0 deletions

_posts/2015-06-25-source-policy-routing.md

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)