From 0b922ed87d4b97ce415352d1623a28e3078eaff1 Mon Sep 17 00:00:00 2001 From: Andrea Verlicchi Date: Fri, 5 Jun 2020 22:45:17 +0200 Subject: [PATCH 1/3] Avoid name clash with `tag` in HTML syntax highlighting --- tags-list.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tags-list.njk b/tags-list.njk index 1e2fea4..028a530 100644 --- a/tags-list.njk +++ b/tags-list.njk @@ -6,5 +6,5 @@ layout: layouts/home.njk {% for tag in collections.tagList %} {% set tagUrl %}/tags/{{ tag }}/{% endset %} - {{ tag }} + {{ tag }} {% endfor %} From 27b93ce80cb160e567ac04afcdca28724a5ba7ae Mon Sep 17 00:00:00 2001 From: Andrea Verlicchi Date: Fri, 5 Jun 2020 22:48:15 +0200 Subject: [PATCH 2/3] Avoid name clash with `tag` in HTML syntax highlighting --- _includes/postslist.njk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/postslist.njk b/_includes/postslist.njk index d081844..d4896ac 100644 --- a/_includes/postslist.njk +++ b/_includes/postslist.njk @@ -6,7 +6,7 @@ {% for tag in post.data.tags %} {%- if collections.tagList.indexOf(tag) != -1 -%} {% set tagUrl %}/tags/{{ tag }}/{% endset %} - {{ tag }} + {%- endif -%} {% endfor %} From 764c3a0e9981f11c9e5693234641e87911275b4d Mon Sep 17 00:00:00 2001 From: Andrea Verlicchi Date: Fri, 5 Jun 2020 22:49:02 +0200 Subject: [PATCH 3/3] Avoid name clash with `tag` in HTML syntax highlighting --- css/index.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/css/index.css b/css/index.css index 639b8f9..4ed51b9 100644 --- a/css/index.css +++ b/css/index.css @@ -181,7 +181,7 @@ pre { /* Tags */ -.tag { +.post-tag { display: inline-block; vertical-align: text-top; text-transform: uppercase; @@ -193,8 +193,8 @@ pre { border-radius: 0.25em; /* 3px /12 */ text-decoration: none; } -a[href].tag, -a[href].tag:visited { +a[href].post-tag, +a[href].post-tag:visited { color: #fff; }