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

5
blogs/day8.md Normal file
View file

@ -0,0 +1,5 @@
title: We love slop
author: Rakarake
pubDate: Sat, Mar 28 2026
---
🐖

4
new.sh Executable file
View file

@ -0,0 +1,4 @@
printf "name of file (e.g. day67.md): "
read filename
cargo run -- new > blogs/$filename

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| {