Add support for webmentions and pingbacks
parent
462627349b
commit
cd911f24b1
12
README.md
12
README.md
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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 }}
|
Loading…
Reference in New Issue