diff --git a/README.md b/README.md index 67d13ac..5ff5911 100644 --- a/README.md +++ b/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 diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 853e241..6b84303 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -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] diff --git a/layouts/partials/identity.html b/layouts/partials/identity.html index 15d7de8..23738fb 100644 --- a/layouts/partials/identity.html +++ b/layouts/partials/identity.html @@ -1,3 +1,4 @@ + {{- range .Site.Params.Identity -}} {{- $relMe := cond .authn "me authn" "me" -}} {{- if (eq .type "Email") }} @@ -15,3 +16,10 @@ {{- end -}} {{- end -}} + +{{- with .Site.Params.Webmention }} + +{{- end }} +{{- with .Site.Params.Pingback }} + +{{- end }} \ No newline at end of file