Skip to content

Commit

Permalink
Update feed to 'feed'
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper committed Jan 2, 2024
1 parent 0fd0b5b commit 5e7e569
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
run: |-
./gen.dt
cd blog
./gen-rss.dt
./gen-feed.dt
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
Expand Down
File renamed without changes.
File renamed without changes.
9 changes: 5 additions & 4 deletions blog/gen-rss.dt → blog/gen-feed.dt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"" join
] \fill def!

"https://so.dang.cool/blog/rss.xml" \rss-url:
"https://so.dang.cool/blog/feed.xml" \feed-url:
"https://so.dang.cool/blog" \blog-url:
"date --iso-8601=minute" exec lines first \updated-at:

Expand All @@ -25,11 +25,12 @@ sort rev
filename "." split first "-" split \deq 3 times unwords \title:
enq enq "-" join "T00:00:00-08:00" push "" join \published-at:

"rss-entry.xml.template" readf fill
"feed-entry.xml.template" readf fill
] map unlines
lines ["" eq? not] filter
unlines \entries:

"rss.xml.template" readf
"feed.xml.template" readf
fill
"rss.xml" writef

"feed.xml" writef
2 changes: 1 addition & 1 deletion site.html.template
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<p>2023, J.R. Hill</p>
<p>
<a href='https://so.dang.cool/blog/'>Blog</a> |
<a href='https://so.dang.cool/blog/rss.xml'>RSS feed</a>
<a href='https://so.dang.cool/blog/feed.xml'>Feed</a>
</p>
<p><em>
Generated with <a href='https://dt.plumbing'">dt</a>
Expand Down

0 comments on commit 5e7e569

Please sign in to comment.