semantic-indieweb/layouts/partials/identity.html

25 lines
950 B
HTML

<!-- Rel=Me Identity Links -->
{{- range .Site.Params.Identity -}}
{{- $relMe := cond .authn "me authn" "me" -}}
{{- if (eq .type "Email") }}
<link rel="{{ $relMe }}" href="mailto:{{ .value }}">
{{- else if (eq .type "GitHub") }}
<link rel="{{ $relMe }}" href="https://github.com/{{ .value }}">
{{- else if (eq .type "GitLab") }}
<link rel="{{ $relMe }}" href="https://gitlab.com/{{ .value }}">
{{- else if (eq .type "Twitter") }}
<link rel="{{ $relMe }}" href="https://twitter.com/{{ .value }}">
{{- else if (eq .type "MicroBlog") }}
<link rel="{{ $relMe }}" href="https://micro.blog/{{ .value }}">
{{- else if (eq .type "PGP") }}
{{- $relPgp := cond .authn "pgpkey authn" "pgpkey" }}
<link rel="{{ $relPgp }}" href="{{ .value }}">
{{- end -}}
{{- end -}}
<!-- Webmention Links -->
{{- with .Site.Params.Webmention }}
<link rel="webmention" href="{{ . }}">
{{- end }}
{{- with .Site.Params.Pingback }}
<link rel="pingback" href="{{ . }}">
{{- end }}