aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-05-07 14:32:04 +0000
committerXe Iaso <me@christine.website>2022-05-07 14:32:04 +0000
commit06d4bf7d69e7f58f51c49e6f3a712c50412b7ceb (patch)
tree7263f6f3a12d4630e4d2af4be52f247d985ca326 /templates
parent261d0b65df3b76fec75a7e9f3c984570963d1bb1 (diff)
downloadxesite-06d4bf7d69e7f58f51c49e6f3a712c50412b7ceb.tar.xz
xesite-06d4bf7d69e7f58f51c49e6f3a712c50412b7ceb.zip
src/app/markdown: no-js xeblog-conv support
Thanks to the meddling of @fasterthanlime, I now use lol_html[0] to parse the <xeblog-conv> elements on the server side instead of on the client side as an HTML custom element. I will be using this strategy in the future to expand my blog's functionality and make the christine dot website cinematic universe stronger. Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'templates')
-rw-r--r--templates/blogpost.rs.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/blogpost.rs.html b/templates/blogpost.rs.html
index 13f8302..92dfab7 100644
--- a/templates/blogpost.rs.html
+++ b/templates/blogpost.rs.html
@@ -1,4 +1,4 @@
-@use super::{header_html, footer_html};
+@use super::{header_html, footer_html, mara};
@use crate::post::Post;
@use chrono::prelude::*;
@@ -53,6 +53,7 @@
</script>
@if let Some(to) = post.front_matter.redirect_to.clone() {
+ <meta http-equiv="refresh" content="0;URL='@to'" />
<script>
window.location.replace("@to");
</script>
@@ -65,8 +66,7 @@
@if Utc::today().num_days_from_ce() < post.date.num_days_from_ce() {
<div class="warning">
- <xeblog-conv name="Mara" mood="hacker">Hey, this post is set to go live to the public on @post.detri(). Right now you are reading a pre-publication version of this post. Please do not share this on social media. This post will automatically go live for everyone on the intended publication date. If you want access to these posts, please join the <a href="https://patreon.com/cadey">Patreon</a>. It helps me afford the copyeditor that I contract for the technical content I write.
- </xeblog-conv>
+ @:mara("hacker", "Mara", Html(format!(r#"Hey, this post is set to go live to the public on {}. Right now you are reading a pre-publication version of this post. Please do not share this on social media. This post will automatically go live for everyone on the intended publication date. If you want access to these posts, please join the <a href="https://patreon.com/cadey">Patreon</a>. It helps me afford the copyeditor that I contract for the technical content I write."#, post.detri())))
</div>
}