2019-12-23 21:22:18 +00:00
|
|
|
<!-- Rel=Me Identity Links -->
|
2019-12-03 03:57:55 +00:00
|
|
|
{{- 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") }}
|
2019-12-03 04:07:27 +00:00
|
|
|
{{- $relPgp := cond .authn "pgpkey authn" "pgpkey" }}
|
|
|
|
<link rel="{{ $relPgp }}" href="{{ .value }}">
|
2019-12-03 03:57:55 +00:00
|
|
|
{{- end -}}
|
2019-12-03 23:33:31 +00:00
|
|
|
{{- end -}}
|
2019-12-23 21:22:18 +00:00
|
|
|
<!-- Webmention Links -->
|
|
|
|
{{- with .Site.Params.Webmention }}
|
|
|
|
<link rel="webmention" href="{{ . }}">
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Site.Params.Pingback }}
|
|
|
|
<link rel="pingback" href="{{ . }}">
|
2020-01-04 22:30:00 +00:00
|
|
|
{{- end -}}
|
|
|
|
<!-- IndieAuth Endpoints -->
|
|
|
|
{{- with .Site.Params.IndieAuth.Authorization }}
|
|
|
|
<link rel="authorization_endpoint" href="{{ . }}">
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Site.Params.IndieAuth.Token }}
|
|
|
|
<link rel="token_endpoint" href="{{ . }}">
|
|
|
|
{{- end -}}
|
|
|
|
<!-- Micropub Endpoint -->
|
|
|
|
{{- with .Site.Params.Micropub }}
|
|
|
|
<link rel="micropub" href="{{ . }}">
|
2019-12-23 21:22:18 +00:00
|
|
|
{{- end }}
|