From 500572271428e774c60cf8f7d54441a39d978152 Mon Sep 17 00:00:00 2001 From: Che <43485962+c-git@users.noreply.github.com> Date: Sat, 13 Aug 2022 13:15:53 -0400 Subject: [PATCH] Prevent use of ugly urls when running zola serve - It doesn't work with zola serve nor is it necessary. --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index e402cbf..c59ce9c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -30,7 +30,7 @@ {% endif -%}
{# 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" -%}