hide edit link if site.edit_url isnt configured
This commit is contained in:
parent
c7c7ee310b
commit
50298b6637
@ -2,8 +2,10 @@
|
||||
<nav>
|
||||
<p>
|
||||
<span class="copy">©</span> {{ 'now' | date: '%Y' }} {{ site.copyright_owner.full_name }}.
|
||||
<a href="/legal/">MIT License</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>
|
||||
|
Loading…
Reference in New Issue
Block a user