matrix-spec/layouts/shortcodes/rver-fragment.html
Kévin Commaille d701754835
Remove withVersioning parameter of rver-fragment shortcode.
We now detect automatically in the `added-in` and `changed-in` shortcodes
whether we need to add text according to the page's room version so this parameter
has become unnecessary.
Moreover, forgetting to set this param can remove the text generated by the
shortcodes so it is safer to just get rid of it.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
2024-10-13 12:44:59 +02:00

19 lines
560 B
HTML

{{/*
This template is used to render a "room version fragment". Fragments are blocks of
text which describe a portion of the room version specification. They should be
prefixed with the room version which introduces the fragment, and be reusable for
two or more versions.
The `name` parameter is the file name without extension.
*/}}
{{ $name := .Params.name -}}
{{ with .Site.GetPage "rooms/fragments" -}}
{{ with .Resources.GetMatch (printf "%s.md" $name) -}}
{{ .RenderShortcodes | safeHTML }}
{{ end -}}
{{ end -}}