Added invisible tags

This commit is contained in:
Jeffrey Phillips Freeman 2023-10-09 14:30:17 -04:00
parent ded14ae11d
commit fc8f4c1da9
No known key found for this signature in database
GPG key ID: AD914585C9406B6A
2 changed files with 13 additions and 0 deletions

View file

@ -28,3 +28,4 @@ secondaryApUser="FLEAR"
repoUrl="https://git.qoto.org/flear"
siteRepoUrl="https://git.qoto.org/flear/flear-site"
siteEmail="flear@flear.org"
postHashtags=["HamRadio", "AmateurRadio", "Ham", "RF", "ElectricalEngineering", "EE"]

View file

@ -32,6 +32,18 @@
"url": "{{.Permalink}}",
"attributedTo": "{{ .Site.BaseURL }}{{ site.Params.apUser | lower}}",
"to": "https://www.w3.org/ns/activitystreams#Public",
{{ if .Site.Params.postHashtags }}
"tag": [
{{ range $indexTags, $elementTag := .Site.Params.postHashtags }}
{{ if ne $indexTags 0 }}, {{ end }}
{
"type": "Hashtag",
"href": "https://qoto.org/tags/{{ $elementTag }}",
"name": "#{{ $elementTag }}"
}
{{ end }}
],
{{ end }}
"published": {{ dateFormat "2006-01-02T15:04:05-07:00" .Date | jsonify }}
}
}