Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekblog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@geeklabor.de>2021-02-21 23:57:06 +0300
committerRobert Kaussow <mail@geeklabor.de>2021-02-21 23:57:06 +0300
commit999f05049a7ebadf456ac5ae47d352b9d53e2195 (patch)
tree912bb5326aed9d65b5759800b2c251c4e4595ae8
parent673dc72be0541a9bed44f36b62cae7b10ad85b3f (diff)
fix: remove relURL function from render-link templatev0.9.2
-rw-r--r--layouts/_default/_markup/render-link.html7
1 files changed, 1 insertions, 6 deletions
diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html
index 3dcf378..b3788d1 100644
--- a/layouts/_default/_markup/render-link.html
+++ b/layouts/_default/_markup/render-link.html
@@ -1,7 +1,2 @@
{{- $raw := or (hasPrefix .Text "<img") (hasPrefix .Text "<figure") -}}
-{{- $isRemote:= or (in .Destination ":") ( hasPrefix .Destination "//") -}}
-{{- $destination := .Destination | safeURL -}}
-{{- if not $isRemote -}}
- {{- $destination = $destination | relURL -}}
-{{- end -}}
-<a class="gblog-post__link{{ if $raw }}--raw{{ end }}" href="{{ $destination }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>
+<a class="gblog-post__link{{ if $raw }}--raw{{ end }}" href="{{ .Destination | safeURL }}"{{ with .Title }} title="{{ . }}"{{ end }}>{{ .Text | safeHTML }}</a>