💾 Archived View for lyk.so › feed.atom.sh captured on 2023-07-22 at 17:51:06.
⬅️ Previous capture (2022-07-16)
-=-=-=-=-=-=-
#!/usr/bin/env sh entries() { ls -r gemlog/???-*.gmi | while read entry; do updated="$(date -uIminutes -d"@$(stat --printf='%W' $entry)")" cat <<EOF <entry> <title>$(head -n1 $entry | cut -c3-)</title> <id>gemini://lyk.so/$entry</id> <link href="gemini://lyk.so/$entry" /> <updated>$(echo $updated)</updated> </entry> EOF done } cat <<EOF <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom"> <title>lyk.so</title> <link href="gemini://lyk.so/feed.atom" rel="self" /> <link href="gemini://lyk.so/" /> <id>gemini://lyk.so/</id> <author> <name>Lykso</name> <email>atom@lyk.so</email> </author> <updated>$(date -u -Iminutes)</updated> $(entries) </feed> EOF