Hugo Dark Theme Site Generator https://after-dark.habd.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hackcss-alert.html 469B

12345678910111213
  1. <!-- {{/*
  2. Custom attributes: "type", "text" [default: Inner]
  3. Possible types: "success", "info", "warning", "error"
  4. Basic Usage:
  5. {{< hackcss-alert type="info" text="Alert Text" />}}
  6. {{< hackcss-alert >}}Inner block of text{{< /hackcss-alert >}}
  7. {{% hackcss-alert %}}**Note:** Markdown available{{% /hackcss-alert %}}
  8. */}} -->
  9. {{ $type := .Get "type" }}
  10. {{ $body := .Get "text" | default .Inner }}
  11. {{ partial "components/alert.html" (dict "type" $type "body" $body) }}