mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-10 15:00:42 +00:00
3 lines
234 B
HTML
3 lines
234 B
HTML
{{- $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") -}}
|
|
<a class="gdoc-markdown__link{{ if $raw }}--raw{{ end }}" href="{{ .Destination | safeURL }}"{{ with .Title}} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
|