From b312b9931d882b8176731230b753b30d88403a31 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 12 May 2022 21:22:50 +0000 Subject: [PATCH] add ethicalads Signed-off-by: Xe Iaso --- templates/blogpost.rs.html | 4 ++++ templates/talkpost.rs.html | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/templates/blogpost.rs.html b/templates/blogpost.rs.html index 92dfab7..162782a 100644 --- a/templates/blogpost.rs.html +++ b/templates/blogpost.rs.html @@ -68,10 +68,14 @@
@: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 Patreon. It helps me afford the copyeditor that I contract for the technical content I write."#, post.detri())))
+} else { + } A @post.read_time_estimate_minutes minute read. +
+ @body
diff --git a/templates/talkpost.rs.html b/templates/talkpost.rs.html index bd77577..a9d6581 100644 --- a/templates/talkpost.rs.html +++ b/templates/talkpost.rs.html @@ -47,6 +47,16 @@ @} +@if Utc::today().num_days_from_ce() < post.date.num_days_from_ce() { +
+ @: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 Patreon. It helps me afford the copyeditor that I contract for the technical content I write."#, post.detri()))) +
+} else { + +} + +
+ @body Link to the slides