added styling
All checks were successful
Preview / build-deploy (push) Successful in 50s

This commit is contained in:
Stephan Hadan 2025-02-18 12:48:15 +01:00
parent dacdc533da
commit 3ab1c0c119
Signed by: stephan.hadan
GPG key ID: B2F9DCEB3DA700D5
21 changed files with 2244 additions and 0 deletions

View file

@ -0,0 +1,17 @@
<% if (chapters && chapters.length > 0) {%>
<div class="sidebar-border">
<aside class="sidebar" role="navigation">
<div>
<% chapters.forEach((chapter) => { %>
<% if (chapter.isFolder) { %>
<label><%= chapter.label %></label>
<% } else if (chapter.href && /^https?:\/\//.test(chapter.href)) { %>
<a href="<%= chapter.href %>" target="_blank" class="<%- chapter.active ? 'active' : '' %>"><%= chapter.label %></a>
<% } else { %>
<a href="<%= chapter.href %>" class="<%- chapter.active ? 'active' : '' %>"><%= chapter.label %></a>
<% } %>
<% }) %>
</div>
</aside>
</div>
<% } %>