Files
blog/themes/geekblog/layouts/_default/_markup/render-link.html
T
2021-05-07 12:21:40 +02:00

3 lines
232 B
HTML

{{- $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") -}}
<a class="gblog-post__link{{ if $raw }}--raw{{ end }}" href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>