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>
<script>
$(() => $("{{ include.headers }}").each((i, h) => {
console.log(h);
let offset = `${0.5 + Number(h.nodeName.substring(1)) - 1}rem`;
console.log(offset);
$("#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()}

View file

@ -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
---