diff options
author | Josh Kasuboski <josh.kasuboski@gmail.com> | 2020-01-16 04:57:08 +0300 |
---|---|---|
committer | Josh Kasuboski <josh.kasuboski@gmail.com> | 2020-01-16 04:57:08 +0300 |
commit | b15facc5023c410dae9fe76afde85a4714892322 (patch) | |
tree | 48843260dee570c23ed6cc6418fae677dd07e9c7 | |
parent | 58177f2d69664e6d7c0eccebf9fc5bdc8ba63193 (diff) |
Adds IndieWeb endpoints #73
-rw-r--r-- | config.toml.example | 12 | ||||
-rw-r--r-- | 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/<yourusername>/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 }}<link rel="me" href="https://github.com/{{ . }}">{{ end }} {{ with .Site.Params.IndieWeb.TwitterUser }}<link rel="me" href="https://twitter.com/{{ . }}">{{ end }} {{ with .Site.Params.IndieWeb.MicroBlogUser }}<link rel="me" href="https://micro.blog/{{ . }}">{{ end }} - <!-- IndieAuth endpoint --> - <link rel="authorization_endpoint" href="https://indieauth.com/auth"> + <!-- IndieWeb endpoints --> + <link rel="authorization_endpoint" href={{ .Site.Params.endpoints.Auth | default "https://indieauth.com/auth" }} /> + <link rel="token_endpoint" href={{ .Site.Params.endpoints.Token | default "https://tokens.indieauth.com/token" }} /> + {{ with .Site.Params.endpoints.Micropub }} + <link rel="micropub" href="{{ . }}" />{{ end }} + {{ with .Site.Params.endpoints.Microsub }} + <link rel="microsub" href="{{ . }}" />{{ end }} + {{ with .Site.Params.endpoints.Webmention}} + <link rel="webmention" href="{{ . }}" />{{ end }} <!-- Other stuff to make the site work --> <link rel="stylesheet" href={{ "css/fonts.css" | absURL }} /> <link rel="stylesheet" href={{ "css/style.css" | absURL }} /> |