-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblog.html
41 lines (39 loc) · 840 Bytes
/
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
---
layout: default
lang: en
categories:
- ocaml
- programming
- programming-languages
- shell
- writing
- computer-science
- open-source
- markdown
- linux
- conference
redirect_from:
- /assets/*
---
{% assign a_month_ago = 'now' | date: "%s" | minus : 2592000 %}
{% for category in page.categories %}
{% if site.categories[category] %}
<section>
<h2>{{ category | upcase }}</h2>
<ul class='no-style'>
{% for post in site.categories[category] %}
{% if post.categories contains "english" or post.lang == "en" %}
<li>
{{ post.date | date: "%Y-%m-%d" }}
{% assign post_time = post.date | date: "%s" | minus : 0 %}
<a href='{{ post.url }}'>{{ post.title }}</a>
{% if post_time > a_month_ago %}
<strong> (new blog) </strong>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
</section>
{% endif %}
{% endfor %}