mirror of
https://github.com/rottenwheel/revuoxmrtheme.git
synced 2024-11-09 20:20:06 +00:00
11 lines
No EOL
372 B
HTML
11 lines
No EOL
372 B
HTML
{{ with .Site.Params.right_icons }}
|
|
{{ range . }}
|
|
{{ $target := cond .external "_blank" "_self" }}
|
|
|
|
<!-- safeURL only works when the link is stored in a variable -->
|
|
{{ $link := .link }}
|
|
<a class="icon" href="{{ $link | safeURL }}" target="{{ $target }}">
|
|
<img src="/img/{{ .icon }}" alt="{{ .icon_alt }}" title="{{ .title }}" />
|
|
</a>
|
|
{{ end }}
|
|
{{ end }} |