mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
66 lines
2.1 KiB
HTML
66 lines
2.1 KiB
HTML
---
|
|
layout: default
|
|
permalink: licenses/
|
|
class: license-types
|
|
---
|
|
|
|
<h1>Licenses</h1>
|
|
|
|
<h2>Featured Licenses</h2>
|
|
|
|
{% for page in site.pages %}
|
|
{% if page.layout == "license" %}
|
|
{% if page.featured %}
|
|
<h3 class="license-family-name"><a href="{{ page.permalink }}">{% if page.family-title %}{{ page.family-title }}{% else %}{{ page.title }}{% endif %}</a></h3>
|
|
|
|
<p class="license-family-description">{{ page.description }} <a href="{{ page.permalink }}">View full license »</a></p>
|
|
|
|
<table class='license-rules'>
|
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
|
{% for type in types %}
|
|
<tr>
|
|
<td class="label">{{ type | capitalize }}</td>
|
|
<td>
|
|
<ul class="license-{{ type }}">
|
|
{% for req in page[type] %}
|
|
<li class="{{ req }}">{{ site.rules[type][req].label }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
<h2>Other licenses</h2>
|
|
<p>
|
|
Some communities tend to have specific licenses preferred by the
|
|
community. For example, Perl developers often choose the Artistic License.
|
|
</p>
|
|
|
|
{% for page in site.pages %}
|
|
{% if page.layout == "license" %}
|
|
{% if page.featured != true and page.hide-from-license-list != true %}
|
|
<h3 class="license-family-name"><a href="{{ page.permalink }}">{% if page.family-title %}{{ page.family-title }}{% else %}{{ page.title }}{% endif %}</a></h3>
|
|
<p class="license-family-description">{{ page.description }} <a href="{{ page.permalink }}">View full license »</a></p>
|
|
<table class='license-rules'>
|
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
|
{% for type in types %}
|
|
<tr>
|
|
<td class="label">{{ type | capitalize }}</td>
|
|
<td>
|
|
<ul class="license-{{ type }}">
|
|
{% for req in page[type] %}
|
|
<li class="{{ req }}">{{ site.rules[type][req].label }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|