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" 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 ## Theme Organization
### Semantic Content Organization ### Semantic Content Organization

View File

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

View File

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