Merge pull request #13 from LASSAT-YU/master

Fix issue with ugly url affecting `zola serve`
This commit is contained in:
Roman 2022-08-14 17:47:54 +02:00 committed by GitHub
commit 4089bb8c99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 8 deletions

View File

@ -30,7 +30,7 @@
{% endif -%}
<main>
{# Create variable to allow appending index.html at end of links if set in config #}
{% if not config.extra.easydocs_uglyurls -%}
{% if not config.extra.easydocs_uglyurls or config.mode == "Serve" -%}
{% set _ugly_url = "" -%}
{% else %}
{% set _ugly_url = "index.html" -%}
@ -101,13 +101,7 @@
<ul>
{% for h3 in h2.children -%}
<li>
<a href="
{{ h3.permalink | safe }}{{ _ugly_url }}">{{ h3.title }}</a>
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
</li>
{% endfor -%}
</ul>