blob: 26d255ca4b92f6e4248f8330977dc455c2c89b0f (
plain) (
blame)
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
|
---
layout: base
---
<header>
<h1>{{ site.title }}</h1>
<h2>
Sitio de {{ site.author }} en
<a href="https://texto-plano.xyz">texto-plano.xyz</a>
</h2>
</header>
<main>
<h1>Blog</h1>
{% if site.show_categories %}
<ul class="categories-list">
{% for category in site.categories %}
{% capture category_name %}{{ category | first }}{% endcapture %}
<li>
<h2 class="category">{{ category_name }}</h2>
<ul class="posts-list">
{% for post in site.categories[category_name] %}
<li>
<h3><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h3>
<p><em>{{ post.date | date: "%Y-%m-%d"}}</em></p>
{% if site.show-excerpt %}<p>{{ post.excerpt }}</p>{% endif %}
<li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% else %}
<ul class="posts-list">
{% for post in site.posts %}
<li>
<h2><a href="{{ post.url | relative_url }}">{{ post.title }}</a></h2>
<p><em>{{ post.date | date: "%Y-%m-%d"}}</em></p>
{% if site.show-excerpt %}<p>{{ post.excerpt }}</p>{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{{ content }}
</main>
|