From fc7dddfae65a821b703d5af7d9562183a6187bcd Mon Sep 17 00:00:00 2001 From: "Kevin C. Coram" Date: Mon, 2 Dec 2019 22:57:55 -0500 Subject: [PATCH] Add IndieWeb Identity partial to --- layouts/_default/baseof.html | 1 + layouts/partials/identity.html | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 layouts/partials/identity.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index b10ca8b..878c04a 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -4,6 +4,7 @@ + {{- partial "identity.html" . }} {{- block "title" . -}} {{ .Site.Title }} {{- end -}} diff --git a/layouts/partials/identity.html b/layouts/partials/identity.html new file mode 100644 index 0000000..b0e33c6 --- /dev/null +++ b/layouts/partials/identity.html @@ -0,0 +1,16 @@ +{{- range .Site.Params.Identity -}} +{{- $relMe := cond .authn "me authn" "me" -}} +{{- if (eq .type "Email") }} + +{{- else if (eq .type "GitHub") }} + +{{- else if (eq .type "GitLab") }} + +{{- else if (eq .type "Twitter") }} + +{{- else if (eq .type "MicroBlog") }} + +{{- else if (eq .type "PGP") }} + +{{- end -}} +{{- end -}} \ No newline at end of file