Add variable DISABLE_URL_HASH for pretty URL in browser (#88)
This commit is contained in:
parent
bea8a3724d
commit
a76e802b8f
2 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@
|
|||
{% set PAGES_SORT_ATTRIBUTE = 'title' %}
|
||||
{%- endif %}
|
||||
{% for page in pages|sort(attribute=PAGES_SORT_ATTRIBUTE) %}
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}#{{ page.slug }}">{{ page.title }}</a></li>
|
||||
<li><a href="{{ SITEURL }}/{{ page.url }}{% if not DISABLE_URL_HASH %}#{{ page.slug }}{% endif %}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
|
||||
{% for name, link in LINKS %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue