You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2018/01/23 13:20:38 UTC

[sling-site] 01/05: Fix tabs

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

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

commit 14b3f7665f899ac768620546407baf3ef9eca57c
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Fri Jan 5 15:18:04 2018 +0100

    Fix tabs
---
 src/main/jbake/templates/page.tpl | 74 +++++++++++++++++++--------------------
 1 file changed, 37 insertions(+), 37 deletions(-)

diff --git a/src/main/jbake/templates/page.tpl b/src/main/jbake/templates/page.tpl
index e4a1557..440b89b 100644
--- a/src/main/jbake/templates/page.tpl
+++ b/src/main/jbake/templates/page.tpl
@@ -3,25 +3,25 @@ U = new includes.U(config)
 
 layout 'layout/main.tpl', true,
         projects: projects,
-		breadcrumbs : contents {
-			div(class:"breadcrumbs") {
-				def separator = "&nbsp;&raquo;&nbsp;"
-				U.getSortedParents(content, published_content).each { item ->
-					a (href:"${config.site_contextPath}${item.value.uri}") {
-						yield item.value.title
-					}
-					yieldUnescaped separator
-				}
-			}
-		},
-		tableOfContents : contents {
-			// Temporary (?) ToC generation, until we get markdown support for that
-			// using https://github.com/nghuuphuoc/tocjs
-			div(id:"generatedToC") {}
-			yieldUnescaped "<script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script>"
-			yieldUnescaped "<script src='/res/tocjs-1-1-2.js' type='text/javascript'></script>"
-			yieldUnescaped "<script type='text/javascript'>\$(document).ready(function() { \$('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script>"
-		},
+        breadcrumbs : contents {
+            div(class:"breadcrumbs") {
+                def separator = "&nbsp;&raquo;&nbsp;"
+                U.getSortedParents(content, published_content).each { item ->
+                    a (href:"${config.site_contextPath}${item.value.uri}") {
+                        yield item.value.title
+                    }
+                    yieldUnescaped separator
+                }
+            }
+        },
+        tableOfContents : contents {
+            // Temporary (?) ToC generation, until we get markdown support for that
+            // using https://github.com/nghuuphuoc/tocjs
+            div(id:"generatedToC") {}
+            yieldUnescaped "<script src='/res/jquery-3.2.1.min.js' type='text/javascript'></script>"
+            yieldUnescaped "<script src='/res/tocjs-1-1-2.js' type='text/javascript'></script>"
+            yieldUnescaped "<script type='text/javascript'>\$(document).ready(function() { \$('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } );</script>"
+        },
         bodyContents: contents {
             div(class:"row"){
                 div(class:"small-12 columns"){
@@ -31,24 +31,24 @@ layout 'layout/main.tpl', true,
                 }
             }
         },
-		tags : contents {
-			div(class:"tags") {
-				if(content.tags) {
-					content.tags.each { tag -> 
+        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 = includes.Git.getRevisionInfo(content.file);
-				yield "Last modified by "
-				span(class:"author") { yield info.author }
-				yield " on "
-				span(class:"comment") { yield info.date }
-			}
-		}
\ No newline at end of file
+                        yield " "
+                    }
+                }
+            }
+        },
+        lastModified: contents {
+            div(class:"revisionInfo") {
+                def info = includes.Git.getRevisionInfo(content.file);
+                yield "Last modified by "
+                span(class:"author") { yield info.author }
+                yield " on "
+                span(class:"comment") { yield info.date }
+            }
+        }

-- 
To stop receiving notification emails like this one, please contact
bdelacretaz@apache.org.