1
Fork 0
This repository has been archived on 2020-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
hugo-activitystreams/layouts/_default/home.activity.ajson

33 lines
1.0 KiB
Plaintext

{
"@context": [
"https://www.w3.org/ns/activitystreams"
],
"id": "{{ "" | absLangURL }}",
"type": "Person",
"name": {{ .Site.Title | jsonify }},
"summary": {{ .Site.Params.description | jsonify }},
"attachment": [
{
"type": "PropertyValue",
"name": "Blog",
"value": "<a rel=\"me\" target=\"_blank\" href=\"{{ "" | absLangURL }}\">{{ strings.TrimSuffix "/" (strings.TrimPrefix "https://" (strings.TrimPrefix "http://" ("" | absLangURL))) }}</a>"
}
],
"preferredUsername": "{{ .Site.Language.Lang }}"
{{ with .Site.Author.avatar -}}
,"icon": {
"type": "Image",
"url": "{{ . | absURL }}"
}
{{- end }}
{{ with .Site.Params.activitypub.inbox -}}
,"inbox": "{{ . }}"
{{- end }}
{{ with .Site.Params.activitypub.publickeypem -}}
,"publicKey": {
"id": "{{ "" | absLangURL }}#main-key",
"owner": "{{ "" | absLangURL }}",
"publicKeyPem": "{{ . }}"
}
{{- end }}
}