Add: live notes

This commit is contained in:
hyzen
2026-04-11 19:24:18 +05:30
parent 224d13a245
commit 08825eb17f
37 changed files with 878 additions and 942 deletions

View File

@@ -29,12 +29,17 @@
<h1>{{ $subjectCode }}</h1>
<ul class="uninotes-list uninotes-list--units">
{{ $seenUnits := slice }}
{{ range .Pages.ByWeight }}
<li class="uninotes-list__item">
<a class="uninotes-list__link" href="{{ .RelPermalink }}">
{{ with .Params.unit }}{{ . }}{{ else }}{{ .Title }}{{ end }}
</a>
</li>
{{ $unitLabel := (.Params.unit | default .Title) }}
{{ if not (in $seenUnits $unitLabel) }}
{{ $seenUnits = $seenUnits | append $unitLabel }}
<li class="uninotes-list__item">
<a class="uninotes-list__link" href="{{ .Params.uniturl }}">
{{ $unitLabel }}
</a>
</li>
{{ end }}
{{ end }}
</ul>