-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathblog.html
More file actions
43 lines (40 loc) · 1.12 KB
/
blog.html
File metadata and controls
43 lines (40 loc) · 1.12 KB
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
---
layout: default
---
<div style="text-align:center;margin-bottom:15px">
<a href="{{ site.baseurl }}/tags">view by tags</a>:   
{% for tag in site.tags %}
<a href="{{ site.baseurl }}/tags/#{{ tag[0] }}">{{ tag[0] }} ({{ tag[1].size }})</a>    
{% endfor %}
</div>
<hr>
{% for post in site.posts %}
{% if post.category == "blog" %}
<a href="{{site.baseurl}}{{ post.url }}" class="post-title">
{{ post.title }}
</a>
<div class="post-details">
{{ post.date | date: "%m/%d/%Y" }}
<br>
{% for tag in post.tags %}
{% if post.tags.first == tag %}
[
{% endif %}
<a href="{{ site.baseurl }}/tags/#{{ tag }}">{{ tag }}</a>
{% if post.tags.last == tag %}
]
{% else %}
,
{% endif %}
{% endfor %}
</div>
<br>
<div class="post-snippet">
{{ post.snippet }}
</div>
<br>
{% if forloop.last == false %}
<hr>
{% endif %}
{% endif %}
{% endfor %}