mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-21 21:43:43 +01:00
A big change for template paths landed in Hugo 0.146.0. In `layouts`, we: - remove `_default` and move everything in it directly under `layouts` - rename `partials` and `shortcodes` to `_partials` and `_shortcodes` - adapt to Hugo and docsy changes about the render-heading hook. We don't need a copy of the heading self-link template now that it is defined as a partial. - update `docs/baseof.html` to match a change upstream - split `docs/changelog.html` because it doesn't work for the section page anymore. We create a `changelog-index` layout for this. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
21 lines
575 B
HTML
21 lines
575 B
HTML
{{/*
|
|
|
|
Display an alert box of the given type, containing the given content.
|
|
|
|
Supported types are "warning", "info", and "rationale".
|
|
The type determines the colors used in the box and, by default,
|
|
the title for the box: WARNING, INFO, RATIONALE.
|
|
|
|
By passing "omit_title", a caller can suppress the title, and just get
|
|
a box using the colors and styles for the given type.
|
|
|
|
*/}}
|
|
|
|
{{ $type := .type}}
|
|
{{ $content := .content}}
|
|
{{ $omit_title := .omit_title }}
|
|
|
|
<div class="alert {{ $type }} {{ if $omit_title }}omit-title{{end}}" role="note">
|
|
{{ $content }}
|
|
</div>
|