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:
parent
686367b1e0
commit
800d8bbdb8
@ -12,9 +12,11 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if page.source %}
|
||||
<div class="source">
|
||||
<a href="{{ page.source }}">Source</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="license-rules license-rules-sidebar">
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user