diff --git a/config.toml b/config.toml index 6ca64e5..2c9cf1e 100644 --- a/config.toml +++ b/config.toml @@ -11,4 +11,11 @@ highlight_theme = "base16-ocean-light" logo = "https://easydocs.codeandmedia.com/logo.svg" release = "https://api.github.com/repos/getzola/zola/releases/latest" favicon = "https://www.getzola.org/favicon.ico" -easydocs_logo_always_clickable = false \ No newline at end of file +easydocs_logo_always_clickable = false + +# For use with offline sites. If set to true template links are generated with the full path indcluding index.html +# Insired by Abridge theme https://www.getzola.org/themes/abridge/ +# Notes: +# - Also requries the base URL to be set to the local folder where the site is stored eg. base_url = /home/user/mysite/public/ +# - This is not portable and only works with a specific local folder +easydocs_uglyurls = false \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 8e4bd76..f9ed677 100644 --- a/templates/index.html +++ b/templates/index.html @@ -29,9 +29,13 @@ {% endif -%}
+ {% if not config.extra.easydocs_uglyurls -%} + {% set _ugly_url = "" -%} + {% else %} + {% set _ugly_url = "index.html" -%} + {% endif -%} - {% block nav -%} - + {%- block nav -%}