about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-09 22:09:36 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-01-09 22:14:05 +0700
commite7bbdf42812fbbd5af646f69e5f220b9b04966ba (patch)
tree8552ef44ef6a457ee5fb2227928c3c3698e17366
parent9fd639eff5e47e8e15776f1974f0fcb9337b12f6 (diff)
downloadsite-e7bbdf42812fbbd5af646f69e5f220b9b04966ba.tar.gz
Migrate to now fediring format
-rw-r--r--.builds/auto.yml7
-rw-r--r--config.md1
2 files changed, 3 insertions, 5 deletions
diff --git a/.builds/auto.yml b/.builds/auto.yml
index 34756e1..e0ac326 100644
--- a/.builds/auto.yml
+++ b/.builds/auto.yml
@@ -1,18 +1,17 @@
 image: nixos/unstable
 oauth: lists.sr.ht/EMAILS:RO pages.sr.ht/PAGES:RW
 packages:
-  - nixos.jq
   - nixos.openring
   - nixos.python3
 sources:
+  - https://git.sr.ht/~amolith/fediring.net
   - https://git.sr.ht/~cnx/site
 environment:
   NODE: node
 tasks:
   - inject: |
-      curl https://fediring.net/ring.json |
-        jq -r 'map(.host)|until(.[0]=="cnx.srht.site";.[1:]+.[:1])|.[-1,1]'\
-        > site/_libs/fediring
+      grep -C1 cnx.srht.site fediring.net/webring.txt |
+        awk 'NR % 2 { print $2 }' > site/_libs/fediring
       openring -n 4 -l 192 -S site/_libs/openring/sources\
         < site/_libs/openring/in.html > site/_libs/openring/out.html
       acurl https://lists.sr.ht/query/list/5261.mbox -o site/_libs/formbox/mbox
diff --git a/config.md b/config.md
index 60ef4fe..615c2b2 100644
--- a/config.md
+++ b/config.md
@@ -4,7 +4,6 @@ website_title = "Web logs by McSinyx"
 website_description = "Random write-ups packed with pop culture references"
 copyright = "🄯 2019–2022 " * author
 website_url = "https://cnx.srht.site"
-website_url = "http://localhost:8000"
 date_format = "yyyy-mm-dd"
 mintoclevel = 2
 generate_rss = true