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-card.html 613B

12345678910111213141516
  1. <!-- {{/*
  2. Basic usage:
  3. {{< hackcss-card header="title" text="Lorem ipsum dolor sit amet">}}
  4. {{% hackcss-card header="Bacon Ipsum" %}}
  5. _Flank **pancetta** beef tri-tip frankfurter chuck._
  6. {{% /hackcss-card %}}
  7. Advanced usage:
  8. {{< hackcss-card header="SUX 3000 (2 left in stock)" >}}
  9. <p>Available now for a limited time at the low price of just $1,000,000.</p>
  10. {{< hackcss-button type="success" text="Buy Now" isblock="true" />}}
  11. {{< /hackcss-card >}}
  12. */}} -->
  13. {{ $header := .Get "header" }}
  14. {{ $body := .Get "text" | default .Inner }}
  15. {{ partial "components/card.html" (dict "header" $header "body" $body)}}