const onTagTerm = currentUrl.startsWith('/tags/');
const blogSelected = onBlog || onArchive || onCategoriesIndex || onCategoryTerm || onTagsIndex || onTagTerm;
+const onAbout = currentUrl === '/about.html';
// Active state flags
const categoriesSelected = onCategoriesIndex || onCategoryTerm;
return currentUrl.startsWith(s.url);
})?.name ?? '';
+// Hugo blog.html: Blog always visible on blog pages, all other sections always off.
+// Hugo default.html + tree.html: on Homepage/regular-root-pages all sections visible
+// (child/sibling logic); on About section-index only About visible, Blog off.
+// When Projects is implemented, extend both: blogSectionOff |= onProjects, aboutOff |= onProjects.
+const blogSectionOff = onAbout;
+const aboutOff = blogSelected;
+
// Determine active year from currentUrl
function isActiveYear(year: string) {
return currentUrl === `/blog/archive/${year}/` ||
</h2>
<ul id="submenu" class="s active">
{/* Blog subtree */}
- <li class="s sub">
+ <li class={`s sub${blogSectionOff ? ' off' : ''}`}>
<a href="/blog/" class={blogSelected ? 's selected' : 's'}>
{blogSelected ? <strong>Blog</strong> : 'Blog'}
</a>
)}
</ul>
</li>
+ {/* About entry */}
+ <li class={`s${aboutOff ? ' off' : ''}`}>
+ <a href="/about.html" class={onAbout ? 's selected' : 's'}>
+ {onAbout ? <strong>About</strong> : 'About'}
+ </a>
+ </li>
</ul>
<hr class="n"/>
</nav>
---
import BaseLayout from '../layouts/BaseLayout.astro';
import Breadcrumb from '../components/Breadcrumb.astro';
+import BlogNav from '../components/BlogNav.astro';
const crumbs = [
{ title: 'Home', url: '/' },
</p>
</Fragment>
+ <Fragment slot="menu">
+ <BlogNav currentUrl="/about.html" />
+ </Fragment>
+
<Fragment slot="marginalcontent">
<aside class="m">
<h2>Funded by the Europian Union</h2>
---
import BaseLayout from '../layouts/BaseLayout.astro';
import Breadcrumb from '../components/Breadcrumb.astro';
+import BlogNav from '../components/BlogNav.astro';
const crumbs = [
{ title: 'Home', url: '/' },
</section>
</Fragment>
+ <Fragment slot="menu">
+ <BlogNav currentUrl="/datenschutz.html" />
+ </Fragment>
+
<Fragment slot="footerlinks">
<li class="f"><a class="f" href="/impressum.html">Impressum</a></li>
<li class="f"><strong class="f">Datenschutz</strong></li>
---
import BaseLayout from '../layouts/BaseLayout.astro';
import Breadcrumb from '../components/Breadcrumb.astro';
+import BlogNav from '../components/BlogNav.astro';
const crumbs = [
{ title: 'Home', url: '/' },
</p>
</Fragment>
+ <Fragment slot="menu">
+ <BlogNav currentUrl="/impressum.html" />
+ </Fragment>
+
<Fragment slot="footerlinks">
<li class="f"><strong class="f">Impressum</strong></li>
<li class="f"><a class="f" href="/datenschutz.html">Datenschutz</a></li>