From bdc64f78f2aeca9730fb27a4c4511d90c93f9d89 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sat, 28 May 2022 09:17:01 -0400 Subject: xeiaso.net Signed-off-by: Xe Iaso --- src/app/markdown.rs | 8 ++++---- src/app/mod.rs | 20 ++++++++++---------- src/app/poke.rs | 26 +++++++++++++------------- 3 files changed, 27 insertions(+), 27 deletions(-) (limited to 'src/app') diff --git a/src/app/markdown.rs b/src/app/markdown.rs index f44236d..e69b6e7 100644 --- a/src/app/markdown.rs +++ b/src/app/markdown.rs @@ -37,7 +37,7 @@ pub fn render(inp: &str) -> Result { let mut data = node.data.borrow_mut(); match &mut data.value { &mut NodeValue::Link(ref mut link) => { - let base = Url::parse("https://christine.website/")?; + let base = Url::parse("https://xeiaso.net/")?; let u = base.join(std::str::from_utf8(&link.url.clone())?)?; if u.scheme() != "conversation" { return Ok(()); @@ -85,9 +85,9 @@ pub fn render(inp: &str) -> Result {
- - - {name} is {mood} + + + {name} is {mood}
<{name}> "#), ContentType::Html); diff --git a/src/app/mod.rs b/src/app/mod.rs index 1109b30..87fec9c 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -54,7 +54,7 @@ async fn patrons() -> Result> { } } -pub const ICON: &'static str = "https://christine.website/static/img/avatar.png"; +pub const ICON: &'static str = "https://xeiaso.net/static/img/avatar.png"; pub struct State { pub cfg: Config, @@ -106,12 +106,12 @@ pub async fn init(cfg: PathBuf) -> Result { .author( jsonfeed::Author::new() .name("Xe") - .url("https://christine.website") + .url("https://xeiaso.net") .avatar(ICON), ) - .feed_url("https://christine.website/blog.json") + .feed_url("https://xeiaso.net/blog.json") .user_comment("This is a JSON feed of my blogposts. For more information read: https://jsonfeed.org/version/1") - .home_page_url("https://christine.website") + .home_page_url("https://xeiaso.net") .icon(ICON) .favicon(ICON); @@ -124,17 +124,17 @@ pub async fn init(cfg: PathBuf) -> Result { let smw = sitemap::writer::SiteMapWriter::new(&mut sm); let mut urlwriter = smw.start_urlset()?; for url in &[ - "https://christine.website/resume", - "https://christine.website/contact", - "https://christine.website/", - "https://christine.website/blog", - "https://christine.website/signalboost", + "https://xeiaso.net/resume", + "https://xeiaso.net/contact", + "https://xeiaso.net/", + "https://xeiaso.net/blog", + "https://xeiaso.net/signalboost", ] { urlwriter.url(*url)?; } for post in &everything { - urlwriter.url(format!("https://christine.website/{}", post.link))?; + urlwriter.url(format!("https://xeiaso.net/{}", post.link))?; } urlwriter.end()?; diff --git a/src/app/poke.rs b/src/app/poke.rs index eddb85e..ef5f882 100644 --- a/src/app/poke.rs +++ b/src/app/poke.rs @@ -29,7 +29,7 @@ pub async fn the_cloud() -> Result<()> { async fn bing() -> Result<()> { let cli = reqwest::Client::new(); cli.get("https://www.bing.com/ping") - .query(&[("sitemap", "https://christine.website/sitemap.xml")]) + .query(&[("sitemap", "https://xeiaso.net/sitemap.xml")]) .header("User-Agent", crate::APPLICATION_NAME) .send() .await? @@ -42,7 +42,7 @@ async fn bing() -> Result<()> { async fn google() -> Result<()> { let cli = reqwest::Client::new(); cli.get("https://www.google.com/ping") - .query(&[("sitemap", "https://christine.website/sitemap.xml")]) + .query(&[("sitemap", "https://xeiaso.net/sitemap.xml")]) .header("User-Agent", crate::APPLICATION_NAME) .send() .await? @@ -56,17 +56,17 @@ async fn cloudflare() -> Result<()> { let cli = cfcache::Client::new(env::var("CF_TOKEN")?, env::var("CF_ZONE_ID")?)?; cli.purge( vec![ - "https://christine.website/sitemap.xml", - "https://christine.website", - "https://christine.website/blog", - "https://christine.website/blog.atom", - "https://christine.website/blog.json", - "https://christine.website/blog.rss", - "https://christine.website/gallery", - "https://christine.website/talks", - "https://christine.website/resume", - "https://christine.website/signalboost", - "https://christine.website/feeds", + "https://xeiaso.net/sitemap.xml", + "https://xeiaso.net", + "https://xeiaso.net/blog", + "https://xeiaso.net/blog.atom", + "https://xeiaso.net/blog.json", + "https://xeiaso.net/blog.rss", + "https://xeiaso.net/gallery", + "https://xeiaso.net/talks", + "https://xeiaso.net/resume", + "https://xeiaso.net/signalboost", + "https://xeiaso.net/feeds", ] .into_iter() .map(|i| i.to_string()) -- cgit v1.2.3