|
|
@ -7,23 +7,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
The `name` parameter is the file name without extension.
|
|
|
|
The `name` parameter is the file name without extension.
|
|
|
|
|
|
|
|
|
|
|
|
The `withVersioning` parameter is optional and defaults to false. When true, any
|
|
|
|
|
|
|
|
mentions of "New in this version" from the `added-in` shortcode are removed prior
|
|
|
|
|
|
|
|
to rendering. This is useful if needing to use a fragment where part of it describes
|
|
|
|
|
|
|
|
new functionality in a given room version but isn't new for subsequent versions.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/}}
|
|
|
|
*/}}
|
|
|
|
|
|
|
|
|
|
|
|
{{ $name := .Params.name }}
|
|
|
|
{{ $name := .Params.name -}}
|
|
|
|
{{ $withVersioning := .Params.withVersioning }}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{ with .Site.GetPage "rooms/fragments" }}
|
|
|
|
{{ with .Site.GetPage "rooms/fragments" -}}
|
|
|
|
{{ with .Resources.GetMatch (printf "%s%s" $name ".md") }}
|
|
|
|
{{ with .Resources.GetMatch (printf "%s.md" $name) -}}
|
|
|
|
{{ $content := .RenderShortcodes }}
|
|
|
|
{{ .RenderShortcodes | safeHTML }}
|
|
|
|
{{ if not $withVersioning }}
|
|
|
|
{{ end -}}
|
|
|
|
{{ $content = (replace $content "[New in this version]" "") }}
|
|
|
|
{{ end -}}
|
|
|
|
{{ $content = (replace $content "[Changed in this version]" "") }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ $content | safeHTML }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|