mirror of
https://github.com/github/choosealicense.com
synced 2024-12-22 12:50:24 +01:00
use slugify per @benbalter suggestion
This commit is contained in:
parent
056bdf0580
commit
1b39c98fe4
@ -24,7 +24,7 @@
|
|||||||
<ul class="nav-pills js-nav-pills">
|
<ul class="nav-pills js-nav-pills">
|
||||||
{% assign variations = site.licenses | where:"hidden",false | where:"family",license.family %}
|
{% assign variations = site.licenses | where:"hidden",false | where:"family",license.family %}
|
||||||
{% for variation in variations %}
|
{% for variation in variations %}
|
||||||
<li{% if license.id == variation.id %} class="active"{% endif %}><a href="#{{ variation.id | remove: '.' | remove: '/licenses/' }}" data-selected-tab="variation-{{ variation.id | remove: '.' | remove: '/licenses/' }}">
|
<li{% if license.id == variation.id %} class="active"{% endif %}><a href="#{{ variation.id | remove: '/licenses/' | slugify }}" data-selected-tab="variation-{{ variation.id | remove: '/licenses/' | slugify }}">
|
||||||
{% if variation.nickname != nil %}
|
{% if variation.nickname != nil %}
|
||||||
{{ variation.nickname }}
|
{{ variation.nickname }}
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -43,7 +43,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for variation in variations %}
|
{% for variation in variations %}
|
||||||
<div {% if variation.id %}id="{{ variation.id | remove: '.' | remove: '/licenses/' }}" {% endif %}class="variation-tab {% if variation.id %}variation-{{ variation.id | remove: '.' | remove: '/licenses/' }}{% endif %} js-variation-tab{% if license.id == variation.id %} active{% endif %}">
|
<div {% if variation.id %}id="{{ variation.id | remove: '/licenses/' | slugify }}" {% endif %}class="variation-tab {% if variation.id %}variation-{{ variation.id | remove: '/licenses/' | slugify }}{% endif %} js-variation-tab{% if license.id == variation.id %} active{% endif %}">
|
||||||
<table class="license-rules">
|
<table class="license-rules">
|
||||||
<tr>
|
<tr>
|
||||||
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
{% assign types = "required|permitted|forbidden" | split: "|" %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user