Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Commit 11d0283

Browse files
Add 'All Repos' nav link back to homepage (#14)
* fix: use Tree.Root.String() for JS/CSS extraction to avoid html/template escaping RenderJS() and RenderCSS() were running static assets through html/template's Execute(), which HTML-escapes < to &lt; in the output. This broke all for-loops and comparisons in main.js (8 instances), causing a syntax error that prevented all D3 graphs from rendering. Same root cause as the template.HTML → template.JS fix: the text/template → html/template migration in 8f1470b. * Add 'All Repos' link to site header navigation Adds a link back to repos.supermodeltools.com as the first item in the nav bar on every page. Styled with accent color and a subtle right border to separate it from the in-repo nav links.
1 parent 1e08478 commit 11d0283

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

templates/_header.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
{{.Site.Name}}
99
</a>
1010
<nav class="site-nav">
11+
<a href="https://repos.supermodeltools.com/" class="nav-all-repos">&larr; All Repos</a>
1112
<a href="/node_type/index.html">By Type</a>
1213
<a href="/domain/index.html">Domains</a>
1314
<a href="/language/index.html">Languages</a>

templates/_styles.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-light);
6969
.site-nav { display: flex; gap: 16px; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; }
7070
.site-nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; white-space: nowrap; }
7171
.site-nav a:hover { color: var(--text); text-decoration: none; }
72+
.nav-all-repos { color: var(--accent-light) !important; padding-right: 12px; margin-right: 4px; border-right: 1px solid var(--border); }
73+
.nav-all-repos:hover { color: var(--text) !important; }
7274

7375
/* Footer */
7476
.site-footer {

0 commit comments

Comments
 (0)