hugo-theme-hilfe/layouts/_default/_markup/render-link.html
2021-02-21 14:04:40 +01:00

2 lines
241 B
HTML

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