diff options
author | Angelo Stavrow <contact@angelostavrow.com> | 2020-01-23 13:05:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 13:05:43 +0300 |
commit | f161ceae5c9a2629d537fd2b9eb37abafae8d77c (patch) | |
tree | 29c634e1069408604c18f7036f8d08f7062570d9 | |
parent | 58177f2d69664e6d7c0eccebf9fc5bdc8ba63193 (diff) | |
parent | 682952786a8328cf8d52b74374f6295289c4f0e3 (diff) |
Merge pull request #74 from kasuboski/master
Specify IndieWeb endpoints
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | config.toml.example | 12 | ||||
-rw-r--r-- | layouts/partials/head.html | 11 |
3 files changed, 24 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index d3a46cc..61d7c25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -<!-- ## [Unreleased] --> +## [Unreleased] +### Added +- Added entrypoints config section as described in [#73](https://github.com/AngeloStavrow/indigo/issues/73) ## [1.3.2] - 2019-10-17 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 }} /> |