You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by je...@apache.org on 2019/01/31 20:24:14 UTC

[sling-site] branch master updated: minor structural change for tags

This is an automated email from the ASF dual-hosted git repository.

jeb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 63bed31  minor structural change for tags
63bed31 is described below

commit 63bed31f2fd25a50fe0c8b8af86ac81b4f303f8b
Author: JE Bailey <je...@apache.org>
AuthorDate: Thu Jan 31 15:22:45 2019 -0500

    minor structural change for tags
---
 src/main/jbake/assets/res/css/site.css  | 2 +-
 src/main/jbake/templates/tags-brick.tpl | 7 ++++---
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/main/jbake/assets/res/css/site.css b/src/main/jbake/assets/res/css/site.css
index 94f34f2..f64786d 100644
--- a/src/main/jbake/assets/res/css/site.css
+++ b/src/main/jbake/assets/res/css/site.css
@@ -337,7 +337,7 @@ pre {
     float:right;
 }
 
-.tags a {
+.tags .tag {
     background-color: #EEE;
 	padding: 0.2em;
     margin-left: 0.2em;
diff --git a/src/main/jbake/templates/tags-brick.tpl b/src/main/jbake/templates/tags-brick.tpl
index ef2b58d..2eaf880 100644
--- a/src/main/jbake/templates/tags-brick.tpl
+++ b/src/main/jbake/templates/tags-brick.tpl
@@ -2,10 +2,11 @@ div(class:"tags") {
     if(content.tags) {
         content.tags.each { 
             tag ->
-            a(href:"${config.site_contextPath}tags/${tag.replace(' ', '-')}.html", class:"label"){
-                yield tag
+            span(class:"tag"){
+                a(href:"${config.site_contextPath}tags/${tag.replace(' ', '-')}.html"){
+                    yield tag
+                }
             }
-            yield " "
         }
     }
 }
\ No newline at end of file