add ethicalads

Signed-off-by: Xe Iaso <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-05-12 21:22:50 +00:00
parent e057c81325
commit b312b9931d
2 changed files with 14 additions and 0 deletions

View File

@ -68,10 +68,14 @@
<div class="warning">
@: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>
} else {
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
}
<small>A @post.read_time_estimate_minutes minute read.</small>
<div data-ea-publisher="christinewebsite" data-ea-type="text"></div>
@body
<hr />

View File

@ -47,6 +47,16 @@
@}
</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 {}. 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>
}
<div data-ea-publisher="christinewebsite" data-ea-type="text"></div>
@body
<a href="@post.front_matter.slides_link.as_ref().unwrap()">Link to the slides</a>