mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-22 19:28:35 +01:00
Compare commits
2 commits
dcd8aa99be
...
73265e3b14
Author | SHA1 | Date | |
---|---|---|---|
73265e3b14 | |||
2f6cec1cdd |
7 changed files with 22 additions and 7 deletions
|
@ -5,3 +5,4 @@
|
|||
{% if page.next %}
|
||||
<a class="nav-item nav-link" href="{{ page.next.url }}">⏭️ Next Post</a>
|
||||
{% endif %}
|
||||
{% include tocnavitem.html headers="h1, h2, h3, h4, h5, h6" %}
|
||||
|
|
2
web/_includes/changelognav.html
Normal file
2
web/_includes/changelognav.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
<a class="nav-item nav-link" href="../../">🏠 Home</a>
|
||||
{% include tocnavitem.html headers="h2" %}
|
|
@ -39,10 +39,6 @@
|
|||
});
|
||||
</script>
|
||||
</span>
|
||||
|
||||
<script>
|
||||
$(".navbar-collapse a").on("click", () => $(".navbar-collapse").collapse("hide"));
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
|
15
web/_includes/tocnavitem.html
Normal file
15
web/_includes/tocnavitem.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<div class="nav-item dropdown">
|
||||
<a class="nav-link dropdown-toggle" type="button" data-toggle="dropdown">🧭 Navigation</a>
|
||||
<div class="dropdown-menu">
|
||||
<div id="navigator-content" style="height: auto; max-height: 50vh; overflow-y: scroll;"></div>
|
||||
<script>
|
||||
$(() => $("{{ include.headers }}").each((i, h) => {
|
||||
let offset = `${0.5 + Number(h.nodeName.substring(1)) - 1}rem`;
|
||||
$("#navigator-content").append(`
|
||||
<a class="nav-item nav-link dropdown-item-text" href="#${h.id}" style="padding-left: ${offset}; white-space: nowrap;">
|
||||
${h.innerText.trim()}
|
||||
</a>`);
|
||||
}));
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: default
|
||||
nav: basicnav.html
|
||||
nav: changelognav.html
|
||||
title: Tiny Life Changelog
|
||||
summary: The full changelog for Tiny Life
|
||||
---
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
layout: default
|
||||
nav: basicnav.html
|
||||
nav: changelognav.html
|
||||
title: Troubleshooting Common Issues with Tiny Life
|
||||
summary: Information on commonly faced issues in and around Tiny Life, and how to fix them
|
||||
---
|
||||
|
|
|
@ -256,7 +256,8 @@ h1:hover .anchor-heading, h2:hover .anchor-heading, h3:hover .anchor-heading, h4
|
|||
visibility: visible;
|
||||
}
|
||||
|
||||
body.dark-mode {
|
||||
body.dark-mode,
|
||||
body.dark-mode .dropdown-menu {
|
||||
color: #d8d8d8;
|
||||
background-color: #1b1b1b;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue