mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-04-16 05:38:33 +02:00
Add: live notes
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user