~cricket/jazz

1f8379c89ec68766f47a572e127aa30f7cbbae21 — c piapiac a month ago d6c4cf8
add content to rss feed
3 files changed, 11 insertions(+), 2 deletions(-)

M jazz.zig
M rss/head.xml
M rss/segment.xml
M jazz.zig => jazz.zig +8 -1
@@ 103,7 103,14 @@ pub fn main() !void {
        try index.writer().print(index_file[1],.{filename,title,description,pub_date});

        log.info("write rss segment",.{});
        try rss.writer().print(rss_file[1],.{title,filename,description,pub_date,last_build_date});
        try rss.writer().print(rss_file[1], .{
            title,
            filename,
            description,
            pub_date,
            last_build_date,
            content,
        });

        log.info("create out/{s}",.{filename});
        var file = try out.createFile(filename, .{.truncate=true});

M rss/head.xml => rss/head.xml +2 -1
@@ 1,6 1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="1.0">
<rss version="2.0">
    <channel>
        <title>CRICKET'S JAZZ</title>
        <link>https://jazz.cro.wtf</link>
        <description>blog about random crap on my mind</description>
        <language>en-gb</language>

M rss/segment.xml => rss/segment.xml +1 -0
@@ 4,4 4,5 @@
                <description>{s}</description>
                <pubDate>{s}</pubDate>
                <lastBuildDate>{s}</lastBuildDate>
                <content:encoded><![CDATA[ {s} ]]></content>
            </item>