Repository: sling-site
Updated Branches:
  refs/heads/master 4eb8bba85 -> 9de648ff4


ToC should contain every h1,h2 and h3 which is not the title itself

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

Branch: refs/heads/master
Commit: 9de648ff47e1bb0ad6c8309870fca238097a809f
Parents: 4eb8bba
Author: Konrad Windszus <k...@apache.org>
Authored: Fri Sep 29 12:05:51 2017 +0200
Committer: Konrad Windszus <k...@apache.org>
Committed: Fri Sep 29 12:05:51 2017 +0200

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


http://git-wip-us.apache.org/repos/asf/sling-site/blob/9de648ff/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 5df7589..b7046b3 100644
--- a/src/main/jbake/templates/layout/main.tpl
+++ b/src/main/jbake/templates/layout/main.tpl
@@ -10,7 +10,7 @@ html(lang:'en'){
                div(class:"main") {
                        breadcrumbs()
                        
-                       h1 {
+                       h1(class:"pagetitle") {
                yield "${ content ? content.title : "<MISSING CONTENT 
OBJECT??>" }"
                        }
                        

http://git-wip-us.apache.org/repos/asf/sling-site/blob/9de648ff/src/main/jbake/templates/page.tpl
----------------------------------------------------------------------
diff --git a/src/main/jbake/templates/page.tpl 
b/src/main/jbake/templates/page.tpl
index 0a93e5f..8bb6795 100644
--- a/src/main/jbake/templates/page.tpl
+++ b/src/main/jbake/templates/page.tpl
@@ -46,7 +46,7 @@ layout 'layout/main.tpl', true,
                        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':'h2,h3'}); } );</script>"
+                       yieldUnescaped "<script 
type='text/javascript'>\$(document).ready(function() { 
\$('#generatedToC').toc({'selector':'h1[class!=pagetitle],h2,h3'}); } 
);</script>"
                },
         bodyContents: contents {
             div(class:"row"){

Reply via email to