Skip to content

Commit a65ef6a

Browse files
committed
automatic list generation of meeting minutes
1 parent ed5897b commit a65ef6a

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ draft: false
99

1010
## 2025
1111

12-
- [2025-09-23](2025#2025-09-23)
13-
- [2025-10-09](2025#2025-10-09)
14-
- [2025-10-23](2025#2025-10-23)
12+
<ul>
13+
{{< list-headings "2025" >}}
14+
</ul>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{ $page := .Site.GetPage (printf "/minutes/%s" (.Get 0)) }}
2+
{{ if $page }}
3+
{{ range findRE `(?m)^# (.+)$` $page.RawContent }}
4+
{{ $title := replaceRE `^# (.+)$` "$1" . }}
5+
{{ $anchor := $title | anchorize }}
6+
<li><a href="{{ $page.RelPermalink }}#{{ $anchor }}">{{ $title }}</a></li>
7+
{{ end }}
8+
{{ end }}

0 commit comments

Comments
 (0)