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