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.

12 lines
467 B
HTML

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