alexkarle.com

Source for alexkarle.com
git clone git://git.alexkarle.com/alexkarle.com.git
Log | Files | Refs | README | LICENSE

010.txt (1064B) [raw]


      1 Adding a Feed to the Phlog
      2 --------------------------
      3 Wed Nov 17 00:21:20 EST 2021
      4 
      5 Quick entry to mark a new milestone for the phlog
      6 --an atom feed!
      7 
      8 This was a pretty simple adaptation of my genatom
      9 script originally described on the blog post
     10 use-feeds(7) [1]. It just parses index.gph for
     11 lines that have the [[Date] Title|path...] format
     12 and spits out the right XML.
     13 
     14 Potentially the most interesting decision here
     15 wasn't actually the crafting of the feed, but
     16 rather whether to serve the feed over Gopher
     17 exclusively or HTTP and Gopher.
     18 
     19 The argument for HTTP is that most feed
     20 reader clients can't handle gopher://--I know for
     21 sure newsboat doesn't. So by putting it on HTTP,
     22 it could at least be read by a wider audience...
     23 
     24 I ended up choosing to keep it gopher-only, since
     25 this is, after all, "gopher exclusive content" :)
     26 I'll find or build a feed reader that can handle
     27 it!
     28 
     29 The source for the gophatom.sh generator can be
     30 found in the "code" section of this gopherhole [2]
     31 
     32 [1]: https://alexkarle.com/use-feeds.html
     33 [2]: gopher://alexkarle.com/1/code