diff options
| author | Xe Iaso <me@christine.website> | 2022-05-12 21:22:50 +0000 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-05-12 21:22:50 +0000 |
| commit | b312b9931d882b8176731230b753b30d88403a31 (patch) | |
| tree | 817037b087fa3de3433e7e2990fe31e5101a7cef /templates | |
| parent | e057c813259ee5f04fcd116d429751e292b676a9 (diff) | |
| download | xesite-b312b9931d882b8176731230b753b30d88403a31.tar.xz xesite-b312b9931d882b8176731230b753b30d88403a31.zip | |
add ethicalads
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/blogpost.rs.html | 4 | ||||
| -rw-r--r-- | templates/talkpost.rs.html | 10 |
2 files changed, 14 insertions, 0 deletions
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 @@ <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 /> 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 @@ @} </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> |
