Compare commits

..

No commits in common. "09353cd937d609e4f3964ba5de31ef9236bd2004" and "1d6a5bb0c9df7611935aaa38a6c2606de2654467" have entirely different histories.

4 changed files with 1 additions and 54 deletions

View File

@ -207,7 +207,3 @@ 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

View File

@ -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 = "semantic-indieweb" theme = "basic-theme"
paginate = 5 paginate = 5
[permalinks] [permalinks]
@ -11,34 +11,3 @@ 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

View File

@ -4,7 +4,6 @@
<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>

View File

@ -1,17 +0,0 @@
{{- 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 -}}