Conditional "authn" for PGP Key

master
Kevin C. Coram 2019-12-02 23:07:27 -05:00
parent fc7dddfae6
commit 09353cd937
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
{{- else if (eq .type "MicroBlog") }} {{- else if (eq .type "MicroBlog") }}
<link rel="{{ $relMe }}" href="https://micro.blog/{{ .value }}"> <link rel="{{ $relMe }}" href="https://micro.blog/{{ .value }}">
{{- else if (eq .type "PGP") }} {{- else if (eq .type "PGP") }}
<link rel="pgpkey authn" href="{{ .value }}"> {{- $relPgp := cond .authn "pgpkey authn" "pgpkey" }}
<link rel="{{ $relPgp }}" href="{{ .value }}">
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}