Add setting to section macro to disable article listing
This commit is contained in:
parent
d989b0953c
commit
7143d34bf4
|
@ -80,7 +80,7 @@ Separate entries with a thematic break:
|
|||
{# Need to use separate names for variables, otherwise the paginator
|
||||
collides with that of index.html. Also, full_articles and section_title
|
||||
are useful to home section #}
|
||||
{% macro section(cur_section=false, cur_paginator=false, full_articles=true, title=true, cur_pages) %}
|
||||
{% macro section(cur_section=false, cur_paginator=false, full_articles=true, title=true, cur_pages, render_list=true) %}
|
||||
<section class="h-feed">
|
||||
{% if cur_section %}{# Section presentation #}
|
||||
{% if title %}
|
||||
|
@ -92,7 +92,7 @@ Separate entries with a thematic break:
|
|||
<a class="u-url" hidden aria-hidden=true href="{{ cur_section.permalink }}">Permalink</a>
|
||||
{% endif %}{# End of section presentation #}
|
||||
{% set pages = cur_paginator.pages| default(value=cur_pages) %}
|
||||
{% if pages|length < 1 %}
|
||||
{% if pages|length < 1 and render_list %}
|
||||
<center><h2>{{ self::t(key="nothing_yet") }}</h2></center>
|
||||
{% endif %}
|
||||
{% if cur_section.content %}
|
||||
|
|
Loading…
Reference in New Issue