-
Notifications
You must be signed in to change notification settings - Fork 23
/
page.html
29 lines (29 loc) · 1.03 KB
/
page.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html layout:decorate="~{layout.html}">
<head>
<title th:utext="${title}"></title>
</head>
<body>
<div layout:fragment="content">
<nav aria-label="Table of contents" th:if="${#lists.size(toc) > 0}" class="float-end px-3 toc">
<b class="text-body-secondary">On this page</b>
<ol class="border-start border-3 mt-2">
<li th:each="item : ${toc}">
<a th:href="${'#' + item.id}" th:utext="${item.title}"></a>
<ol>
<li th:each="sub : ${item.children}">
<a th:href="${'#' + sub.id}" th:utext="${sub.title}"></a>
<ol>
<li th:each="sub2 : ${sub.children}">
<a th:href="${'#' + sub2.id}" th:utext="${sub2.title}"></a>
</li>
</ol>
</li>
</ol>
</li>
</ol>
</nav>
<main class="main-content" th:utext="${content}"></main>
</div>
</body>
</html>