summaryrefslogtreecommitdiffstats
path: root/_layouts/home.html
diff options
context:
space:
mode:
Diffstat (limited to '_layouts/home.html')
-rw-r--r--_layouts/home.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/_layouts/home.html b/_layouts/home.html
index 654be00..26d255c 100644
--- a/_layouts/home.html
+++ b/_layouts/home.html
@@ -15,6 +15,25 @@ layout: base
<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>
@@ -24,6 +43,7 @@ layout: base
</li>
{% endfor %}
</ul>
+ {% endif %}
{{ content }}
</main>
Un proyecto texto-plano.xyz