mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-12-22 06:39:23 +01:00
also include nav in common issues article
This commit is contained in:
parent
2f6cec1cdd
commit
73265e3b14
2 changed files with 1 additions and 3 deletions
|
@ -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()}
|
||||||
|
|
|
@ -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
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in a new issue