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.
This commit is contained in:
Bkeinn 2022-08-27 13:40:09 +02:00 committed by GitHub
parent 0cc423545a
commit 8f51f3343b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,11 @@
{%- for page in show_pages %} {%- for page in show_pages %}
<div class="post on-list"> <div class="post on-list">
{{ post_macros::header(page=page) }} {{ 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 -%}
</div> </div>
{% endfor -%} {% endfor -%}
<div class="pagination"> <div class="pagination">