hide edit link if site.edit_url isnt configured

This commit is contained in:
rzen 2019-07-22 23:17:50 -04:00
parent c7c7ee310b
commit 50298b6637

View File

@ -2,8 +2,10 @@
<nav>
<p>
<span class="copy">&copy;</span> {{ 'now' | date: '%Y' }} {{ site.copyright_owner.full_name }}.
<a href="/legal/">MIT License</a>.
<a class="edit" href="{{ site.edit_url | append: page.path }}">Edit</a>.
<a href="{{ site.license.url | default: '/legal/' }}">{{ site.license.name }}</a>.
{% if site.edit_url != '' or site.edit_url != nil %}
<a class="edit" href="{{ site.edit_url | append: page.path }}">Edit</a>.
{% endif %}
</p>
</nav>
<nav>