diff --git a/hugo.toml b/hugo.toml index 7a264db6bb22f421ce1d2cda7453ae700f103668..d05bcfbc17a647aeb89dd99f6432cfcbb8e4ba97 100644 --- a/hugo.toml +++ b/hugo.toml @@ -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"] diff --git a/layouts/index.activity_outbox.ajson b/layouts/index.activity_outbox.ajson index 0381a4261789f810cb7ceef1cebeca4d9cc918ff..7ffc6c5ddf65157fff429724a8e0ea844885fa07 100644 --- a/layouts/index.activity_outbox.ajson +++ b/layouts/index.activity_outbox.ajson @@ -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 }} } }