remove .md ext in menu

This commit is contained in:
Tomáš Mládek 2020-12-28 20:04:22 +01:00
parent 4116713c1f
commit 2a832b1b8b

View file

@ -24,8 +24,9 @@
<h1>{{garden_title}}</h1> <h1>{{garden_title}}</h1>
<ul> <ul>
{% for file in files %} {% for file in files %}
<li class="{% if file is containing(".md") %}page{% else %}file{% endif %}"><a <li class="{% if file is containing(".md") %}page{% else %}file{% endif %}">
href="/{{file}}">{{file}}</a></li> <a href="/{{file}}">{{file | trim_end_matches(pat=".md")}}</a>
</li>
{% endfor %} {% endfor %}
</ul> </ul>
</nav> </nav>