This commit is contained in:
Rakarake 2026-03-28 21:38:22 +01:00
parent fde9e32fe0
commit a237f584dc
3 changed files with 10 additions and 1 deletions

View file

@ -3,7 +3,7 @@ use markdown::to_html;
use rss::{Channel, GuidBuilder, ItemBuilder};
fn main() -> io::Result<()> {
let posts = std::env::args().skip(2).map(|f| {
let posts = std::env::args().skip(2).rev().map(|f| {
let contents = std::fs::read_to_string(f.clone())?;
// parse metadata, then the rest to html
let mut metadata: HashMap<String, String> = contents.lines().take_while(|l| {