diff options
| author | Xe Iaso <me@christine.website> | 2022-06-08 17:20:48 -0400 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-06-08 17:20:48 -0400 |
| commit | aca8b8089264b911afa71b2334c8652002e003ac (patch) | |
| tree | 3f110e913ecf1d0e0b0a12a7f23e9f47fe359ff6 /templates | |
| parent | dc3f6471e774eaafab92dfcd73dd089707646469 (diff) | |
| download | xesite-aca8b8089264b911afa71b2334c8652002e003ac.tar.xz xesite-aca8b8089264b911afa71b2334c8652002e003ac.zip | |
talks: add static analysis talk
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/talkpost.rs.html | 18 |
1 files changed, 6 insertions, 12 deletions
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<String>) @:header_html(Some(&post.front_matter.title.clone()), None) @@ -46,20 +46,14 @@ @} </script> -@if Utc::today().num_days_from_ce() < post.date.num_days_from_ce() { -<div class="warning"> - @: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 <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> -} else { -<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script> -} +@Html(nag::referer(referer).0) + +@Html(nag::prerelease(&post).0) @body <a href="@post.front_matter.slides_link.as_ref().unwrap()">Link to the slides</a> -<div data-ea-publisher="christinewebsite" data-ea-type="text"></div> - <hr /> <!-- The button that should be clicked. --> |
