6 lines
341 B
HTML
6 lines
341 B
HTML
{{- $href := partial "docs/links/portable-link" (dict "Page" .Page "Destination" (.Get "href")) -}}
|
|
{{- $isRemote := (urls.Parse $href).IsAbs -}}
|
|
<a {{ with $href }}href="{{ $href }}"{{ end }} {{ with $isRemote }}target="_blank" rel="noopener"{{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
|
|
{{- .InnerDeindent -}}
|
|
</a>
|