This commit is contained in:
Rakarake 2026-03-27 02:08:08 +01:00
parent 61f8e453e2
commit 9b61bc1292
2 changed files with 9 additions and 1 deletions

4
blogs/day3.md Normal file
View file

@ -0,0 +1,4 @@
## This is huge
We have infrastructure set up for a brighter future. Game on gamers!
// Raka

View file

@ -1,6 +1,6 @@
use std::io;
use markdown::to_html;
use rss::{Channel, ItemBuilder};
use rss::{Channel, GuidBuilder, ItemBuilder};
fn main() -> io::Result<()> {
let posts = std::env::args().skip(2).map(|f| {
@ -17,9 +17,13 @@ fn main() -> io::Result<()> {
channel.description = "morbius text wow".to_string();
channel.generator = Some("Rakabaka's tooling".to_string());
channel.items = posts.iter().enumerate().map(|(i, p)| {
let guid = GuidBuilder::default()
.value(format!("{i}"))
.build();
ItemBuilder::default()
.title(format!("Blog post {i}"))
.description(Some(p.clone()))
.guid(guid)
.build()
}).collect();
print!("{}", channel);