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 -%}
|
||||
<main>
|
||||
{# 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 = "" -%}
|
||||
{% else %}
|
||||
{% set _ugly_url = "index.html" -%}
|
||||
|
@ -101,13 +101,7 @@
|
|||
<ul>
|
||||
{% for h3 in h2.children -%}
|
||||
<li>
|
||||
<a href="
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{{ h3.permalink | safe }}{{ _ugly_url }}">{{ h3.title }}</a>
|
||||
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
|
||||
</li>
|
||||
{% endfor -%}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue