added trailing slash to Home link - to properly handle root urls

This commit is contained in:
Monica Powell 2017-05-27 07:58:15 -04:00
parent e10fcb6477
commit 86277c8bcf

View file

@ -59,11 +59,11 @@
<nav id="navigation"> <nav id="navigation">
{% if SITE_LOGO %} {% if SITE_LOGO %}
<span class="blog-logo"> <span class="blog-logo">
<a href="{{ SITEURL }}"><img src="{{SITE_LOGO}}" alt="Blog Logo" /></a> <a href="{{ SITEURL }}/"><img src="{{SITE_LOGO}}" alt="Blog Logo" /></a>
</span> </span>
{% else %} {% else %}
<span id="home-button" class="nav-button"> <span id="home-button" class="nav-button">
<a class="home-button" href="{{ SITEURL }}" title="Home"><i class="ic ic-arrow-left"></i> Home</a> <a class="home-button" href="{{ SITEURL }}/" title="Home"><i class="ic ic-arrow-left"></i> Home</a>
</span> </span>
{% endif %} {% endif %}
<span id="menu-button" class="nav-button"> <span id="menu-button" class="nav-button">
@ -156,7 +156,7 @@
</div> </div>
<div class="clear"></div> <div class="clear"></div>
</aside> </aside>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
</section> </section>
@ -172,14 +172,14 @@
{% endif %} {% endif %}
var disqus_url = '{{ SITEURL }}/{{ article.url }}'; var disqus_url = '{{ SITEURL }}/{{ article.url }}';
</script> </script>
<noscript>Please enable JavaScript to view the comments.</noscript> <noscript>Please enable JavaScript to view the comments.</noscript>
<section class="post-comments"> <section class="post-comments">
{% if article.disqus_identifier %} {% if article.disqus_identifier %}
<a id="show-disqus" class="post-comments-activate" data-disqus-identifier="{{ article.disqus_identifier }}" >Show Comments</a> <a id="show-disqus" class="post-comments-activate" data-disqus-identifier="{{ article.disqus_identifier }}" >Show Comments</a>
{% else %} {% else %}
<a id="show-disqus" class="post-comments-activate" data-disqus-identifier="/{{ article.url }}" >Show Comments</a> <a id="show-disqus" class="post-comments-activate" data-disqus-identifier="/{{ article.url }}" >Show Comments</a>
{% endif %} {% endif %}
<div id="disqus_thread"></div> <div id="disqus_thread"></div>
</section> </section>
{% endif %} {% endif %}