/
base.ftl
41 lines (41 loc) · 1.31 KB
/
base.ftl
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
30
31
32
33
34
35
36
37
38
39
40
41
<#import "views/page_head.ftl" as page_head>
<#import "views/header.ftl" as header>
<#import "views/footer.ftl" as footer>
<#import "views/article.ftl" as article>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1" charset="UTF-8">
<title>${pageName}</title>
<@page_head.display/>
<@template_cmd name="pathToRoot">
<script>var pathToRoot = "${pathToRoot}";</script>
</@template_cmd>
<#-- This script doesn't need to be there but it is nice to have
since app in dark mode doesn't 'blink' (class is added before it is rendered) -->
<script>const storage = localStorage.getItem("dokka-dark-mode")
const savedDarkMode = storage ? JSON.parse(storage) : false
if(savedDarkMode === true){
document.getElementsByTagName("html")[0].classList.add("theme-dark")
}</script>
<#-- Resources (scripts, stylesheets) are handled by Dokka.
Use customStyleSheets and customAssets to change them. -->
<@resources/>
</head>
<body>
<div class="navigation-wrapper" id="navigation-wrapper">
<@header.display/>
</div>
<div id="container">
<div id="leftColumn">
<div id="sideMenu"></div>
</div>
<div id="main">
<@article.display/>
<div class="footer">
<@footer.display/>
</div>
</div>
</div>
</body>
</html>