Mastodon testing
This commit is contained in:
parent
50b600b519
commit
81fa0bbb36
6 changed files with 63 additions and 0 deletions
|
@ -7,3 +7,7 @@ trim_trailing_whitespace = true
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
|
[*.json]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
|
12
config.toml
12
config.toml
|
@ -11,3 +11,15 @@ language = "languages"
|
||||||
endLevel = 4
|
endLevel = 4
|
||||||
ordered = true
|
ordered = true
|
||||||
startLevel = 2
|
startLevel = 2
|
||||||
|
|
||||||
|
[mediaTypes."application/activitypub"]
|
||||||
|
suffixes = ["json"]
|
||||||
|
|
||||||
|
[outputs]
|
||||||
|
section = ["HTML", "ActivityPub"]
|
||||||
|
|
||||||
|
[outputFormats.ActivityPub]
|
||||||
|
baseName = "ActivityPub"
|
||||||
|
mediaType = "application/activitypub"
|
||||||
|
isPlainText = true
|
||||||
|
|
||||||
|
|
10
layouts/_default/section.activitypub.json
Normal file
10
layouts/_default/section.activitypub.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"posts": [
|
||||||
|
{{- range $i, $page := .Pages -}}
|
||||||
|
{{- if $i -}} , {{- end -}}
|
||||||
|
{
|
||||||
|
"title": {{ $page.Title | jsonify }}
|
||||||
|
}
|
||||||
|
{{- end -}}
|
||||||
|
]
|
||||||
|
}
|
4
static/.well-known/host-meta
Normal file
4
static/.well-known/host-meta
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<XRD xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
|
||||||
|
<Link rel="lrdd" template="https://mzhang.io/.well-known/webfinger?resource={uri}"/>
|
||||||
|
</XRD>
|
16
static/.well-known/webfinger
Normal file
16
static/.well-known/webfinger
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{
|
||||||
|
"subject": "acct:blogger@mzhang.io",
|
||||||
|
"aliases": [],
|
||||||
|
"links": [
|
||||||
|
{
|
||||||
|
"rel": "http://webfinger.net/rel/profile-page",
|
||||||
|
"type": "text/html",
|
||||||
|
"href": "https://mzhang.io"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"rel": "self",
|
||||||
|
"type": "application/activity+json",
|
||||||
|
"href": "https://mzhang.io/mastodon/user.json"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
17
static/mastodon/user.json
Normal file
17
static/mastodon/user.json
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{
|
||||||
|
"@context": [
|
||||||
|
"https://www.w3.org/ns/activitystreams"
|
||||||
|
],
|
||||||
|
"id": "https://mzhang.io/mastodon/user.json",
|
||||||
|
"type": "Person",
|
||||||
|
"outbox": "https://mzhang.io/posts/activitypub.json",
|
||||||
|
"name": "Michael Zhang",
|
||||||
|
"url": "https://mzhang.io",
|
||||||
|
"attachment": [
|
||||||
|
{
|
||||||
|
"type": "PropertyValue",
|
||||||
|
"name": "hellosu",
|
||||||
|
"value": "https://osu.ppy.sh/u/2688103"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in a new issue