From b6ed79ab049f318e6f3f4f31fc7b323ce860c5ae Mon Sep 17 00:00:00 2001 From: Che <43485962+c-git@users.noreply.github.com> Date: Thu, 8 Sep 2022 11:44:53 -0400 Subject: [PATCH] Older versions of zola serve are capitalized - Found out that I didn't make a mistake but that older versions of zola do have a capital "S" in serve. So modfied to support either version. --- templates/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/index.html b/templates/index.html index 15c2af1..dff5fe4 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 or config.mode == "serve" -%} + {% if not config.extra.easydocs_uglyurls or config.mode == "serve" or config.mode == "Serve" -%} {% set _ugly_url = "" -%} {% else %} {% set _ugly_url = "index.html" -%}