-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathblog.html
32 lines (28 loc) · 1.19 KB
/
blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
---
title: "Blog"
layout: default
---
<h2>Categories</h2>
{% capture site_tags %}{% for tag in site.categories %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_words = site_tags | split:',' | sort %}
<p>
{% for tag in tag_words) %}
<a href="{{ site.baseurl }}/categories.html#{{ tag | slugify }}" class="btn btn-default btn-xs">{{ tag }} <span>({{ site.categories[tag] | size }})</span></a>
{% endfor %}
</p>
<hr>
<h2>Tags</h2>
{% capture site_tags %}{% for tag in site.tags %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
{% assign tag_words = site_tags | split:',' | sort %}
<p>
{% for tag in tag_words) %}
<a href="{{ site.baseurl }}/tags.html#{{ tag | slugify }}" class="btn btn-info btn-xs">{{ tag }} <span>({{ site.tags[tag] | size }})</span></a>
{% endfor %}
</p>
<hr>
<h2>Posts</h2>
<ul class="list-unstyled">
{% for post in site.posts %}
<li itemscope><span class="entry-date"><time datetime="{{ post.date | date_to_xmlschema }}" itemprop="datePublished">{{ post.date | date: "%B %d, %Y" }}</time></span> — <a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>