revuoxmrtheme/layouts/partials/right_icons.html

11 lines
372 B
HTML
Raw Permalink Normal View History

2024-07-02 22:03:13 +00:00
{{ with .Site.Params.right_icons }}
{{ range . }}
{{ $target := cond .external "_blank" "_self" }}
2024-07-03 22:02:11 +00:00
<!-- safeURL only works when the link is stored in a variable -->
{{ $link := .link }}
<a class="icon" href="{{ $link | safeURL }}" target="{{ $target }}">
2024-07-02 22:03:13 +00:00
<img src="/img/{{ .icon }}" alt="{{ .icon_alt }}" title="{{ .title }}" />
</a>
{{ end }}
{{ end }}