-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter.partial
54 lines (52 loc) · 1.41 KB
/
footer.partial
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
42
43
44
45
46
47
48
49
50
51
52
53
54
</main>
<footer class="footer">
<div class="container">
<div class="footer__container">
<p class="footer__love">
{{{$copyright}}} {{COMMON.FOOTER.COPYRIGHT}}
{{#if COMMON.FOOTER.TEMPLATE_BY}}
— Template by <a href="https://javimogan.com" target="_blank">javimogan</a>
{{/if}}
{{#if COMMON.FOOTER.POWERED_BY}}
— {{{$powered_by}}}
{{/if}}
</p>
<ul class="footer__links">
{{#each $PAGES.PAGE}}
<li class="footer__link">
{{{$page_link FILE_PATH DATA.TITLE}}}
</li>
{{/each}}
{{#each COMMON.FOOTER.LINKS}}
<li class="footer__link">
<a href="{{URL}}"{{#if OPEN_IN_NEW_TAB}} targe="_blank"{{/if}}>{{TITLE}}</a>
</li>
{{/each}}
</ul>
</div>
</div>
</footer>
{{{$script 'assets/tobi.min.js'}}}
<script>
window.onload = function () {
var tobi = new Tobi();
};
</script>
{{#if COMMON.THEME.TOOGLE_THEME}}
<script>
window.onload = function () {
document.querySelector('#toggle-theme').addEventListener('change', (event) => {
if(event.target.checked){
document.getElementsByTagName("html")[0].className = "";
}else{
document.getElementsByTagName("html")[0].className = "theme-dark";
}
});
};
</script>
{{/if}}
{{#if COMMON.FOOTER.POST_HTML}}
{{{$html COMMON.FOOTER.POST_HTML}}}
{{/if}}
</body>
</html>