From db4799d8598612afbaba1527754b13e7e7af4aa5 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Fri, 15 Mar 2024 10:49:01 -0500 Subject: [PATCH] rename web feed, fix self url --- .github/workflows/deploy-gemini.yml | 4 ++-- generate-https-feed.sh => generate-web-feed.sh | 4 +++- templates/index.tera | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) rename generate-https-feed.sh => generate-web-feed.sh (64%) diff --git a/.github/workflows/deploy-gemini.yml b/.github/workflows/deploy-gemini.yml index 91064ff..a6e0b5d 100644 --- a/.github/workflows/deploy-gemini.yml +++ b/.github/workflows/deploy-gemini.yml @@ -29,8 +29,8 @@ jobs: uses: actions/checkout@v4 - name: Gempost build run: gempost build - - name: Generate https feed - run: ./generate-https-feed.sh + - name: Generate web feed + run: ./generate-web-feed.sh - name: Connect to Tailscale uses: tailscale/github-action@v2 with: diff --git a/generate-https-feed.sh b/generate-web-feed.sh similarity index 64% rename from generate-https-feed.sh rename to generate-web-feed.sh index 52979ae..ea317ed 100755 --- a/generate-https-feed.sh +++ b/generate-web-feed.sh @@ -2,7 +2,9 @@ set -eu INFEED="public/gemlog/atom.xml" -OUTFEED="public/gemlog/atom-https.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-https\.xml/g' $OUTFEED \ No newline at end of file diff --git a/templates/index.tera b/templates/index.tera index 799ca67..75a5b16 100644 --- a/templates/index.tera +++ b/templates/index.tera @@ -15,7 +15,7 @@ ───── => {{ feed.feed_url }} [gemini feed] -=> atom-https.xml [https feed] +=> atom-web.xml [web feed] => {{ feed.capsule_url }} [home] {% if feed.rights -%}