-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patharchivo.html
More file actions
113 lines (107 loc) · 2.87 KB
/
archivo.html
File metadata and controls
113 lines (107 loc) · 2.87 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
---
layout: page
title : Histórico de entradas
header : Histórico de entradas
group: navigation
language: es
english_url: "archive.html"
---
{% include JB/setup %}
<!--
{% assign posts_collate = site.posts %}
{% include JB/posts_collate %}
-->
{% assign first_post = true %}
{% for post in site.pages reversed %}
{% if post.language == page.language and post.layout == 'post' %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% capture this_month %}{{ post.date | date: "%B" }}{% endcapture %}
{% if first_post == true %}
<h2>{{this_year}}</h2>
<h3>{% assign m = this_month | date: "%-m" %}
{% case m %}
{% when '1' %}Enero
{% when '2' %}Febrero
{% when '3' %}Marzo
{% when '4' %}Abril
{% when '5' %}Mayo
{% when '6' %}Junio
{% when '7' %}Julio
{% when '8' %}Agosto
{% when '9' %}Septiembre
{% when '10' %}Octubre
{% when '11' %}Noviembre
{% when '12' %}Diciembre
{% endcase %}
</h3>
<ul>
{% else %}
{% if this_year != next_year %}
</ul>
<h2>{{this_year}}</h2>
<h3>{% assign m = this_month | date: "%-m" %}
{% case m %}
{% when '1' %}Enero
{% when '2' %}Febrero
{% when '3' %}Marzo
{% when '4' %}Abril
{% when '5' %}Mayo
{% when '6' %}Junio
{% when '7' %}Julio
{% when '8' %}Agosto
{% when '9' %}Septiembre
{% when '10' %}Octubre
{% when '11' %}Noviembre
{% when '12' %}Diciembre
{% endcase %}
</h3>
<ul>
{% else %}
{% if this_month != next_month %}
</ul>
<h3>{% assign m = this_month | date: "%-m" %}
{% case m %}
{% when '1' %}Enero
{% when '2' %}Febrero
{% when '3' %}Marzo
{% when '4' %}Abril
{% when '5' %}Mayo
{% when '6' %}Junio
{% when '7' %}Julio
{% when '8' %}Agosto
{% when '9' %}Septiembre
{% when '10' %}Octubre
{% when '11' %}Noviembre
{% when '12' %}Diciembre
{% endcase %}
</h3>
<ul>
{% endif %}
{% endif %}
{% endif %}
{% assign first_post = false %}
{% assign next_year = this_year %}
{% assign next_month = this_month %}
<li><a href="{{ BASE_PATH }}{{ post.url }}">{{ post.title }}</a> » <span> escrito el
{% assign m = post.date | date: "%-m" %}
{{ post.date | date: "%-d" }}
{% case m %}
{% when '1' %}Enero
{% when '2' %}Febrero
{% when '3' %}Marzo
{% when '4' %}Abril
{% when '5' %}Mayo
{% when '6' %}Junio
{% when '7' %}Julio
{% when '8' %}Agosto
{% when '9' %}Septiembre
{% when '10' %}Octubre
{% when '11' %}Noviembre
{% when '12' %}Diciembre
{% endcase %}
{{ post.date | date: "%Y" }}
</span>
</li>
{% endif %}
{% endfor %}
</ul>