use text/markdown for posting the newswire
parent
f1fcb2ee1f
commit
bececa8669
|
@ -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]
|
||||||
|
|
|
@ -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 -}}
|
||||||
|
|
Loading…
Reference in New Issue