Compare commits

...

3 commits

3 changed files with 14 additions and 1 deletions

View file

@ -29,6 +29,8 @@ jobs:
uses: actions/checkout@v4
- name: Gempost build
run: gempost build
- name: Generate web feed
run: ./generate-web-feed.sh
- name: Connect to Tailscale
uses: tailscale/github-action@v2
with:

10
generate-web-feed.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -eu
INFEED="public/gemlog/atom.xml"
OUTFEED="public/gemlog/atom-web.xml"
# read INFILE, replace gemini:// with https:// and write to OUTFILE
sed 's/gemini:\/\//https:\/\//g' $INFEED > $OUTFEED
# fix self url
sed -i 's/atom\.xml/atom-web\.xml/g' $OUTFEED

View file

@ -14,7 +14,8 @@
{% endfor %}
─────
=> {{ feed.feed_url }} [atom feed]
=> {{ feed.feed_url }} [gemini feed]
=> atom-web.xml [web feed]
=> {{ feed.capsule_url }} [home]
{% if feed.rights -%}