diff --git a/templates/index.html b/templates/index.html
index c59ce9c..700efab 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" -%}
{% set _ugly_url = "" -%}
{% else %}
{% set _ugly_url = "index.html" -%}