1
0
mirror of https://github.com/github/choosealicense.com synced 2024-12-22 04:40:09 +01:00

use slugify per @benbalter suggestion

This commit is contained in:
Mike Linksvayer 2016-02-13 17:57:44 -08:00
parent 056bdf0580
commit 1b39c98fe4

View File

@ -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: "|" %}