IndieAuth and Micropub endpoint support

master
Kevin C. Coram 2020-01-04 17:30:00 -05:00
parent e6255da64e
commit 509262ad4a
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
2 changed files with 16 additions and 0 deletions

View File

@ -15,6 +15,11 @@ paginate = 5
mainSections = [ "posts" ]
Webmention = "https://example.org/webmention"
Pingback = "https://example.org/pingpack"
Micropub = "https://example.org/micropub"
[params.IndieAuth]
Authorization = "https://example.org/auth"
Token = "https://example.org/token"
# Configuration Parameters for IndieWeb h-card
[params.Card]

View File

@ -22,4 +22,15 @@
{{- end }}
{{- with .Site.Params.Pingback }}
<link rel="pingback" href="{{ . }}">
{{- 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="{{ . }}">
{{- end }}