2018-10-24 09:51:53 +00:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
---
|
|
|
|
|
2018-10-29 03:44:13 +00:00
|
|
|
{%- if page.title -%}
|
|
|
|
<h1>{{ page.title }}</h1>
|
|
|
|
{%- endif -%}
|
|
|
|
|
2018-10-24 09:51:53 +00:00
|
|
|
{%- if content -%}
|
|
|
|
{{ content }}
|
|
|
|
{%- endif -%}
|
|
|
|
|
|
|
|
<!--
|
|
|
|
CREDITS to codinfox for this code
|
|
|
|
https://codinfox.github.io/dev/2015/03/06/use-tags-and-categories-in-your-jekyll-based-github-pages/
|
|
|
|
-->
|
|
|
|
{%- if page.data -%}
|
2018-10-29 03:44:13 +00:00
|
|
|
{%- assign page_data = page.data -%}
|
|
|
|
{%- assign rawdata = "" -%}
|
|
|
|
{%- for post in site.posts -%}
|
|
|
|
{%- assign tdata = post[page_data] | join:'|' | append:'|' -%}
|
|
|
|
{%- assign rawdata = rawdata | append:tdata -%}
|
|
|
|
{%- endfor -%}
|
|
|
|
{%- assign rawdata = rawdata | split:'|' | sort -%}
|
2018-10-24 09:51:53 +00:00
|
|
|
|
2018-10-29 03:44:13 +00:00
|
|
|
{%- assign data = "" -%}
|
|
|
|
{%- for datum in rawdata -%}
|
|
|
|
{%- if datum != "" -%}
|
|
|
|
{%- if data == "" -%}
|
|
|
|
{% assign data = datum | split:'|' -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- unless data contains datum -%}
|
|
|
|
{%- assign data = data | join:'|' | append:'|' | append:datum | split:'|' -%}
|
|
|
|
{%- endunless -%}
|
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor -%}
|
2018-10-24 09:51:53 +00:00
|
|
|
|
|
|
|
<div class="keyword__grid">
|
2018-10-29 03:44:13 +00:00
|
|
|
{%- for datum in data -%}<a class="keywords" href="#{{ datum | slugify }}"> {{ datum }} </a>{%- endfor -%}
|
2018-10-24 09:51:53 +00:00
|
|
|
</div>
|
|
|
|
|
2018-10-29 03:44:13 +00:00
|
|
|
{%- for datum in data -%}
|
2018-10-24 09:51:53 +00:00
|
|
|
<div class="datum__post_list">
|
|
|
|
<h2 id="{{ datum | slugify }}">{{ datum }}</h2>
|
|
|
|
<ul>
|
2018-10-29 03:44:13 +00:00
|
|
|
{%- for post in site.posts -%}
|
|
|
|
{%- if post[page_data] contains datum -%}
|
2018-10-24 09:51:53 +00:00
|
|
|
<li>
|
|
|
|
<h3>
|
|
|
|
<a href="{{site.url}}{{site.baseurl}}{{ post.url }}">
|
|
|
|
{{ post.title }}
|
|
|
|
</a>
|
|
|
|
<small>{{ post.date | date_to_string }}</small>
|
|
|
|
</h3>
|
|
|
|
</li>
|
2018-10-29 03:44:13 +00:00
|
|
|
{%- endif -%}
|
|
|
|
{%- endfor -%}
|
2018-10-24 09:51:53 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2018-10-29 03:44:13 +00:00
|
|
|
{%- endfor -%}
|
2018-10-24 09:51:53 +00:00
|
|
|
{%- endif -%}
|