-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblogs.html
44 lines (35 loc) · 867 Bytes
/
blogs.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
33
34
35
36
37
38
39
40
41
42
---
layout: default
title: "Blog"
permalink: /blog/
---
<div class="wrapper">
<h1 class="page-title">
Blog
</h1>
<div class="page">
<article class="post-content">
{% for category in site.categories %}
{% capture cat %}{{ category | first }}{% endcapture %}
<h2>Category: {{ cat | capitalize }}</h2>
{% for desc in site.descriptions %}
{% if desc.cat == cat %}
<p class="desc"><em>{{ desc.desc }}</em></p>
{% endif %}
{% endfor %}
<ul class="posts-list">
{% for post in site.categories[cat] %}
<li>
<strong>
<a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
</strong>
<span class="post-date">- {{ post.date | date_to_long_string }}</span>
</li>
{% endfor %}
</ul>
{% if forloop.last == false %}<hr>{% endif %}
{% endfor %}
<br>
</article>
</div>
</div>