fix: remove relURL function from render-link template

uci-hugo-doc
Robert Kaussow 2021-02-21 21:56:26 +01:00
parent 7d028ddc71
commit e748a7dbc0
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
1 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
{{ $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>
{{- $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>