Prevent use of ugly urls when running zola serve

- It doesn't work with zola serve nor is it necessary.
This commit is contained in:
Che 2022-08-13 13:15:53 -04:00
parent 5df8051283
commit 5005722714
1 changed files with 1 additions and 1 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" -%}