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

View File

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