oh my god i was an idiot
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
ccdee6431d
commit
276023d371
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
title: The 7th Edition
|
title: The 7th Edition
|
||||||
date: 12/20/2020
|
date: 2020-12-19
|
||||||
tags:
|
tags:
|
||||||
- ttrpg
|
- ttrpg
|
||||||
---
|
---
|
||||||
|
@ -132,10 +132,10 @@ Don't worry about accuracy or the like. You are setting out to have fun.
|
||||||
|
|
||||||
## Special Thanks
|
## 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:
|
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
|
> heres a d&d for you
|
||||||
|
|
||||||
|
|
|
@ -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())
|
let (fm, content_offset) = frontmatter::Data::parse(body.clone().as_str())
|
||||||
.wrap_err_with(|| format!("can't parse frontmatter of {:?}", path))?;
|
.wrap_err_with(|| format!("can't parse frontmatter of {:?}", path))?;
|
||||||
let markup = &body[content_offset..];
|
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 link = format!("{}/{}", dir, path.file_stem().unwrap().to_str().unwrap());
|
||||||
let mentions: Vec<mi::WebMention> = match mi {
|
let mentions: Vec<mi::WebMention> = match mi {
|
||||||
None => vec![],
|
None => vec![],
|
||||||
|
|
Loading…
Reference in New Issue