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.
This commit is contained in:
Che 2022-09-08 11:44:53 -04:00
parent 76ff110bad
commit b6ed79ab04

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 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" -%}