Generate ToC with Hugo rather than JavaScript (#1851)
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
parent
a7a7eadf2c
commit
784b8984f3
11 changed files with 148 additions and 214 deletions
|
@ -5,6 +5,6 @@
|
|||
|
||||
{{ with .Page.Resources.Match "*.md" }}
|
||||
{{ range ((sort . "Params.date" "desc")) }}
|
||||
{{ .Content }}
|
||||
{{ .RenderShortcodes }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -11,6 +11,6 @@
|
|||
|
||||
{{ with .Site.GetPage "client-server-api/modules" }}
|
||||
{{ with .Resources.GetMatch (printf "%s%s" $name ".md") }}
|
||||
{{ .Content }}
|
||||
{{ .RenderShortcodes }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue