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 23:38:58 UTC

[sling-site] branch SLING-8588 updated: SLING-8588 fixed TOC on index page

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 fdc096f  SLING-8588 fixed TOC on index page
fdc096f is described below

commit fdc096faa2f5709b2c824d771c4be455941f48f9
Author: Jason E Bailey <je...@apache.org>
AuthorDate: Fri Jul 19 19:38:52 2019 -0400

    SLING-8588 fixed TOC on index page
---
 src/main/jbake/content/index.md          | 1 +
 src/main/jbake/templates/layout/main.tpl | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/jbake/content/index.md b/src/main/jbake/content/index.md
index 33bbf18..fbe994f 100644
--- a/src/main/jbake/content/index.md
+++ b/src/main/jbake/content/index.md
@@ -3,6 +3,7 @@ type=page
 status=published
 tags=community
 expandVariables=true
+tableOfContents=false
 ~~~~~~
 
 Apache Sling&trade; is a ${sling_tagline}.
diff --git a/src/main/jbake/templates/layout/main.tpl b/src/main/jbake/templates/layout/main.tpl
index 3af9d43..6ff626f 100644
--- a/src/main/jbake/templates/layout/main.tpl
+++ b/src/main/jbake/templates/layout/main.tpl
@@ -25,7 +25,7 @@ html(lang:'en'){
                                 yield "${ content.title }"
                             }
                         }
-                        if (!content.tableOfContents) {
+                        if (!"false".equals(content.tableOfContents)) {
                             tableOfContents()
                         }
                         div(class:"content is-marginless"){