1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 12:50:24 +01:00

Only include link to source if one has been provided

Not all licenses have provided a `source` property, so this check just
prevent an empty `href` in such cases.
This commit is contained in:
Andreas Renberg (IQAndreas) 2013-10-23 07:37:32 +02:00
parent 686367b1e0
commit 800d8bbdb8

View File

@ -12,9 +12,11 @@
</p>
{% endif %}
</div>
{% if page.source %}
<div class="source">
<a href="{{ page.source}}">Source</a>
<a href="{{ page.source }}">Source</a>
</div>
{% endif %}
<div class="license-rules license-rules-sidebar">