Skip to content
Merged

sync #129

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/components/navbar.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import ComponentBuilder from './component-builder.js'

// fix links for nested pages
const slashCount = document.location.pathname.split('/').length - 1
const linkPrefix = '../'.repeat(slashCount - 2)

const location = document.location.pathname.split('src')[1]
const slashCount = location.split('/').length - 1
const linkPrefix = '../'.repeat(slashCount - 1)

const navbarCode = `
<nav class="navbar navbar-expand-lg bg-body-tertiary fixed-top">
Expand Down