You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
375 B
HTML
13 lines
375 B
HTML
{{ $ref := "" }}
|
|
{{ $target := "" }}
|
|
{{ with .Get "href" }}
|
|
{{ $ref = . }}
|
|
{{ $target = "_blank" }}
|
|
{{ end }}
|
|
{{ with .Get "relref" }}
|
|
{{ $ref = relref $ . }}
|
|
{{ end }}
|
|
<a {{ with $ref }} href="{{.}}" {{ end }} {{ with $target }} target="{{.}}" rel="noopener" {{ end }} class="book-btn{{ with .Get "class" }} {{ . }}{{ end }}">
|
|
{{ .Inner | .Page.RenderString }}
|
|
</a>
|