docs(website): use multiline string for shortcode

TorchedSammy 2022-07-09 13:05:53 -04:00
parent 4ebf5a757c
commit e1289c1da6
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 3 additions and 7 deletions

View File

@ -14,9 +14,9 @@ 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 There are a few ways to make Hilbish your default shell. A simple way is
to make it your user/login shell. to make it your user/login shell.
{{< warning msg="It is not recommended to set Hilbish as your login shell. That is expected to be a {{< warning `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 POSIX compliant shell, which Hilbish is not. At most, there will just be a
few variables missing in your environment" >}} few variables missing in your environment` >}}
To do that, simply run `chsh -s /usr/bin/hilbish`. To do that, simply run `chsh -s /usr/bin/hilbish`.
Some distros (namely Fedora) might have `lchsh` instead, which is used like `lchsh <user>`. Some distros (namely Fedora) might have `lchsh` instead, which is used like `lchsh <user>`.

View File

@ -1,10 +1,6 @@
<div class="alert alert-warning d-flex align-items-center" role="alert"> <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> <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> <div>
{{ if .IsNamedParams }}
{{ .Get "msg" }}
{{ else }}
{{ .Get 0 }} {{ .Get 0 }}
{{ end }}
</div> </div>
</div> </div>