2023-11-08 01:51:27

This commit is contained in:
z17CX 2023-11-08 01:51:27 +00:00
parent 7562b03725
commit 019cee3744
Signed by: z17cx
GPG key ID: 3F5F87C84EE943E4

View file

@ -12,8 +12,8 @@ Notes in article.
{{< /alert >}}
*/ -}}
{{ $type := ((.Get 0) | default "default") }}
{{ $types := (slice "default" "important" "info" "tip" "warning") }}
{{ $type := (.Get 0) }}
{{ $types := (slice "important" "info" "tip" "warning") }}
{{ with ($type) }}
{{ if (not (in ($types) .)) }}