Compare commits
4 Commits
1d6a5bb0c9
...
09353cd937
Author | SHA1 | Date |
---|---|---|
Kevin C. Coram | 09353cd937 | |
Kevin C. Coram | fc7dddfae6 | |
Kevin C. Coram | 53396b9f16 | |
Kevin C. Coram | 6da0ae8cf9 |
|
@ -207,3 +207,7 @@ partial.
|
||||||
- [A Look Into Proper HTML5 Semantics](https://www.hongkiat.com/blog/html-5-semantics/amp/)
|
- [A Look Into Proper HTML5 Semantics](https://www.hongkiat.com/blog/html-5-semantics/amp/)
|
||||||
- [HTML5 Semantic Tags: What Are They & How To Use Them! - SEMrush](https://www.semrush.com/blog/semantic-html5-guide/)
|
- [HTML5 Semantic Tags: What Are They & How To Use Them! - SEMrush](https://www.semrush.com/blog/semantic-html5-guide/)
|
||||||
|
|
||||||
|
## Acknowledgements
|
||||||
|
|
||||||
|
- [Indigo Theme](https://github.com/AngeloStavrow/indigo)
|
||||||
|
- Inspiration for implementation of IndieWeb Identity hooks
|
|
@ -2,7 +2,7 @@ baseURL = "http://example.org/"
|
||||||
languageCode = "en-us"
|
languageCode = "en-us"
|
||||||
title = "Basic Hugo Theme"
|
title = "Basic Hugo Theme"
|
||||||
copyright = "Copyright © 2019, Copyright Owner Name | Built with [Hugo](https://gohugo.io/)"
|
copyright = "Copyright © 2019, Copyright Owner Name | Built with [Hugo](https://gohugo.io/)"
|
||||||
theme = "basic-theme"
|
theme = "semantic-indieweb"
|
||||||
paginate = 5
|
paginate = 5
|
||||||
|
|
||||||
[permalinks]
|
[permalinks]
|
||||||
|
@ -11,3 +11,34 @@ paginate = 5
|
||||||
[params]
|
[params]
|
||||||
subtitle = "A theme with no CSS and only basic layouts"
|
subtitle = "A theme with no CSS and only basic layouts"
|
||||||
mainSections = [ "posts" ]
|
mainSections = [ "posts" ]
|
||||||
|
|
||||||
|
# Configuration Parameters for IndieWeb Identity
|
||||||
|
[[params.Identity]]
|
||||||
|
type = "Email"
|
||||||
|
value = "email.address@example.com"
|
||||||
|
authn = false
|
||||||
|
|
||||||
|
[[params.Identity]]
|
||||||
|
type = "GitHub"
|
||||||
|
value = "GitHubUserName"
|
||||||
|
authn = false
|
||||||
|
|
||||||
|
[[params.Identity]]
|
||||||
|
type = "GitLab"
|
||||||
|
value = "GitLabUserName"
|
||||||
|
authn = false
|
||||||
|
|
||||||
|
[[params.Identity]]
|
||||||
|
type = "Twitter"
|
||||||
|
value = "TwitterUserName"
|
||||||
|
authn = false
|
||||||
|
|
||||||
|
[[params.Identity]]
|
||||||
|
type = "MicroBlog"
|
||||||
|
value = "MicroBlogUserName"
|
||||||
|
authn = false
|
||||||
|
|
||||||
|
[[params.Identity]]
|
||||||
|
type = "PGP"
|
||||||
|
value = "pgp_key_file.txt"
|
||||||
|
authn = false
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
{{- partial "identity.html" . }}
|
||||||
<title>{{- block "title" . -}}
|
<title>{{- block "title" . -}}
|
||||||
{{ .Site.Title }}
|
{{ .Site.Title }}
|
||||||
{{- end -}}</title>
|
{{- end -}}</title>
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
{{- 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 -}}
|
Loading…
Reference in New Issue