Skip to content
Snippets Groups Projects
Verified Commit fc8f4c1d authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Added invisible tags

parent ded14ae1
No related branches found
No related tags found
No related merge requests found
Pipeline #1974 passed
...@@ -28,3 +28,4 @@ secondaryApUser="FLEAR" ...@@ -28,3 +28,4 @@ secondaryApUser="FLEAR"
repoUrl="https://git.qoto.org/flear" repoUrl="https://git.qoto.org/flear"
siteRepoUrl="https://git.qoto.org/flear/flear-site" siteRepoUrl="https://git.qoto.org/flear/flear-site"
siteEmail="flear@flear.org" siteEmail="flear@flear.org"
postHashtags=["HamRadio", "AmateurRadio", "Ham", "RF", "ElectricalEngineering", "EE"]
...@@ -32,6 +32,18 @@ ...@@ -32,6 +32,18 @@
"url": "{{.Permalink}}", "url": "{{.Permalink}}",
"attributedTo": "{{ .Site.BaseURL }}{{ site.Params.apUser | lower}}", "attributedTo": "{{ .Site.BaseURL }}{{ site.Params.apUser | lower}}",
"to": "https://www.w3.org/ns/activitystreams#Public", "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 }} "published": {{ dateFormat "2006-01-02T15:04:05-07:00" .Date | jsonify }}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment