forked from ag_kommunikation/webseite
List last 3 blog posts in menu.
This commit is contained in:
parent
4320b4ea0d
commit
b95a4fd78d
@ -57,6 +57,18 @@
|
||||
{{ sub_title }}
|
||||
</a>
|
||||
</li>
|
||||
{% if sub_title == 'Blog' %}
|
||||
{% set children = site.get(href).children %}
|
||||
{% for child in children %}
|
||||
{% if loop.index <= 3 %}
|
||||
<li class="primary_nav__sub_navitem {%- if this._path == href %} -active{%- endif %}">
|
||||
<a class="primary_nav__navlink {% if this._path == href %}-active{% endif %}" href="{{ href|url }}">
|
||||
{{ child.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
@ -57,6 +57,18 @@
|
||||
{{ sub_title }}
|
||||
</a>
|
||||
</li>
|
||||
{% if sub_title == 'Blog' %}
|
||||
{% set children = site.get(href).children %}
|
||||
{% for child in children %}
|
||||
{% if loop.index <= 3 %}
|
||||
<li class="primary_nav__sub_navitem {%- if this._path == href %} -active{%- endif %}">
|
||||
<a class="primary_nav__navlink {% if this._path == href %}-active{% endif %}" href="{{ href|url }}">
|
||||
{{ child.title }}
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user