Add support for webmentions and pingbacks

master
Kevin C. Coram 2019-12-23 16:22:18 -05:00
parent 462627349b
commit cd911f24b1
Signed by: kevin
GPG Key ID: 0342351B3D61AD35
3 changed files with 22 additions and 0 deletions

View File

@ -152,6 +152,18 @@ links and PGP key file links with the PGP fingerprint as a toolip:
icon = "fa fa-key"
```
### Configuring Webmentions
[Webmention](https://www.w3.org/TR/webmention/) and/or
[Pingback](http://www.hixie.ch/specs/pingback/pingback) support can easily be
configured by including the endpoint URL:
```toml
[params]
Webmention = "https://example.org/webmention"
Pingback = "https://example.org/pingpack"
```
## Theme Organization
### Semantic Content Organization

View File

@ -13,6 +13,8 @@ paginate = 5
builtWith = "Built with [Hugo](https://gohugo.io/)"
homepageSectionTitle = "What's New"
mainSections = [ "posts" ]
Webmention = "https://example.org/webmention"
Pingback = "https://example.org/pingpack"
# Configuration Parameters for IndieWeb h-card
[params.Card]

View File

@ -1,3 +1,4 @@
<!-- Rel=Me Identity Links -->
{{- range .Site.Params.Identity -}}
{{- $relMe := cond .authn "me authn" "me" -}}
{{- if (eq .type "Email") }}
@ -15,3 +16,10 @@
<link rel="{{ $relPgp }}" href="{{ .value }}">
{{- end -}}
{{- end -}}
<!-- Webmention Links -->
{{- with .Site.Params.Webmention }}
<link rel="webmention" href="{{ . }}">
{{- end }}
{{- with .Site.Params.Pingback }}
<link rel="pingback" href="{{ . }}">
{{- end }}