also include nav in common issues article

This commit is contained in:
Ell 2024-08-11 20:12:31 +02:00
parent 2f6cec1cdd
commit 73265e3b14
2 changed files with 1 additions and 3 deletions

View file

@ -4,9 +4,7 @@
<div id="navigator-content" style="height: auto; max-height: 50vh; overflow-y: scroll;"></div> <div id="navigator-content" style="height: auto; max-height: 50vh; overflow-y: scroll;"></div>
<script> <script>
$(() => $("{{ include.headers }}").each((i, h) => { $(() => $("{{ include.headers }}").each((i, h) => {
console.log(h);
let offset = `${0.5 + Number(h.nodeName.substring(1)) - 1}rem`; let offset = `${0.5 + Number(h.nodeName.substring(1)) - 1}rem`;
console.log(offset);
$("#navigator-content").append(` $("#navigator-content").append(`
<a class="nav-item nav-link dropdown-item-text" href="#${h.id}" style="padding-left: ${offset}; white-space: nowrap;"> <a class="nav-item nav-link dropdown-item-text" href="#${h.id}" style="padding-left: ${offset}; white-space: nowrap;">
${h.innerText.trim()} ${h.innerText.trim()}

View file

@ -1,6 +1,6 @@
--- ---
layout: default layout: default
nav: basicnav.html nav: changelognav.html
title: Troubleshooting Common Issues with Tiny Life title: Troubleshooting Common Issues with Tiny Life
summary: Information on commonly faced issues in and around Tiny Life, and how to fix them summary: Information on commonly faced issues in and around Tiny Life, and how to fix them
--- ---