use text/markdown for posting the newswire

main
Ariadne Conill 2023-12-07 15:09:08 -07:00
parent f1fcb2ee1f
commit bececa8669
2 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,9 @@ pipeline:
# if the newswire has changed, publish the new one. # if the newswire has changed, publish the new one.
- | - |
cmp oldnewswire.txt public/newswire.txt || \ cmp oldnewswire.txt public/newswire.txt || \
curl -s -H "Authorization: Bearer $MASTODON_SECRET" -F "status=$(cat public/newswire.txt)" \ curl -s -H "Authorization: Bearer $MASTODON_SECRET" \
-F "status=$(cat public/newswire.txt)" \
-F "content_type=text/markdown" \
https://social.treehouse.systems/api/v1/statuses https://social.treehouse.systems/api/v1/statuses
secrets: [SSH_KEY, SSH_KNOWN_HOSTS, MASTODON_SECRET] secrets: [SSH_KEY, SSH_KNOWN_HOSTS, MASTODON_SECRET]

View File

@ -1,5 +1,7 @@
{{- range first 1 (where .Site.RegularPages "Section" "blog") -}} {{- range first 1 (where .Site.RegularPages "Section" "blog") -}}
{{ .Title }} {{ .Title }}:
> {{ .Summary }}
{{ .Permalink }} {{ .Permalink }}
{{- end -}} {{- end -}}