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-helpblock.html 697B

1234567891011121314151617181920212223
  1. <!-- {{/*
  2. HTML attributes: "class"
  3. Custom attributes: "text" [default: Inner]
  4. Basic usage:
  5. {{< hackcss-helpblock text="You need help. Seriously." />}}
  6. With markdown formatting:
  7. {{% hackcss-helpblock %}}**Pay attention!**{{% /hackcss-helpblock %}}
  8. Affixed above and below input control:
  9. {{< hackcss-formgroup >}}
  10. {{< hackcss-helpblock >}}
  11. <em>Enter a secure password below:</em>
  12. {{< /hackcss-helpblock >}}
  13. {{< hackcss-textinput type="password" >}}
  14. {{< hackcss-helpblock text="Min. 27 chars" />}}
  15. {{< /hackcss-formgroup >}}
  16. */}} -->
  17. {{ $class := .Get "class" }}
  18. {{ $body := .Get "text" | default .Inner }}
  19. {{ partial "components/helpblock.html" (dict "class" $class "body" $body) }}