From bececa866999dcfb61551b84ff2b820dc7b3e7d4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 7 Dec 2023 15:09:08 -0700 Subject: [PATCH] use text/markdown for posting the newswire --- .woodpecker.yml | 4 +++- layouts/_default/list.newswire.txt | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6374d88..4e357fb 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -26,7 +26,9 @@ pipeline: # if the newswire has changed, publish the new one. - | 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 secrets: [SSH_KEY, SSH_KNOWN_HOSTS, MASTODON_SECRET] diff --git a/layouts/_default/list.newswire.txt b/layouts/_default/list.newswire.txt index c53143c..d3e9a5b 100644 --- a/layouts/_default/list.newswire.txt +++ b/layouts/_default/list.newswire.txt @@ -1,5 +1,7 @@ {{- range first 1 (where .Site.RegularPages "Section" "blog") -}} -{{ .Title }} +{{ .Title }}: + +> {{ .Summary }} {{ .Permalink }} {{- end -}}