From 5c5cd5d788fcf131053f480db178fe3d90dee25a Mon Sep 17 00:00:00 2001 From: kisik21 Date: Sat, 10 Nov 2018 21:58:21 +0300 Subject: [PATCH 1/4] Added more endpoint choices to head.html --- layouts/partials/head.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b02bdf6..2d233a4 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -18,9 +18,12 @@ {{ with .Site.Params.IndieWeb.TwitterUser }}{{ end }} {{ with .Site.Params.IndieWeb.MicroBlogUser }}{{ end }} - + {{ with .Site.Params.Endpoints.Auth }}{{ end }} + {{ with .Site.Params.Endpoints.Webmention }}{{ end }} + {{ with .Site.Params.Endpoints.Microsub }}{{ end }} + {{ with .Site.Params.Endpoints.Micropub }}{{ end }} - \ No newline at end of file + From e168672487b78bef5070cc0eb70bc5d4e748c707 Mon Sep 17 00:00:00 2001 From: kisik21 Date: Sat, 10 Nov 2018 22:03:40 +0300 Subject: [PATCH 2/4] Add configuration for endpoints. --- config.toml.example | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.toml.example b/config.toml.example index 5e9e402..a917e53 100644 --- a/config.toml.example +++ b/config.toml.example @@ -39,3 +39,13 @@ theme = "indigo" MicroBlogUser = "MicroBlogUserName" Country = "CountryName" City = "CityName" + [params.endpoints] + Auth = "https://indieauth.com/auth" + # 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 = "" From b07b8c0b48209670c02751871def7bc42f3d07da Mon Sep 17 00:00:00 2001 From: kisik21 Date: Sat, 10 Nov 2018 22:17:20 +0300 Subject: [PATCH 3/4] Added a comment section (needs jQuery's $.getJson) This thing needs jQuery. Probably can be simplified to not include it. --- layouts/_default/single.html | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 6892d74..a225ab6 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -27,6 +27,28 @@

{{ .Title }}

{{ .Content }}
+ +
+

Have you published a response to this? :

+ + + +
+