diff options
-rw-r--r-- | html/feed.xml | 2 | ||||
-rwxr-xr-x | tools/rss_gen.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/html/feed.xml b/html/feed.xml index d3a958a..69772da 100644 --- a/html/feed.xml +++ b/html/feed.xml @@ -1,2 +1,2 @@ <?xml version='1.0' encoding='UTF-8'?> -<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Fryzek Concepts</title><atom:link href="https://fryzekconcepts.com/feed.xml" rel="self" type="application/rss+xml"/><link>https://fryzekconcepts.com</link><description>Lucas is a developer working on cool things</description><lastBuildDate>Sat, 21 Jan 2023 04:09:56 -0000</lastBuildDate><item><title>Generating Video</title><link>https://fryzekconcepts.com/notes/generating-video.html</link><description>One thing I’m very interested in is computer graphics. This could be complex 3D graphics or 2D</description><pubDate>Sun, 30 Oct 2022 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/generating-video.html</guid></item><item><title>N64Brew GameJam 2021</title><link>https://fryzekconcepts.com/notes/n64brew-gamejam-2021.html</link><description>So this year myself and two others decided to participate together in the N64Brew homebrew where</description><pubDate>Sun, 30 Oct 2022 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/n64brew-gamejam-2021.html</guid></item><item><title>Baremetal RISC-V</title><link>https://fryzekconcepts.com/notes/baremetal-risc-v.html</link><description>After re-watching suckerpinch’s Reverse Emulation video I got inspired to try and replicate what</description><pubDate>Sun, 30 Oct 2022 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/baremetal-risc-v.html</guid></item><item><title>Digital Garden</title><link>https://fryzekconcepts.com/notes/digital_garden.html</link><description>After reading Maggie Appleton page on digital gardens I was inspired to convert my own website into</description><pubDate>Sun, 30 Oct 2022 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/digital_garden.html</guid></item><item><title>Rasterizing Triangles</title><link>https://fryzekconcepts.com/notes/rasterizing-triangles.html</link><description>Lately I’ve been trying to implement a software renderer following the algorithm described by</description><pubDate>Sun, 30 Oct 2022 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/rasterizing-triangles.html</guid></item></channel></rss>
\ No newline at end of file +<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Fryzek Concepts</title><atom:link href="https://fryzekconcepts.com/feed.xml" rel="self" type="application/rss+xml"/><link>https://fryzekconcepts.com</link><description>Lucas is a developer working on cool things</description><lastBuildDate>Sat, 21 Jan 2023 04:19:23 -0000</lastBuildDate><item><title>Generating Video</title><link>https://fryzekconcepts.com/notes/generating-video.html</link><description>One thing I’m very interested in is computer graphics. This could be complex 3D graphics or 2D</description><pubDate>Tue, 07 Apr 2020 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/generating-video.html</guid></item><item><title>N64Brew GameJam 2021</title><link>https://fryzekconcepts.com/notes/n64brew-gamejam-2021.html</link><description>So this year myself and two others decided to participate together in the N64Brew homebrew where</description><pubDate>Fri, 10 Dec 2021 05:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/n64brew-gamejam-2021.html</guid></item><item><title>Rasterizing Triangles</title><link>https://fryzekconcepts.com/notes/rasterizing-triangles.html</link><description>Lately I’ve been trying to implement a software renderer following the algorithm described by</description><pubDate>Sun, 03 Apr 2022 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/rasterizing-triangles.html</guid></item><item><title>Baremetal RISC-V</title><link>https://fryzekconcepts.com/notes/baremetal-risc-v.html</link><description>After re-watching suckerpinch’s Reverse Emulation video I got inspired to try and replicate what</description><pubDate>Thu, 09 Jun 2022 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/baremetal-risc-v.html</guid></item><item><title>Digital Garden</title><link>https://fryzekconcepts.com/notes/digital_garden.html</link><description>After reading Maggie Appleton page on digital gardens I was inspired to convert my own website into</description><pubDate>Sun, 30 Oct 2022 04:00:00 -0000</pubDate><guid>https://fryzekconcepts.com/notes/digital_garden.html</guid></item></channel></rss>
\ No newline at end of file diff --git a/tools/rss_gen.py b/tools/rss_gen.py index dc2ad2f..729cae1 100755 --- a/tools/rss_gen.py +++ b/tools/rss_gen.py @@ -36,8 +36,11 @@ for file in os.listdir(build_dir): notes.append(note) + +notes.sort(key=lambda note: datetime.datetime.strptime(note["date"], "%Y-%m-%d")) + for note in notes: - post_time = datetime.datetime.strptime("2022-10-30", "%Y-%m-%d") + post_time = datetime.datetime.strptime(note["date"], "%Y-%m-%d") post_rfc_time = email.utils.formatdate(timeval=time.mktime(post_time.timetuple())) post_url = "{}/notes/{}.html".format(url, note["name"]) item = ET.SubElement(channel, "item") |