matrix-spec/layouts/shortcodes/cs-module.html
Andrew Morgan cd0d6116b6 Replace deprecated Page.Dir with Page.File.Dir
Page.Dir has been deprecated for a while, and was finally removed in hugo v0.93.0.

This commit replaces instances of Page.Dir with Page.File.Dir.
2022-03-08 14:02:21 +00:00

14 lines
347 B
HTML

{{/*
This template is used to render a Client-Server API Module. Modules are defined
alongside the `_index.md` for the CS API.
The `name` parameter is the file name without extension.
*/}}
{{ $name := .Params.name }}
{{ $page := .Site.GetPage (path.Join .Page.File.Dir "modules" (printf "%s%s" $name ".md"))}}
{{ $page.Content }}