absURL -> relURL
This commit is contained in:
parent
20bca4e8b7
commit
beaa7319f7
@ -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>
|
||||
|
@ -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 }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user