Generate ToC with Hugo rather than JavaScript (#1851)

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-06-11 23:24:23 +02:00 committed by GitHub
parent a7a7eadf2c
commit 784b8984f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 148 additions and 214 deletions

View file

@ -5,6 +5,6 @@
{{ with .Page.Resources.Match "*.md" }}
{{ range ((sort . "Params.date" "desc")) }}
{{ .Content }}
{{ .RenderShortcodes }}
{{ end }}
{{ end }}

View file

@ -11,6 +11,6 @@
{{ with .Site.GetPage "client-server-api/modules" }}
{{ with .Resources.GetMatch (printf "%s%s" $name ".md") }}
{{ .Content }}
{{ .RenderShortcodes }}
{{ end }}
{{ end }}