From: Andre Noll Date: Tue, 25 Feb 2020 14:25:27 +0000 (+0100) Subject: Add table of contents to the main page. X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=47d1b278687988739b214025788f7c5739916e70;p=aple.git Add table of contents to the main page. At least the netsurf browser completely ignores the hamburger icon, so provide an alternative way to navigate the pages. --- diff --git a/Introduction.m4 b/Introduction.m4 index ce96e8e..66be111 100644 --- a/Introduction.m4 +++ b/Introduction.m4 @@ -11,6 +11,9 @@ OVERVIEW(« corner to open the navigation menu. ») +SECTION(«Table of Contents») +TABLE_OF_CONTENTS() + SECTION(«About») ifelse(PUBLIC(), «true», «dnl public version of the pages diff --git a/include/m4/aple.m4 b/include/m4/aple.m4 index a612970..a995dfc 100644 --- a/include/m4/aple.m4 +++ b/include/m4/aple.m4 @@ -75,6 +75,26 @@ define(«HEADER», « ») +define(«TABLE_OF_CONTENTS», « + +») + define(«TITLE», « HEADER(«$1», «$2», «$3»)
@@ -90,23 +110,7 @@ HEADER(«$1», «$2», «$3»)