From 8f51f3343b18ffe7f44351a5b7db5dfb6399fdc8 Mon Sep 17 00:00:00 2001 From: Bkeinn <60117033+Bkeinn@users.noreply.github.com> Date: Sat, 27 Aug 2022 13:40:09 +0200 Subject: [PATCH] Added the option to only show the description Since the Hugo Theme only shows the description, what I prefer, I added this option here as well. --- templates/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 5359356..b71613f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -65,7 +65,11 @@ {%- for page in show_pages %}
{{ post_macros::header(page=page) }} - {{ post_macros::content(page=page, summary=true) }} + {%- if config.extra.show_only_description %} + {{ page.description}} + {% else %} + {{ post_macros::content(page=page, summary=true) }} + {% endif -%}
{% endfor -%}