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/07/19 21:59:13 UTC
[sling-site] branch SLING-8588 updated: SLING-8588 fixed tags view
This is an automated email from the ASF dual-hosted git repository.
jeb pushed a commit to branch SLING-8588
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/SLING-8588 by this push:
new 30d94b9 SLING-8588 fixed tags view
30d94b9 is described below
commit 30d94b9b7e2325b8351697c661787da53df64584
Author: Jason E Bailey <je...@apache.org>
AuthorDate: Fri Jul 19 17:59:06 2019 -0400
SLING-8588 fixed tags view
---
src/main/jbake/templates/tags.tpl | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/src/main/jbake/templates/tags.tpl b/src/main/jbake/templates/tags.tpl
index a6c764c..cff4e9a 100644
--- a/src/main/jbake/templates/tags.tpl
+++ b/src/main/jbake/templates/tags.tpl
@@ -12,16 +12,22 @@ layout 'layout/main.tpl', true,
}
}
}
- div(class:"tags"){
- h2("All tags")
+
+ h2("All tags")
+ newLine()
+ div(class:"field is-grouped is-grouped-multiline"){
alltags.sort().each { tag ->
tag = tag.trim()
def count = all_content.findAll { p -> p.tags && p.tags.contains(tag) }.size()
- span(class:"tag") {
- a(href:"${config.site_contextPath}tags/${tag.replace(' ', '-')}.html"){
- yield "$tag"
- span(class:"badge","${count}")
+ div(class:"control"){
+ div(class:"tags has-addons") {
+ span(class:"tag") {
+ a(href:"${config.site_contextPath}tags/${tag.replace(' ', '-')}.html"){
+ yield "$tag"
+ }
}
+ span(class:"tag is-link","${count}")
+ }
}
newLine()
}