forked from barryclark/jekyll-now
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Archive.html
32 lines (29 loc) · 846 Bytes
/
Archive.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
---
layout: page
title: Archive
permalink: /archive/
published: true
---
<div class="posts">
{% for post in site.posts %}
<li><span>
{{ post.date | date: '%-d' }}
{% assign m = post.date | date: '%-m' %}
{% case m %}
{% when '1' %}ene
{% when '2' %}feb
{% when '3' %}mar
{% when '4' %}abr
{% when '5' %}may
{% when '6' %}jun
{% when '7' %}jul
{% when '8' %}ago
{% when '9' %}sep
{% when '10' %}oct
{% when '11' %}nov
{% when '12' %}dic
{% endcase %}
{{ post.date | date: '%Y' }}
</span> <a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</div>