aboutsummaryrefslogtreecommitdiff
path: root/lib/xesite_templates
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2022-10-25 08:29:50 -0400
committerXe Iaso <me@christine.website>2022-10-25 08:29:50 -0400
commiteced6372a625f6a41a2009fec2f6ed9fbb9ca071 (patch)
tree031b402724f11bd0f8a783bee0f1e62576a844b2 /lib/xesite_templates
parentde0cec42c73c2f42a1e0a6577f793a2688bd8c31 (diff)
downloadxesite-eced6372a625f6a41a2009fec2f6ed9fbb9ca071.tar.xz
xesite-eced6372a625f6a41a2009fec2f6ed9fbb9ca071.zip
everyone gets ads
Signed-off-by: Xe Iaso <me@christine.website>
Diffstat (limited to 'lib/xesite_templates')
-rw-r--r--lib/xesite_templates/src/lib.rs25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/xesite_templates/src/lib.rs b/lib/xesite_templates/src/lib.rs
index 8223695..a24e239 100644
--- a/lib/xesite_templates/src/lib.rs
+++ b/lib/xesite_templates/src/lib.rs
@@ -140,3 +140,28 @@ pub fn video(path: String) -> Markup {
(hls_script)
}
}
+
+pub fn advertiser_nag() -> Markup {
+ html! {
+ script r#async src="https://media.ethicalads.io/media/client/ethicalads.min.js" { "" }
+ div.adaptive data-ea-publisher="christinewebsite" data-ea-type="image" data-ea-style="fixedfooter" {
+ .warning {
+ (conv(
+ "Cadey".into(),
+ "coffee".into(),
+ html! {
+ "Hello! Thank you for visiting my website. You seem to be using an ad-blocker. I understand why you do this, but I'd really appreciate if it you would turn it off for my website. These ads help pay for running the website and are done by "
+ a href="https://www.ethicalads.io/" { "Ethical Ads" }
+ ". I do not receive detailed analytics on the ads and from what I understand neither does Ethical Ads. If you don't want to disable your ad blocker, please consider donating on "
+ a href="https://patreon.com/cadey" { "Patreon" }
+ " or sending some extra cash to "
+ code { "xeiaso.eth" }
+ " or "
+ code { "0xeA223Ca8968Ca59e0Bc79Ba331c2F6f636A3fB82" }
+ ". It helps fund the website's hosting bills and pay for the expensive technical editor that I use for my longer articles. Thanks and be well!"
+ },
+ ))
+ }
+ }
+ }
+}