
I've added a ``nonewpage`` parameter to social links to avoid popping them open on a new page. This is useful, for example, for adding an email page that is resistant to scraping. As an example: `` [[params.social]] name = "email" url = "/email" nonewpage = true `` Where /email.md is a page that says something like ``domain at domain dot tld``.
3 lines
204 B
HTML
3 lines
204 B
HTML
{{ range . -}}
|
|
<a href="{{ .url }}" {{if eq .nonewpage 0}} target="_blank" {{end}} rel="me noopener {{ .rel }}" title="{{ .name | humanize }}">{{ partial "svg.html" . }}</a>
|
|
{{- end -}}
|