Commit d9a162b

Anton Medvedev <anton@medv.io>
2025-11-30 21:10:36
Update code menu link to point to current ref in layout template
1 parent 3ad4cea
Changed files (1)
pkg
templates
pkg/templates/layout.gohtml
@@ -264,7 +264,7 @@
 <div class="menu">
     <a href="{{ .RootHref }}index.html" class="project-name">{{ .Name }}</a>
     <div class="menu-item {{ if eq .Selected "code" }}selected{{ end }}">
-        <a href="{{ .RootHref }}index.html">
+        <a href="{{ .RootHref }}blob/{{ .CurrentRef }}/index.html">
             <svg aria-hidden="true" width="16" height="16">
                 <use xlink:href="#code"></use>
             </svg>