~eliasnaur/giouiorg

1b03ff75d937d41c0649ea843bec64f1b5d61085 — Egon Elbre 9 months ago 649cd13
site/rss: preserve pubDate time

Signed-off-by: Egon Elbre <egonelbre@gmail.com>
M site/rss.go => site/rss.go +1 -1
@@ 34,7 34,7 @@ func (site *Site) renderRSS(page PageData) ([]byte, error) {
		}

		if child.Date != nil {
			item.PubDate = child.Date.Format("Mon, 02 Jan 2006")
			item.PubDate = child.Date.Format("Mon, 02 Jan 2006 15:04 -0700")
		}

		channel.Items = append(channel.Items, item)

M site/testdata/content/doc/architecture/operations.md => site/testdata/content/doc/architecture/operations.md +1 -1
@@ 1,6 1,6 @@
---
title: Operations
date: "2022-01-15T00:00:00Z"
date: "2022-01-15T12:32:00Z"
---

Operations nec scelerisque odio. Morbi consequat dapibus suscipit. Morbi fermentum lacus nec quam consectetur, et auctor neque tempus. Sed luctus efficitur dolor in feugiat. Curabitur nec ante eget odio scelerisque gravida. Proin ac odio et enim tincidunt bibendum. Phasellus feugiat eros augue, malesuada vestibulum ante tempus a.

M site/testdata/ref/doc/architecture/rss.xml => site/testdata/ref/doc/architecture/rss.xml +2 -2
@@ 8,13 8,13 @@
            <title>Window</title>
            <link>https://gioui.org/doc/architecture/window</link>
            <description>Window consequat magna et odio consequat, ac rutrum lorem congue. Sed auctor augue et nibh auctor, placerat elementum libero aliquet. Vestibulum iaculis tellus sed velit scelerisque ullamcorper. Nullam ultricies orci ac leo faucibus, quis placerat felis efficitur. Phasellus dictum vel eros sollicitudin sodales. Nulla neque dolor, vehicula ultrices aliquet a, semper id enim. Sed at ex porta, consequat elit sagittis, luctus dolor. Nam commodo, eros quis aliquam vestibulum, sapien orci sagittis eros, in pretium metus quam a orci. Pellentesque in ante faucibus massa ullamcorper accumsan.</description>
            <pubDate>Sun, 01 May 2022</pubDate>
            <pubDate>Sun, 01 May 2022 00:00 +0000</pubDate>
        </item>
        <item>
            <title>Operations</title>
            <link>https://gioui.org/doc/architecture/operations</link>
            <description>Operations nec scelerisque odio. Morbi consequat dapibus suscipit. Morbi fermentum lacus nec quam consectetur, et auctor neque tempus. Sed luctus efficitur dolor in feugiat. Curabitur nec ante eget odio scelerisque gravida. Proin ac odio et enim tincidunt bibendum. Phasellus feugiat eros augue, malesuada vestibulum ante tempus a.</description>
            <pubDate>Sat, 15 Jan 2022</pubDate>
            <pubDate>Sat, 15 Jan 2022 12:32 +0000</pubDate>
        </item>
    </channel>
</rss>
\ No newline at end of file