-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
46 lines (41 loc) · 1.56 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
title: Pascal Sager - Blog
layout: default
---
<div id="blog" class="background-alt">
<div class="container blog-container">
<div class="row">
{% assign sorted_posts = site.posts | sort: "modified" | reverse %}
{% for post in sorted_posts %}
<div id="blog-container" class="shadow-large">
<div id="blog-head">
<h2 id="heading"><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
</div>
<div id="date">
{% assign date_modified = post.modified | date: '%B %d, %Y' %}
{% assign date_created = post.date | date: '%B %d, %Y' %}
{% if date_modified != date_created %}
Updated {{ date_modified }} (created: {{ date_created }})
{% else %}
Created {{ date_created }}
{% endif %}
</div>
<div id="entry">
{{ post.summary }}
</div>
<div id="read-more">
<a href="{{ site.baseurl }}{{ post.url }}">Read More</a>
</div>
<div id="categories">
<ul>
{% for cat in post.categories %}
<li>{{ cat }}</li>
{% endfor %}
</ul>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% include footer.html %}