mirror of
https://github.com/jbowdre/capsule.git
synced 2024-11-26 22:52:17 +00:00
Compare commits
3 commits
e2bdb746c7
...
800aee5063
Author | SHA1 | Date | |
---|---|---|---|
800aee5063 | |||
db4799d859 | |||
131014e2cf |
3 changed files with 14 additions and 1 deletions
2
.github/workflows/deploy-gemini.yml
vendored
2
.github/workflows/deploy-gemini.yml
vendored
|
@ -29,6 +29,8 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Gempost build
|
- name: Gempost build
|
||||||
run: gempost build
|
run: gempost build
|
||||||
|
- name: Generate web feed
|
||||||
|
run: ./generate-web-feed.sh
|
||||||
- name: Connect to Tailscale
|
- name: Connect to Tailscale
|
||||||
uses: tailscale/github-action@v2
|
uses: tailscale/github-action@v2
|
||||||
with:
|
with:
|
||||||
|
|
10
generate-web-feed.sh
Executable file
10
generate-web-feed.sh
Executable 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
|
|
@ -14,7 +14,8 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
─────
|
─────
|
||||||
|
|
||||||
=> {{ feed.feed_url }} [atom feed]
|
=> {{ feed.feed_url }} [gemini feed]
|
||||||
|
=> atom-web.xml [web feed]
|
||||||
=> {{ feed.capsule_url }} [home]
|
=> {{ feed.capsule_url }} [home]
|
||||||
|
|
||||||
{% if feed.rights -%}
|
{% if feed.rights -%}
|
||||||
|
|
Loading…
Reference in a new issue