An easy Jekyll plugin for adding Webfinger support to your domain.
Note: This won't work with Github Pages, which doesn't allow plugins, unless you're building your site yourself and then committing the rendered pages directly.
It's a way to attach information to your email address.
Take an email address, and ask its domain about it using HTTPS. For example, information about [email protected]
is available in JSON at:
https://konklone.com/.well-known/webfinger?resource=acct:[email protected]
See webfinger.net, Paul E. Jones' description, or Webfinger's official standard at RFC 7033 for more information.
Create a _plugins
folder in your project if it doesn't exist, and place webfinger_generator.rb
into it.
Then, create a _webfinger.yml
in the root of your project, that looks something like this:
[email protected]:
name: Eric Mill
website: https://konklone.com
When your Jekyll site is built, it will create a URL at /.well-known/webfinger
that returns:
{
"subject": "[email protected]",
"properties": {
"http://schema.org/name": "Eric Mill"
},
"links": [
{
"rel": "http://webfinger.net/rel/profile-page",
"href": "https://konklone.com"
}
]
}
The response will actually be compact (not indented, like the above example).
http://
), be prepared for most Webfinger clients to not find your data.Content-Type
to application/jrd+json
for /.well-known/webfinger
. If you don't, it will probably be set to application/octet-stream
, which is in violation of the spec (though most clients will probably still parse it fine).jekyll-webfinger
if you build the site yourself.This project is published under the MIT License.