Skip to content

Commit

Permalink
Fix licenses not showing properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Tschrock committed Jan 15, 2024
1 parent a0b9aaf commit 1875342
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _data/licenses.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
- id: CC-BY-NC-4.0
title: Creative Commons Attribution-NonCommercial 4.0 International
url: https://creativecommons.org/licenses/by-nc/4.0/
- id: CC-BY-4.0
title: Creative Commons Attribution 4.0 International
url: https://creativecommons.org/licenses/by/4.0/
- id: Apache-2.0
title: Apache License 2.0
url: https://www.apache.org/licenses/LICENSE-2.0
2 changes: 2 additions & 0 deletions _layouts/emoji-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ <h1 class="card-header-title">Details about {{ page.title }}</h1>
<strong>License:</strong>
{% if license != nil %}
<a href="{{ license.url }}" title="{{ license.title }}">{{ license.id }}</a>
{% else if page.license != nil %}
{{ page.license }}
{% else %}
Unknown
{% endif %}
Expand Down

0 comments on commit 1875342

Please sign in to comment.