-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.html
60 lines (57 loc) · 2.5 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
layout: default
title: blog
---
<style type="text/css">
a, a:hover { text-decoration: none;
font-weight: normal;
}
</style>
<!-- Large -->
<div class="w3-hide-small w3-center">
{% for post in site.posts %}
<div class="w3-quarter"><div class="w3-container"></div></div>
<div class="w3-card-2 w3-margin w3-round w3-half">
{% if post.layout == 'gallery' %} <a href="{{ post.url }}"><img class="w3-round" src="{{ post.featured }}" style="width:100%"></a> {% endif %}
<div class="w3-container">
<div class="w3-padding">
<div class="w3-center">
<a href="{{ post.url }}"><h3>{{ post.title }}</h3></a>
<h5><span class="w3-opacity">{{ post.date | date: '%B %d, %Y' }}</span></h5>
</div>
</div>
{{ post.excerpt }}
</div>
</div>
{% endfor %}
</div>
<!-- Small gallery -->
<div class="w3-hide-large w3-hide-medium">
{% for post in site.posts %}
<div class="w3-card-2 w3-margin w3-round">
{% if post.layout == 'gallery' %}<a href="{{ post.url }}"><img class="w3-round" src="{{ post.featured }}" style="width:100%"></a>{% endif %}
<div class="w3-container">
{% if post.layout == 'gallery' %}
<div class="w3-padding w3-center">
<h3>{{ post.title }}</h3>
<h5><span class="w3-opacity">{{ post.date | date: '%B %d, %Y' }}</span></h5>
</div>
{{ post.excerpt }}
{% endif %}
{% if post.layout == 'post' %}
<div class="w3-padding">
<div class="w3-center">
<a href="{{ post.url }}"><h3>{{ post.title }}</h3></a>
<h5><span class="w3-opacity">{{ post.date | date: '%B %d, %Y' }}</span></h5>
</div>
{{ post.excerpt }}
</div>
{% endif %}
</div>
</div>
<div class="w3-card-2 w3-margin w3-round">
<div class="w3-container">
</div>
</div>
{% endfor %}
</div>