Files
paige-hugo/layouts/partials/paige/tag-a.html
2025-03-03 18:44:01 -08:00

12 lines
473 B
HTML

{{ $params := . }}
{{ $class := $params.class }}
{{ $content := $params.content }}
{{ $href := relLangURL $params.href }}
{{ $page := $params.page }}
{{ $style := $params.style }}
{{ $target := partial "paige/func-target.html" (dict "page" $page "url" $href) }}
<a {{ with $class }} class="{{ . }}" {{ end }} {{ with $href }} href="{{ . }}" {{ end }} {{ with $style }} style="{{ . | safeCSS }}" {{ end }} {{ with $target }} target="{{ . }}" {{ end }}>{{ $content }}</a>