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>
<ul>
{% for file in files %}
<li class="{% if file is containing(".md") %}page{% else %}file{% endif %}"><a
href="/{{file}}">{{file}}</a></li>
<li class="{% if file is containing(".md") %}page{% else %}file{% endif %}">
<a href="/{{file}}">{{file | trim_end_matches(pat=".md")}}</a>
</li>
{% endfor %}
</ul>
</nav>