[HN Gopher] Shell Script RSS Publishing
___________________________________________________________________
Shell Script RSS Publishing
Author : Fred34
Score : 35 points
Date : 2023-07-16 19:00 UTC (3 hours ago)
(HTM) web link (shinobi.bt.ht)
(TXT) w3m dump (shinobi.bt.ht)
| adriangrigore wrote:
| Shameless plug: shell script static site generator
| https://mkws.sh/
| hkt wrote:
| I love it. I've wanted something like this ever since
| nanoblogger died. Cheers.
| adriangrigore wrote:
| Thanks! Check out the themes also: https://t.mkws.sh/
|
| You can replace the bin/mkws script with a Plan9 mk file to
| get incremental builds:
| #!/usr/local/plan9/bin/mk -f URL=//example.com
| SHARE=share LANG=en_US.UTF-8
| THEMEFILES=$SHARE/l.upphtml\ $SHARE/s.uppcss\
| TPLFILES=`{find . ! -name "l.upphtml" -name "*.upphtml" | cut
| -c3-} HTMLFILES=${TPLFILES:%.upphtml=%.html}
| $URL:V: sitemap.xml $HTMLFILES %.html:Q: %.upphtml
| $THEMEFILES >&2 echo Making $target
| pp $SHARE/l.upphtml ${target%.html}.upphtml $url > $target
| sitemap.xml:Q: $HTMLFILES $SHARE/sitemap.uppxml
| >&2 echo Making $target pp
| $SHARE/sitemap.uppxml $url > $target clean:VQ:
| Removing "$HTMLFILES" sitemap.xml rm -f
| $HTMLFILES sitemap.xml
|
| It's drop in!
| kazinator wrote:
| RSS is just an XML document; you can generate it and serve it
| with CGI using language.
| giantrobot wrote:
| It's telling the the landing page is actually HTML so links
| fucking work. If you want to go super minimal with "plain text",
| which has a variety of meanings, go ahead. Minimalism is fine. I
| just find the "plain text" fetishism silly.
|
| The web won out over FTP and Gopher because _documents_ could
| link to others for reference. Those systems could only link
| through menus (if at all).
|
| HTML is actually pretty awesome. If you want minimal HTML just
| make minimum HTML. You don't need JavaScript or CSS. You can
| include a single meta tag with a viewport directive and get a
| magically responsive page perfectly readable between desktop and
| mobile without having hard line breaks.
|
| Plain text on the web sucks. If the browser gets a header of
| "Content-Type: text/plain" what's the encoding? Good luck
| figuring it out. While ISO-8859-1 is defined as the default for
| text/plain I really hope you don't use any high ASCII characters
| or a European keyboard. A lot of web servers won't automatically
| add a charset to the content type. With HTML you can define the
| document's charset in the header of the document itself. Plain
| text also has no semantic elements so the browser can't make good
| formatting decisions in absence of explicit formatting
| instructions.
| marginalia_nu wrote:
| I think hypertext is probably one of the most underappreciated
| technological advancements. You can do some incredibly cool
| things if you really lean into it.
|
| Ted Nelson was right all along.
| Fred34 wrote:
| You are right that we should not got back from html. I find
| .txt file publishing interesting anyhow because the files can
| be rendered in everything. A .txt file can be viewed in a
| browser, rss reader, any text editor, in the terminal, etc.
| .With a html document you are limiting yourself to viewing the
| information in a browser or an email/rss client the supports
| html rendering. There is more redundancy with publishing
| through .txt files
___________________________________________________________________
(page generated 2023-07-16 23:00 UTC)