yeay
This commit is contained in:
parent
fde9e32fe0
commit
a237f584dc
3 changed files with 10 additions and 1 deletions
5
blogs/day8.md
Normal file
5
blogs/day8.md
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
title: We love slop
|
||||||
|
author: Rakarake
|
||||||
|
pubDate: Sat, Mar 28 2026
|
||||||
|
---
|
||||||
|
🐖
|
||||||
4
new.sh
Executable file
4
new.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
||||||
|
printf "name of file (e.g. day67.md): "
|
||||||
|
read filename
|
||||||
|
cargo run -- new > blogs/$filename
|
||||||
|
|
||||||
|
|
@ -3,7 +3,7 @@ use markdown::to_html;
|
||||||
use rss::{Channel, GuidBuilder, ItemBuilder};
|
use rss::{Channel, GuidBuilder, ItemBuilder};
|
||||||
|
|
||||||
fn main() -> io::Result<()> {
|
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())?;
|
let contents = std::fs::read_to_string(f.clone())?;
|
||||||
// parse metadata, then the rest to html
|
// parse metadata, then the rest to html
|
||||||
let mut metadata: HashMap<String, String> = contents.lines().take_while(|l| {
|
let mut metadata: HashMap<String, String> = contents.lines().take_while(|l| {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue