1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-30 16:41:45 +01:00

Merge pull request #1258 from mschoettle/appendix-legend-headers

Add rule type headers to legend
This commit is contained in:
Mike Linksvayer 2024-11-25 13:35:43 -08:00 committed by GitHub
commit 62ec70612d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,9 +72,10 @@ If you're here to choose a license, **[start from the home page](/)** to see a f
<p>Most open source licenses also have <span class="license-limitations"><span class="license-sprite"></span></span> <b>limitations</b> that usually disclaim warranty and liability, and sometimes expressly exclude patents or trademarks from licenses' grants.</p>
<dl>
{% assign seen_tags = '' %}
{% for type in types %}
### {% if type == "permissions" %}Permissions{% elsif type == "conditions" %}Conditions{% else %}Limitations{% endif %}
<dl>
{% assign rules = site.data.rules[type] | sort: "label" %}
{% for rule_obj in rules %}
{% assign req = rule_obj.tag %}
@ -92,5 +93,5 @@ If you're here to choose a license, **[start from the home page](/)** to see a f
{% endfor %}
{% endfor %}
{% endfor %}
</dl>
{% endfor %}
</dl>