mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-05 04:40:43 +00:00
9 lines
283 B
HTML
9 lines
283 B
HTML
{{- $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") -}}
|
|
<a
|
|
class="gblog-markdown__link{{ if $raw }}--raw{{ end }}"
|
|
href="{{ .Destination | safeURL }}"
|
|
{{ with .Title }}title="{{ . }}"{{ end }}
|
|
>{{ .Text | safeHTML }}</a
|
|
>
|
|
{{- /* Drop trailing newlines */ -}}
|