Merge pull request #1 from VagabondAzulien/taglist

Implement Tagging Functionality
This commit is contained in:
Bill Niblock 2018-01-12 22:54:17 -05:00 committed by GitHub
commit df1c46fa37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 142 additions and 12 deletions

View file

@ -1,7 +1,19 @@
collections:
topics:
output: true
defaults: defaults:
- -
scope: scope:
path: ''
type: "posts" type: "posts"
values: values:
layout: "corrupt_post" layout: "corrupt_post"
author: "Bill Niblock" author: "Bill Niblock"
-
scope:
path: ''
type: "topics"
values:
layout: "corrupt_collection"
permalink: "/topics/:name"

16
_includes/topics.html Normal file
View file

@ -0,0 +1,16 @@
{% for post in site.posts %}
{% if post.topics contains page.title %}
<div id="posts">
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<div class="" id="details">
<div class="" id="date">{{ post.pub }}</div>
<div class="" id="tags">
{% for topic in post.topics %}
<a href="/topics/{{topic}}.html">{{topic}}</a>
{% endfor %}
</div>
</div>
<div id="desc">{{ post.short_desc }}</div>
</div>
{% endif %}
{% endfor %}

View file

@ -0,0 +1,73 @@
<!DOCTYPE html>
<html>
<head>
<title>The Internet Vagabond :: {{ page.tabtitle }}</title>
<meta name="description"
content="Rants of a wandering techy, in search of truth, knowledge, and a decent ping." />
<meta name="author" content="Bill 'Vagabond Azulien' Nibz" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="{{ site.url }}/src/corrupt.css" />
<link rel="icon" type="image/x-icon" href="{{ site.url }}/src/images/favicon.ico" />
</head>
<body>
<div class="cor_page">
<div class="cor_content">
<div class="cor_head">
<div class="title">
<div>The</div><div>Internet</div><div>Vagabond</div>
</div>
</div>
<div id="content">
<h1>Topic: {{ page.title }}</h1>
{{ content }}
</div>
</div>
<div class="cor_menu">
<div class="" id="tags">
</div>
<div class="cor_footer">
<div class="" id="about">
<h2>The Site</h2>
<p>This site is a small slice of internet real-estate that I use for
occasional writing. Nothing I say is visionary or profound. I
will tend to focus on technology, gaming, and philosophy.</p>
<h2>The Vagabond</h2>
<p>My name is Bill Niblock. I'm a computer scientist by education, a
technologist by trade, a gamer by hobby, and a philosopher by
mistake.</p>
</div>
<div id="social">
<div class="">
<a href="https://github.com/VagabondAzulien">
<img src="{{ site.url }}/src/images/github_light.png"
width="32" height="32" alt="GitHub"
title="My GitHub Repos" />
</a>
</div>
<div class="">
<a href="https://twitter.com/Azulien">
<img src="{{ site.url }}/src/images/twitter_light.png"
width="32" height="32" alt="Twitter"
title="My Twitter Feed" />
</a>
</div>
<div class="">
<a href="https://www.twitch.tv/vagabondazulien/profile">
<img src="{{ site.url }}/src/images/twitch_light.png"
width="32" height="32" alt="Twitch"
title="My Twitch Profile" />
</a>
</div>
<div class="">
<a href="https://steamcommunity.com/id/azulien">
<img src="{{ site.url }}/src/images/steam_light.png"
width="32" height="32" alt="Steam"
title="My Steam Profile" />
</a>
</div>
</div>
</div>
</div>
</div>
</body>
</html>

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: Ireland Log tabtitle: Ireland Log
title: A Log of My Travels in Ireland title: A Log of My Travels in Ireland
tags: travel topics: other
pub: "2015-01-01" pub: "2015-01-01"
short_desc: "Once upon a time, I traveled to Ireland. It was quite the short_desc: "Once upon a time, I traveled to Ireland. It was quite the
experience. Me, my 3 friends Suf, Chris and Cary, Scion, shenanigans, experience. Me, my 3 friends Suf, Chris and Cary, Scion, shenanigans,

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: Bye Bye Windows tabtitle: Bye Bye Windows
title: Farewell to Windows Tour 2015 title: Farewell to Windows Tour 2015
tags: gaming topics: gaming
pub: "2015-04-28" pub: "2015-04-28"
short_desc: "It has come time to bid Windows farewell. Once upon a time Windows was short_desc: "It has come time to bid Windows farewell. Once upon a time Windows was
the only digital world I knew. It began when I was young, during the the only digital world I knew. It began when I was young, during the

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: Philosophy of Bill tabtitle: Philosophy of Bill
title: The Philosophy of Bill, Abbreviated title: The Philosophy of Bill, Abbreviated
tags: philosophy topics: philosophy
pub: "2015-05-04" pub: "2015-05-04"
short_desc: "I consider myself a very philosophical person. That doesn't short_desc: "I consider myself a very philosophical person. That doesn't
mean I'm any good at philosophy, I just tend to think a lot about ethics, mean I'm any good at philosophy, I just tend to think a lot about ethics,

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: "An Examination of TLS, Part 1" tabtitle: "An Examination of TLS, Part 1"
title: "An Examination of TLS, Part 1" title: "An Examination of TLS, Part 1"
tags: tech topics: technology
pub: "2015-05-06" pub: "2015-05-06"
short_desc: "TLS, more often referred to as SSL, is a means by which a short_desc: "TLS, more often referred to as SSL, is a means by which a
secure connection is established over a computer network. In this secure connection is established over a computer network. In this

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: A Good Friend's Father tabtitle: A Good Friend's Father
title: A Good Friend's Father title: A Good Friend's Father
tags: philosophy, personal topics: [philosophy, other]
pub: "2015-07-09" pub: "2015-07-09"
short_desc: "A good friend's father died. What can I learn from this?" short_desc: "A good friend's father died. What can I learn from this?"
--- ---

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: "An Examination of TLS, Part 2" tabtitle: "An Examination of TLS, Part 2"
title: "An Examination of TLS, Part 2" title: "An Examination of TLS, Part 2"
tags: tech topics: technology
pub: "2015-11-10" pub: "2015-11-10"
short_desc: "TLS, more often referred to as SSL, is the means by which a secure short_desc: "TLS, more often referred to as SSL, is the means by which a secure
connection is established over a computer network. Part 1 examines how to connection is established over a computer network. Part 1 examines how to

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: Developing Stoic Understanding tabtitle: Developing Stoic Understanding
title: Developing Stoic Understanding title: Developing Stoic Understanding
tags: philosophy topics: philosophy
pub: "2016-01-30" pub: "2016-01-30"
short_desc: "Sherman J. Clark wrote a fantastic article on the Stoicism Today blog in short_desc: "Sherman J. Clark wrote a fantastic article on the Stoicism Today blog in
December which really spoke to me. It approached some of the questions and December which really spoke to me. It approached some of the questions and

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: "Random Thoughts" tabtitle: "Random Thoughts"
title: "Random Thoughts 1" title: "Random Thoughts 1"
tags: technology, gaming topics: [technology, gaming]
pub: "2016-03-11" pub: "2016-03-11"
short_desc: "I'm on vacation this week, which is pretty grand. Thus far short_desc: "I'm on vacation this week, which is pretty grand. Thus far
I've accomplished one of the 4 rather meager goals I set for myself, played I've accomplished one of the 4 rather meager goals I set for myself, played

View file

@ -1,7 +1,7 @@
--- ---
tabtitle: "Azulien Blackblade" tabtitle: "Azulien Blackblade"
title: "Character Backstory: Azulien Blackblade" title: "Character Backstory: Azulien Blackblade"
tags: [gaming, dnd, writing] topics: [gaming, writing]
pub: "2018-01-12" pub: "2018-01-12"
short_desc: "Here's the character backstory for one of my older characters short_desc: "Here's the character backstory for one of my older characters
from a game long since forgotten: Azulien Blackblade. Enjoy!" from a game long since forgotten: Azulien Blackblade. Enjoy!"

5
_topics/gaming.html Normal file
View file

@ -0,0 +1,5 @@
---
title: gaming
---
{% include topics.html %}

5
_topics/other.html Normal file
View file

@ -0,0 +1,5 @@
---
title: other
---
{% include topics.html %}

5
_topics/philosophy.html Normal file
View file

@ -0,0 +1,5 @@
---
title: philosophy
---
{% include topics.html %}

5
_topics/technology.html Normal file
View file

@ -0,0 +1,5 @@
---
title: technology
---
{% include topics.html %}

5
_topics/writing.html Normal file
View file

@ -0,0 +1,5 @@
---
title: writing
---
{% include topics.html %}

View file

@ -3,12 +3,16 @@
tabtitle: Home tabtitle: Home
--- ---
{% for post in site.posts %} {% for post in site.posts limit:5 %}
<div id="posts"> <div id="posts">
<h1><a href="{{ post.url }}">{{ post.title }}</a></h1> <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
<div class="" id="details"> <div class="" id="details">
<div class="" id="date">Published: {{ post.pub }}</div> <div class="" id="date">{{ post.pub }}</div>
<div class="" id="tags">Tagged: {{ post.tags }}</div> <div class="" id="tags">
{% for topic in post.topics %}
<a href="/topics/{{topic}}.html">{{topic}}</a>
{% endfor %}
</div>
</div> </div>
<div id="desc">{{ post.short_desc }}</div> <div id="desc">{{ post.short_desc }}</div>
</div> </div>