Empty currentTag should be null

And when a parameter is null, it won't appear in the url like `?tag=`.
This commit is contained in:
Jeremy Benoist 2017-07-28 08:07:09 +02:00
parent 233eb91be4
commit bde23a44f8
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
2 changed files with 2 additions and 2 deletions

View file

@ -86,7 +86,7 @@
<!-- Export --> <!-- Export -->
<aside id="download-form"> <aside id="download-form">
{% set currentTag = '' %} {% set currentTag = null %}
{% if tag is defined %} {% if tag is defined %}
{% set currentTag = tag %} {% set currentTag = tag %}
{% endif %} {% endif %}

View file

@ -57,7 +57,7 @@
<!-- Export --> <!-- Export -->
<div id="export" class="side-nav right-aligned"> <div id="export" class="side-nav right-aligned">
{% set currentTag = '' %} {% set currentTag = null %}
{% if tag is defined %} {% if tag is defined %}
{% set currentTag = tag.slug %} {% set currentTag = tag.slug %}
{% endif %} {% endif %}