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.

blockquote.html 655B

12345678910111213141516
  1. <!--{{/*
  2. Create block and pull quotations with citations and citation links.
  3. Basic usage:
  4. {{< blockquote cite="https://bitly.is/2mkxskj" citelink="https://bitly.is/2mkxskj" >}}
  5. <p>When you create your own Branded Short Domain, you can expect to see up to a 34% increase in CTR when compared to standard bit.ly links.</p>
  6. {{< /blockquote >}}
  7. */}}-->
  8. <blockquote {{ with .Get "class" }}class="{{ . }}"{{ end }} {{ with .Get "citelink" }}cite="{{ . }}"{{ end }}>
  9. {{ .Inner }}
  10. {{ with .Get "citelink" }}
  11. <cite><a target="_blank" href="{{ . }}">{{ $.Get "cite" }}</a></cite>
  12. {{ else }}
  13. <cite>{{ .Get "cite" }}</cite>
  14. {{ end }}
  15. </blockquote>