Merge pull request #13 from LASSAT-YU/master
Fix issue with ugly url affecting `zola serve`
This commit is contained in:
commit
4089bb8c99
1 changed files with 2 additions and 8 deletions
|
@ -30,7 +30,7 @@
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
<main>
|
<main>
|
||||||
{# Create variable to allow appending index.html at end of links if set in config #}
|
{# Create variable to allow appending index.html at end of links if set in config #}
|
||||||
{% if not config.extra.easydocs_uglyurls -%}
|
{% if not config.extra.easydocs_uglyurls or config.mode == "Serve" -%}
|
||||||
{% set _ugly_url = "" -%}
|
{% set _ugly_url = "" -%}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% set _ugly_url = "index.html" -%}
|
{% set _ugly_url = "index.html" -%}
|
||||||
|
@ -101,13 +101,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{% for h3 in h2.children -%}
|
{% for h3 in h2.children -%}
|
||||||
<li>
|
<li>
|
||||||
<a href="
|
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{ h3.permalink | safe }}{{ _ugly_url }}">{{ h3.title }}</a>
|
|
||||||
</li>
|
</li>
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue