oh my god i was an idiot

Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
Cadey Ratio 2020-12-20 12:01:30 -05:00
parent ccdee6431d
commit 276023d371
2 changed files with 5 additions and 4 deletions

View File

@ -1,6 +1,6 @@
---
title: The 7th Edition
date: 12/20/2020
date: 2020-12-19
tags:
- ttrpg
---
@ -132,10 +132,10 @@ Don't worry about accuracy or the like. You are setting out to have fun.
## Special Thanks
Special thanks goes to Jared, who sent out this tweet[1] that inspired this
Special thanks goes to Jared, who sent out this [tweet][1] that inspired this
document. In case the tweet gets deleted, here's what it said:
[[1]: heres a d&d for you](https://twitter.com/infinite_mao/status/1340402360259137541)
[1]: https://twitter.com/infinite_mao/status/1340402360259137541
> heres a d&d for you

View File

@ -81,7 +81,8 @@ pub async fn load(dir: &str, mi: Option<&mi::Client>) -> Result<Vec<Post>> {
let (fm, content_offset) = frontmatter::Data::parse(body.clone().as_str())
.wrap_err_with(|| format!("can't parse frontmatter of {:?}", path))?;
let markup = &body[content_offset..];
let date = NaiveDate::parse_from_str(&fm.clone().date, "%Y-%m-%d")?;
let date = NaiveDate::parse_from_str(&fm.clone().date, "%Y-%m-%d")
.map_err(|why| eyre!("error parsing date in {:?}: {}", path, why))?;
let link = format!("{}/{}", dir, path.file_stem().unwrap().to_str().unwrap());
let mentions: Vec<mi::WebMention> = match mi {
None => vec![],