From b15facc5023c410dae9fe76afde85a4714892322 Mon Sep 17 00:00:00 2001 From: Josh Kasuboski Date: Wed, 15 Jan 2020 19:57:08 -0600 Subject: Adds IndieWeb endpoints #73 --- config.toml.example | 12 ++++++++++++ layouts/partials/head.html | 11 +++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/config.toml.example b/config.toml.example index 7d4cac3..421e67d 100644 --- a/config.toml.example +++ b/config.toml.example @@ -40,3 +40,15 @@ theme = "indigo" MicroBlogUser = "MicroBlogUserName" Country = "CountryName" City = "CityName" + + [params.endpoints] + Auth = "https://indieauth.com/auth" + Token = "https://tokens.indieauth.com/token" + # To get webmention support, just register at webmention.io and paste the link for endpoint here. + #Webmention = "https://webmention.io//webmention" + # To get micropub support, you'll need to install a Micropub endpoint at your site and put its link there. + # To get an endpoint with Hugo support, use nanopub: https://github.com/dg01d/nanopub + # It will probably require some PHP hackery though, as it's fairly basic. + #Micropub = "" + # To get microsub support, you can use Aperture from p3k. Either go to https://aperture.p3k.io or self-host it (it's open source!) + #Microsub = "" \ No newline at end of file diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 60cfd32..7c07bcd 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -17,8 +17,15 @@ {{ with .Site.Params.IndieWeb.GitHubUser }}{{ end }} {{ with .Site.Params.IndieWeb.TwitterUser }}{{ end }} {{ with .Site.Params.IndieWeb.MicroBlogUser }}{{ end }} - - + + + + {{ with .Site.Params.endpoints.Micropub }} + {{ end }} + {{ with .Site.Params.endpoints.Microsub }} + {{ end }} + {{ with .Site.Params.endpoints.Webmention}} + {{ end }} -- cgit v1.2.3