diff options
-rw-r--r-- | src/working-on-memorial-day.ht | 14 | ||||
-rw-r--r-- | tmpl.feed.xml | 22 |
2 files changed, 26 insertions, 10 deletions
diff --git a/src/working-on-memorial-day.ht b/src/working-on-memorial-day.ht new file mode 100644 index 0000000..fb6951b --- /dev/null +++ b/src/working-on-memorial-day.ht | |||
@@ -0,0 +1,14 @@ | |||
1 | ;@@title: working on memorial day@@ | ||
2 | ;@@date: 2022-05-30@@ | ||
3 | |||
4 | It's Memorial Day in the U.S., which is a day when we Remember the Troops™ but like, really just barbeque and celebrate the beginning of summer. I'm working today because I'm taking the floating holiday we get tomorrow to move house a few miles away, to a bigger place with an extra bedroom and a nice porch. We're still renting, but probably will be for ... I don't know, ever? It is what it is. | ||
5 | |||
6 | That being said, I'm not being very productive on this Memorial Day. People up the product chain from me are bottlenecking, so I can't do so much until they unkink their hoses and let the water come down my way. I'm getting my one landing page about Premises Liability done, but that's about it. | ||
7 | |||
8 | Something I've been sketching about, and would rather be doing than working right now, is re-writing <code>ht.awk</code> to emit html, gemtext, <em>and</em> gophermap formats. Then, I figure I can just spit them all out at once and boom! Done with that business. | ||
9 | |||
10 | I spose later on that I should move | ||
11 | => gemini://gem.acdw.net my current gemini capsule | ||
12 | to acdw.casa, and set up a gopher server. I'd also like to do finger, where that protocol would also map to a /now page. These should all also be through the root domain, since they're all on different ports; I don't know how to do that in nginx but I can figure it out. | ||
13 | |||
14 | Well, this was a fun break from writing by .... writing. Back to work! | ||
diff --git a/tmpl.feed.xml b/tmpl.feed.xml index fc82a67..db40258 100644 --- a/tmpl.feed.xml +++ b/tmpl.feed.xml | |||
@@ -9,19 +9,21 @@ | |||
9 | <rights>Copyright (C) 2022 CC-BY-SA Case Duckworth</rights> | 9 | <rights>Copyright (C) 2022 CC-BY-SA Case Duckworth</rights> |
10 | <updated>$(date -u +%FT%TZ)</updated> | 10 | <updated>$(date -u +%FT%TZ)</updated> |
11 | 11 | ||
12 | $(cat .tmp/index-list | sort -r | while read line; do | 12 | $(sort -r .tmp/index-list | while read line; do |
13 | entry_date="$(echo "$line" | sed 's/.*<li><!-- \(.*\) -->.*/\1/')" | 13 | entry_date="$(echo "$line" | sed 's/.*<li><!-- \(.*\) -->.*/\1/')" |
14 | entry_title="$(echo "$line" | sed 's#.*<a href=".*">\(.*\)</a>.*#\1#')" | 14 | entry_title="$(echo "$line" | sed 's#.*<a href=".*">\(.*\)</a>.*#\1#')" |
15 | entry_html="$(echo "$line" | sed 's#.*<a href="\(.*\)">.*#\1#')" | 15 | entry_html="$(echo "$line" | sed 's#.*<a href="\(.*\)">.*#\1#')" |
16 | entry_url="https://acdw.casa/$entry_html" | 16 | entry_url="https://acdw.casa/$entry_html" |
17 | print "<entry>" | 17 | cat <<END_OF_ENTRY |
18 | print "<id>$entry_url</id>" | ||
19 | print "<link rel=\"alternate\" type=\"text/html\" href=\"$entry_url\" />" | ||
20 | print "<title>$entry_title</title>" | ||
21 | print "<updated>$entry_date</updated>" | ||
22 | print "<author><name>Case Duckworth</name></author>" | ||
23 | print "<content type=\"html\"><![CDATA[$(sed 1d "${entry_html%ml}.bod.txt")]]></content>" | ||
24 | print "</entry>" | ||
25 | done) | ||
26 | 18 | ||
19 | <entry> | ||
20 | <id>$entry_url</id> | ||
21 | <link rel="alternate" type="text/html" href="$entry_url" /> | ||
22 | <title>$entry_title</title> | ||
23 | <updated>$entry_date</updated> | ||
24 | <author><name>Case Duckworth</name></author> | ||
25 | <content type="html"><![CDATA[$(sed 1d "${entry_html%ml}.bod.txt")]]></content> | ||
26 | </entry> | ||
27 | END_OF_ENTRY | ||
28 | done) | ||
27 | </feed> | 29 | </feed> |