From 36d52f1486fabee61b20387e35f66bc8e76751ea Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Wed, 10 May 2023 12:55:55 +0100 Subject: [PATCH] Fix social.lol link, add webfinger path Mastodon needs social.lol link to be in html rather than generated by JavaScript Webfinger static path should allow discovery --- layouts/index.html | 2 +- static/.well-known/webfinger | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 static/.well-known/webfinger diff --git a/layouts/index.html b/layouts/index.html index 4ada6c6..1a99926 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -51,5 +51,5 @@ {{ $commandDelay := $.Site.Params.Terminal.commandDelay }} {{ partial "partials/typeIndex.html" (dict "context" . "env" $env "cd" $cd "envWithDir" $envWithDir "cat" $cat "description" $description "tree" $tree "leaf" $leaf "ps1delay" $ps1Delay "stdoutdelay" $stdoutDelay "commanddelay" $commandDelay ) }} - +
{{ end }} diff --git a/static/.well-known/webfinger b/static/.well-known/webfinger new file mode 100644 index 0000000..3abeea5 --- /dev/null +++ b/static/.well-known/webfinger @@ -0,0 +1,23 @@ +{ + "subject": "acct:8bit@social.lol", + "aliases": [ + "https:/social.lol/@8bit", + "https:/social.lol/users/8bit" + ], + "links": [ + { + "rel": "http://webfinger.net/rel/profile-page", + "type": "text/html", + "href": "https:/social.lol/@8bit" + }, + { + "rel": "self", + "type": "application/activity+json", + "href": "https:/social.lol/users/8bit" + }, + { + "rel": "http://ostatus.org/schema/1.0/subscribe", + "template": "https:/social.lol/authorize_interaction?uri={uri}" + } + ] +} \ No newline at end of file