absURL -> relURL

This commit is contained in:
peskyadmin 2025-03-20 10:46:25 -04:00
parent 20bca4e8b7
commit beaa7319f7
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
{{ if .enable }}
<a
class="btn btn-primary"
href="{{ .link | absURL }}"
href="{{ .link | relURL }}"
{{ if strings.HasPrefix .link `http` }}
target="_blank" rel="noopener"
{{ end }}>
@ -65,7 +65,7 @@
</ul>
{{ with .button }}
{{ if .enable }}
<a class="btn btn-primary mt-6" href="{{ .link | absURL }}">
<a class="btn btn-primary mt-6" href="{{ .link | relURL }}">
{{ .label }}
<i class="fa fa-arrow-right pl-2"></i>
</a>

View File

@ -18,7 +18,7 @@
</p>
{{ with .Params.button }}
{{ if .enable }}
<a class="btn btn-primary" href="{{ .link | absURL }}">
<a class="btn btn-primary" href="{{ .link | relURL }}">
{{ .label }}
</a>
{{ end }}