aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2026-04-24 11:12:53 -0400
committerSam Anthony <sam@samanthony.xyz>2026-04-24 11:12:53 -0400
commitad37bcfc2310d2af386fb3b41fcfbf4852fc2a9c (patch)
treedd60c04059b14e9787ee3c31d9601af7a4e364ca
parent66869b2b094321039ea77293809a9a7eaa858b04 (diff)
downloadaoidh-master.zip
-rw-r--r--Makefile4
-rw-r--r--layouts/_partials/nav.html24
2 files changed, 16 insertions, 12 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..dc2069b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,4 @@
+fmt:
+ gotmplfmt -w .
+
+.PHONY: fmt
diff --git a/layouts/_partials/nav.html b/layouts/_partials/nav.html
index 81751ef..346d3ba 100644
--- a/layouts/_partials/nav.html
+++ b/layouts/_partials/nav.html
@@ -1,14 +1,14 @@
<nav>
- <ul>
- {{- $currentPage := . }}
- {{- range site.Menus.main }}
- {{- if $currentPage.IsMenuCurrent .Menu . }}
- <li class="nav-active"><a href="{{ .URL }}">{{ .Name }}</a></li>
- {{- else if $currentPage.HasMenuCurrent .Menu . }}
- <li class="nav-ancestor"><a href="{{ .URL }}">{{ .Name }}</a></li>
- {{- else }}
- <li><a href="{{ .URL }}">{{ .Name }}</a></li>
- {{- end }}
- {{- end }}
- </ul>
+ <ul>
+ {{- $currentPage := . }}
+ {{- range site.Menus.main }}
+ {{- if $currentPage.IsMenuCurrent .Menu . }}
+ <li class="nav-active"><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{- else if $currentPage.HasMenuCurrent .Menu . }}
+ <li class="nav-ancestor"><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{- else }}
+ <li><a href="{{ .URL }}">{{ .Name }}</a></li>
+ {{- end }}
+ {{- end }}
+ </ul>
</nav>