yeay
This commit is contained in:
parent
fde9e32fe0
commit
a237f584dc
3 changed files with 10 additions and 1 deletions
|
|
@ -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| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue