aboutsummaryrefslogtreecommitdiff
path: root/website/templates/_scaffold.html
diff options
context:
space:
mode:
authorRoel Spilker <r.spilker@gmail.com>2017-10-02 23:36:10 +0200
committerRoel Spilker <r.spilker@gmail.com>2017-10-02 23:36:10 +0200
commit4ed3a062c08e39d21b23d88f3d2a4934bac390d7 (patch)
tree632866701791f413eeb4c2f11a641507639921fa /website/templates/_scaffold.html
parent214cff5dd2e9d04b780f3586356c43f7242c06c8 (diff)
downloadlombok-4ed3a062c08e39d21b23d88f3d2a4934bac390d7.tar.gz
lombok-4ed3a062c08e39d21b23d88f3d2a4934bac390d7.tar.bz2
lombok-4ed3a062c08e39d21b23d88f3d2a4934bac390d7.zip
add ids to h1/h2/h3 for linking directly to them
Diffstat (limited to 'website/templates/_scaffold.html')
-rw-r--r--website/templates/_scaffold.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/website/templates/_scaffold.html b/website/templates/_scaffold.html
index cc7b0838..7de5e1d2 100644
--- a/website/templates/_scaffold.html
+++ b/website/templates/_scaffold.html
@@ -123,3 +123,18 @@ ga('send', 'pageview');
</body>
</html>
</#macro>
+
+<#macro h1 title class="">
+<#assign idvalue="*"?no_esc + "${title}"/>
+<h1 class="${class}" id="${idvalue?markup_string?replace("[ _]", "-", "r")?lower_case?replace("[^a-zA-Z0-9-]", "", "r")}">${title}</h1>
+</#macro>
+
+<#macro h2 title class="">
+<#assign idvalue="*"?no_esc + "${title}"/>
+<h2 class="${class}" id="${idvalue?markup_string?replace("[ _]", "-", "r")?lower_case?replace("[^a-zA-Z0-9-]", "", "r")}">${title}</h2>
+</#macro>
+
+<#macro h3 title class="">
+<#assign idvalue="*"?no_esc + "${title}"/>
+<h3 class="${class}" id="${idvalue?markup_string?replace("[ _]", "-", "r")?lower_case?replace("[^a-zA-Z0-9-]", "", "r")}">${title}</h3>
+</#macro>