generate alternative feed.xml for https

This commit is contained in:
John Bowdre 2024-03-15 10:43:24 -05:00
parent e2bdb746c7
commit 131014e2cf
3 changed files with 12 additions and 1 deletions

View file

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

8
generate-https-feed.sh Executable file
View file

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

View file

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