From aca8b8089264b911afa71b2334c8652002e003ac Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Wed, 8 Jun 2022 17:20:48 -0400 Subject: talks: add static analysis talk Signed-off-by: Xe Iaso --- templates/talkpost.rs.html | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/talkpost.rs.html b/templates/talkpost.rs.html index 46cd1de..51f47d6 100644 --- a/templates/talkpost.rs.html +++ b/templates/talkpost.rs.html @@ -1,8 +1,8 @@ -@use super::{header_html, footer_html, mara}; -@use crate::post::Post; +@use super::{header_html, footer_html}; +@use crate::{post::Post, tmpl::nag}; @use chrono::prelude::*; -@(post: Post, body: impl ToHtml) +@(post: Post, body: impl ToHtml, referer: Option) @:header_html(Some(&post.front_matter.title.clone()), None) @@ -46,20 +46,14 @@ @} -@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 {} UTC. 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 { - -} +@Html(nag::referer(referer).0) + +@Html(nag::prerelease(&post).0) @body Link to the slides -
-
-- cgit v1.2.3