WellKnown: Add webfinger entry for mastodon
As shown by this excellent article: https://blog.maartenballiauw.be/post/2022/11/05/mastodon-own-donain-without-hosting-server.html
This commit is contained in:
parent
608caa6b20
commit
b1914b3815
2 changed files with 59 additions and 0 deletions
23
public/.well-known/webfinger
Normal file
23
public/.well-known/webfinger
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"subject": "acct:networkexception@chaos.social",
|
||||
"aliases": [
|
||||
"https://chaos.social/@networkexception",
|
||||
"https://chaos.social/users/networkexception"
|
||||
],
|
||||
"links": [
|
||||
{
|
||||
"rel": "http://webfinger.net/rel/profile-page",
|
||||
"type": "text/html",
|
||||
"href": "https://chaos.social/@networkexception"
|
||||
},
|
||||
{
|
||||
"rel": "self",
|
||||
"type": "application/activity+json",
|
||||
"href": "https://chaos.social/users/networkexception"
|
||||
},
|
||||
{
|
||||
"rel": "http://ostatus.org/schema/1.0/subscribe",
|
||||
"template": "https://chaos.social/authorize_interaction?uri={uri}"
|
||||
}
|
||||
]
|
||||
}
|
36
public/blog.html
Normal file
36
public/blog.html
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="icon" href="favicon.png" type="image/png">
|
||||
<link rel="stylesheet" href="style/index.css">
|
||||
<title>nwex.de/blog</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>blog</h1>
|
||||
<h2>Random things that interest me</h2>
|
||||
|
||||
<h3>2022</h3>
|
||||
<ul>
|
||||
<li>2022-02-04 <a href="/blog/nodejs-fetch.md">node.js fetch api support</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- Inner workings of the page -->
|
||||
|
||||
<script type="module">
|
||||
import { tokenize, normalizeNewlines, highlight } from './script/html.js';
|
||||
import { render } from './script/view.js';
|
||||
import { Inspector } from './script/html/inspector.js';
|
||||
|
||||
const response = await fetch(window.location.href);
|
||||
const text = await response.text();
|
||||
|
||||
window.tokens = tokenize(normalizeNewlines(text));
|
||||
window.spans = highlight(tokens);
|
||||
|
||||
const inspector = new Inspector();
|
||||
|
||||
render(text, spans, inspector);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in a new issue