mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 04:40:09 +01:00
caa47fb00c
* Move licenses to license template * Move home / about to page template * Move annotations to config file, included via annotations.js * Move license metadata to YML Front matter * Automate the presentation of license metadata * Move sidebar to include * Add _site to gitignore
73 lines
1.9 KiB
HTML
73 lines
1.9 KiB
HTML
---
|
|
layout: default
|
|
permalink: licenses/
|
|
class: license-types
|
|
---
|
|
|
|
<h1>Featured</h1>
|
|
|
|
{% for page in site.pages %}
|
|
{% if page.layout == "license" %}
|
|
{% if page.featured %}
|
|
<table class='license-rules'>
|
|
<tr>
|
|
<th class='name'>
|
|
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
|
</th>
|
|
<th class='summary'>
|
|
{{ page.description }} <a href="{{ page.permalink }}">View full license »</a>
|
|
</th>
|
|
</tr>
|
|
{% 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 %}
|
|
<table class='license-rules'>
|
|
<tr>
|
|
<th class='name'>
|
|
<a href="{{ page.permalink }}">{{ page.title }}</a>
|
|
</th>
|
|
<th class='summary'>
|
|
{{ page.description }} <a href="{{ page.permalink }}">View full license »</a>
|
|
</th>
|
|
</tr>
|
|
{% 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 %} |