forked from cadey/xesite
Revert "backpost a bunch of other articles, make linkposts work properly"
This reverts commit 4dde8b26b8
.
This commit is contained in:
parent
e096c5bb00
commit
f06819cff1
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
title: "Animal Crossing New Horizons: An Island of Stability in an Unstable World"
|
|
||||||
date: 2021-02-28
|
|
||||||
tags:
|
|
||||||
- link
|
|
||||||
redirect_to: https://www.getrevue.co/profile/theprincessxena/issues/animal-crossing-new-horizons-an-island-of-stability-in-an-unstable-world-313933
|
|
||||||
---
|
|
||||||
|
|
||||||
# Animal Crossing New Horizons: An Island of Stability in an Unstable World
|
|
||||||
|
|
||||||
Check out this post [on my
|
|
||||||
newsletter](https://www.getrevue.co/profile/theprincessxena/issues/animal-crossing-new-horizons-an-island-of-stability-in-an-unstable-world-313933)!
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
title: "Immigration"
|
|
||||||
date: 2021-04-11
|
|
||||||
tags:
|
|
||||||
- link
|
|
||||||
redirect_to: https://www.getrevue.co/profile/theprincessxena/issues/immigration-313938
|
|
||||||
---
|
|
||||||
|
|
||||||
# Immigration
|
|
||||||
|
|
||||||
Check out this post [on my
|
|
||||||
newsletter](https://www.getrevue.co/profile/theprincessxena/issues/immigration-313938)!
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
title: "Mara's Ransack of Castle Charon"
|
|
||||||
date: 2021-03-28
|
|
||||||
tags:
|
|
||||||
- link
|
|
||||||
redirect_to: https://www.getrevue.co/profile/theprincessxena/issues/mara-s-ransack-of-castle-charon-313935
|
|
||||||
---
|
|
||||||
|
|
||||||
# Mara's Ransack of Castle Charon
|
|
||||||
|
|
||||||
Check out this post [on my
|
|
||||||
newsletter](https://www.getrevue.co/profile/theprincessxena/issues/mara-s-ransack-of-castle-charon-313935)!
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
title: "My Thoughts on Paper Mario and the Origami King"
|
|
||||||
date: 2021-01-30
|
|
||||||
tags:
|
|
||||||
- link
|
|
||||||
redirect_to: https://www.getrevue.co/profile/theprincessxena/issues/my-thoughts-on-paper-mario-and-the-origami-king-312718
|
|
||||||
---
|
|
||||||
|
|
||||||
# My Thoughts on Paper Mario and the Origami King
|
|
||||||
|
|
||||||
Check out this post [on my
|
|
||||||
newsletter](https://www.getrevue.co/profile/theprincessxena/issues/my-thoughts-on-paper-mario-and-the-origami-king-312718)!
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
title: "Plurality as Portrayed in Cyberpunk 2077 and Xenoblade Chronicles 2"
|
|
||||||
date: 2021-02-14
|
|
||||||
tags:
|
|
||||||
- link
|
|
||||||
redirect_to: https://www.getrevue.co/profile/theprincessxena/issues/plurality-as-portrayed-in-cyberpunk-2077-and-xenoblade-chronicles-2-313929
|
|
||||||
---
|
|
||||||
|
|
||||||
# Plurality as Portrayed in Cyberpunk 2077 and Xenoblade Chronicles 2
|
|
||||||
|
|
||||||
Check out this post [on my
|
|
||||||
newsletter](https://www.getrevue.co/profile/theprincessxena/issues/plurality-as-portrayed-in-cyberpunk-2077-and-xenoblade-chronicles-2-313929)!
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
title: "The Sisyphean Task Of DNS Client Config on Linux"
|
|
||||||
date: 2021-04-15
|
|
||||||
tags:
|
|
||||||
- link
|
|
||||||
redirect_to: https://tailscale.com/blog/sisyphean-dns-client-linux/
|
|
||||||
---
|
|
||||||
|
|
||||||
# The Sisyphean Task Of DNS Client Config on Linux
|
|
||||||
|
|
||||||
Check out this post [on the Tailscale
|
|
||||||
blog](https://tailscale.com/blog/sisyphean-dns-client-linux/)!
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
title: "Philosophy of Tailscale: Social proximity networks"
|
|
||||||
date: 2021-02-02
|
|
||||||
tags:
|
|
||||||
- link
|
|
||||||
redirect_to: https://tailscale.com/blog/social-proximity-networks/
|
|
||||||
---
|
|
||||||
|
|
||||||
# Philosophy of Tailscale: Social proximity networks
|
|
||||||
|
|
||||||
Check out this post [on the Tailscale
|
|
||||||
blog](https://tailscale.com/blog/social-proximity-networks/)!
|
|
|
@ -20,8 +20,8 @@ impl Into<jsonfeed::Item> for Post {
|
||||||
let mut result = jsonfeed::Item::builder()
|
let mut result = jsonfeed::Item::builder()
|
||||||
.title(self.front_matter.title)
|
.title(self.front_matter.title)
|
||||||
.content_html(self.body_html)
|
.content_html(self.body_html)
|
||||||
.id(self.link.clone())
|
.id(format!("https://christine.website/{}", self.link))
|
||||||
.url(self.link)
|
.url(format!("https://christine.website/{}", self.link))
|
||||||
.date_published(self.date.to_rfc3339())
|
.date_published(self.date.to_rfc3339())
|
||||||
.author(
|
.author(
|
||||||
jsonfeed::Author::new()
|
jsonfeed::Author::new()
|
||||||
|
@ -30,10 +30,6 @@ impl Into<jsonfeed::Item> for Post {
|
||||||
.avatar("https://christine.website/static/img/avatar.png"),
|
.avatar("https://christine.website/static/img/avatar.png"),
|
||||||
);
|
);
|
||||||
|
|
||||||
if let Some(url) = self.front_matter.redirect_to {
|
|
||||||
result = result.url(url);
|
|
||||||
}
|
|
||||||
|
|
||||||
let mut tags: Vec<String> = vec![];
|
let mut tags: Vec<String> = vec![];
|
||||||
|
|
||||||
if let Some(series) = self.front_matter.series {
|
if let Some(series) = self.front_matter.series {
|
||||||
|
@ -83,16 +79,7 @@ async fn read_post(dir: &str, fname: PathBuf) -> Result<Post> {
|
||||||
let body = &body[content_offset..];
|
let body = &body[content_offset..];
|
||||||
let date = NaiveDate::parse_from_str(&front_matter.clone().date, "%Y-%m-%d")
|
let date = NaiveDate::parse_from_str(&front_matter.clone().date, "%Y-%m-%d")
|
||||||
.map_err(|why| eyre!("error parsing date in {:?}: {}", fname, why))?;
|
.map_err(|why| eyre!("error parsing date in {:?}: {}", fname, why))?;
|
||||||
|
let link = format!("{}/{}", dir, fname.file_stem().unwrap().to_str().unwrap());
|
||||||
let link = match front_matter.redirect_to {
|
|
||||||
Some(ref url) => url.clone(),
|
|
||||||
None => format!(
|
|
||||||
"https://christine.website/{}/{}",
|
|
||||||
dir,
|
|
||||||
fname.file_stem().unwrap().to_str().unwrap()
|
|
||||||
),
|
|
||||||
};
|
|
||||||
|
|
||||||
let body_html = crate::app::markdown::render(&body)
|
let body_html = crate::app::markdown::render(&body)
|
||||||
.wrap_err_with(|| format!("can't parse markdown for {:?}", fname))?;
|
.wrap_err_with(|| format!("can't parse markdown for {:?}", fname))?;
|
||||||
let date: DateTime<FixedOffset> =
|
let date: DateTime<FixedOffset> =
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
<generator uri="@env!("CARGO_PKG_REPOSITORY")" version="@env!("CARGO_PKG_VERSION")">@env!("CARGO_PKG_NAME")</generator>
|
<generator uri="@env!("CARGO_PKG_REPOSITORY")" version="@env!("CARGO_PKG_VERSION")">@env!("CARGO_PKG_NAME")</generator>
|
||||||
@for post in posts {
|
@for post in posts {
|
||||||
<entry>
|
<entry>
|
||||||
<id>@post.link</id>
|
<id>https://christine.website/@post.link</id>
|
||||||
<title>@post.front_matter.title</title>
|
<title>@post.front_matter.title</title>
|
||||||
<published>@post.date.to_rfc3339()</published>
|
<published>@post.date.to_rfc3339()</published>
|
||||||
<link href="@post.link" rel="alternate"/>
|
<link href="https://christine.website/@post.link" rel="alternate"/>
|
||||||
</entry>
|
</entry>
|
||||||
}
|
}
|
||||||
</feed>
|
</feed>
|
||||||
|
|
|
@ -12,9 +12,9 @@
|
||||||
<ttl>1440</ttl>
|
<ttl>1440</ttl>
|
||||||
@for post in posts {
|
@for post in posts {
|
||||||
<item>
|
<item>
|
||||||
<guid>@post.link</guid>
|
<guid>https://christine.website/@post.link</guid>
|
||||||
<title>@post.front_matter.title</title>
|
<title>@post.front_matter.title</title>
|
||||||
<link>@post.link</link>
|
<link>https://christine.website/@post.link</link>
|
||||||
<description><![CDATA[@Html(post.body_html)]]></description>
|
<description><![CDATA[@Html(post.body_html)]]></description>
|
||||||
<pubDate>@post.date.to_rfc2822()</pubDate>
|
<pubDate>@post.date.to_rfc2822()</pubDate>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
<p>
|
<p>
|
||||||
<ul>
|
<ul>
|
||||||
@for post in posts {
|
@for post in posts {
|
||||||
<li>@post.date.format("%Y-%m-%d") - <a href="@post.link">@post.front_matter.title</a></li>
|
<li>@post.date.format("%Y-%m-%d") - <a href="/@post.link">@post.front_matter.title</a></li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in New Issue