Hi all. I'd like to add the text "no posts found" in my multiple blogs when no posts are present on a certain month.
I use the standard "Archives" plugin by TeamGrav.
I think i have to write a {% if %} condition in the following code:
<ul class="archives">
{% for month,items in archives_data %}
<li>
<a href="{{ page.url }}/{{ config.plugins.archives.taxonomy_names.month }}{{ config.system.param_sep }}{{ month|date('M_Y')|lower|e('url') }}">
{% if archives_show_count %}
<span class="label">{{ items|length }}</span>
{% endif %}
<span class="archive_date">{{ month|date(config.plugins.archives.date_display_format) }} </span>
</a>
</li>
{% endfor %}
</ul>
My problem is I'm no coder, so I need same help in writing the correct {% if %} condition for missing posts and pasting it in the above code, something like
{% if items = 0 %}
<p>No posts found for this month.</p>
{% endif %}
Thanks in advance!