You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2017/10/05 05:12:32 UTC

sling-site git commit: Move tags to bottom of page

Repository: sling-site
Updated Branches:
  refs/heads/master d4868c9b4 -> 58368bb94


Move tags to bottom of page


Project: http://git-wip-us.apache.org/repos/asf/sling-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/sling-site/commit/58368bb9
Tree: http://git-wip-us.apache.org/repos/asf/sling-site/tree/58368bb9
Diff: http://git-wip-us.apache.org/repos/asf/sling-site/diff/58368bb9

Branch: refs/heads/master
Commit: 58368bb94646216d41c3484a6d4b791831294bf1
Parents: d4868c9
Author: Carsten Ziegeler <cz...@adobe.com>
Authored: Thu Oct 5 07:12:27 2017 +0200
Committer: Carsten Ziegeler <cz...@adobe.com>
Committed: Thu Oct 5 07:12:27 2017 +0200

----------------------------------------------------------------------
 src/main/jbake/templates/layout/main.tpl |  4 ++--
 src/main/jbake/templates/page.tpl        | 24 ++++++++++++------------
 2 files changed, 14 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sling-site/blob/58368bb9/src/main/jbake/templates/layout/main.tpl
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/layout/main.tpl b/src/main/jbake/templates/layout/main.tpl
index 189de10..eedf59b 100644
--- a/src/main/jbake/templates/layout/main.tpl
+++ b/src/main/jbake/templates/layout/main.tpl
@@ -16,12 +16,12 @@ html(lang:'en'){
 				}
 			}
 			
-			tags()
-			newLine()
 			tableOfContents()
 			newLine()
 			bodyContents()
 			newLine()
+			tags()
+			newLine()
 			lastModified()
 
 			newLine()

http://git-wip-us.apache.org/repos/asf/sling-site/blob/58368bb9/src/main/jbake/templates/page.tpl
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/page.tpl b/src/main/jbake/templates/page.tpl
index 93a3f07..5093121 100644
--- a/src/main/jbake/templates/page.tpl
+++ b/src/main/jbake/templates/page.tpl
@@ -82,18 +82,6 @@ layout 'layout/main.tpl', true,
 				}
 			}
 		},
-		tags : contents {
-			div(class:"tags") {
-				if(content.tags) {
-					content.tags.each { tag -> 
-                        a(href:"${config.site_contextPath}tags/${tag.replace(' ', '-')}.html", class:"label"){
-                            yield tag
-                        }
-						yield " "
-					}
-				}
-			}
-		},
 		tableOfContents : contents {
 			// Temporary (?) ToC generation, until we get markdown support for that
 			// using https://github.com/nghuuphuoc/tocjs
@@ -111,6 +99,18 @@ layout 'layout/main.tpl', true,
                 }
             }
         },
+		tags : contents {
+			div(class:"tags") {
+				if(content.tags) {
+					content.tags.each { tag -> 
+                        a(href:"${config.site_contextPath}tags/${tag.replace(' ', '-')}.html", class:"label"){
+                            yield tag
+                        }
+						yield " "
+					}
+				}
+			}
+		},
 		lastModified: contents {
 			div(class:"revisionInfo") {
 				def info = getRevisionInfo(content.file);