mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-14 00:40:40 +00:00
4 lines
271 B
HTML
4 lines
271 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>
|
|
{{- /* Drop trailing newlines */ -}}
|