From fc8f4c1da99ffa75c8942acc7f00434d3f9e1e44 Mon Sep 17 00:00:00 2001 From: Jeffrey Phillips Freeman <the@jeffreyfreeman.me> Date: Mon, 9 Oct 2023 14:30:17 -0400 Subject: [PATCH] Added invisible tags --- hugo.toml | 1 + layouts/index.activity_outbox.ajson | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/hugo.toml b/hugo.toml index 7a264db6b..d05bcfbc1 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 0381a4261..7ffc6c5dd 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 }} } } -- GitLab