Merge pull request #64 from verlok/patch-1
Avoid name clash with `tag` in HTML syntax highlighting
This commit is contained in:
commit
004be50f17
@ -6,7 +6,7 @@
|
|||||||
{% for tag in post.data.tags %}
|
{% for tag in post.data.tags %}
|
||||||
{%- if collections.tagList.indexOf(tag) != -1 -%}
|
{%- if collections.tagList.indexOf(tag) != -1 -%}
|
||||||
{% set tagUrl %}/tags/{{ tag }}/{% endset %}
|
{% set tagUrl %}/tags/{{ tag }}/{% endset %}
|
||||||
<a href="{{ tagUrl | url }}" class="tag">{{ tag }}</a>
|
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</li>
|
</li>
|
||||||
|
@ -181,7 +181,7 @@ pre {
|
|||||||
|
|
||||||
|
|
||||||
/* Tags */
|
/* Tags */
|
||||||
.tag {
|
.post-tag {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: text-top;
|
vertical-align: text-top;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@ -193,8 +193,8 @@ pre {
|
|||||||
border-radius: 0.25em; /* 3px /12 */
|
border-radius: 0.25em; /* 3px /12 */
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
a[href].tag,
|
a[href].post-tag,
|
||||||
a[href].tag:visited {
|
a[href].post-tag:visited {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,5 +6,5 @@ layout: layouts/home.njk
|
|||||||
|
|
||||||
{% for tag in collections.tagList %}
|
{% for tag in collections.tagList %}
|
||||||
{% set tagUrl %}/tags/{{ tag }}/{% endset %}
|
{% set tagUrl %}/tags/{{ tag }}/{% endset %}
|
||||||
<a href="{{ tagUrl | url }}" class="tag">{{ tag }}</a>
|
<a href="{{ tagUrl | url }}" class="post-tag">{{ tag }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user