docs(website): fix warning shortcode syntax

TorchedSammy 2022-07-09 12:57:55 -04:00
parent 9757b1d16e
commit 4ebf5a757c
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,7 @@ To exit, you can either run the `exit` command or hit Ctrl+D.
There are a few ways to make Hilbish your default shell. A simple way is
to make it your user/login shell.
{{< warning "It is not recommended to set Hilbish as your login shell. That is expected to be a
{{< warning msg="It is not recommended to set Hilbish as your login shell. That is expected to be a
POSIX compliant shell, which Hilbish is not. At most, there will just be a
few variables missing in your environment" >}}

View File

@ -1,6 +1,10 @@
<div class="alert alert-warning d-flex align-items-center" role="alert">
<svg class="bi flex-shrink-0 me-2" width="24" height="24" role="img" aria-label="Warning:"><use xlink:href="#exclamation-triangle-fill"/></svg>
<div>
{{ index .Params 0 }}
{{ if .IsNamedParams }}
{{ .Get "msg" }}
{{ else }}
{{ .Get 0 }}
{{ end }}
</div>
</div>