diff options
| author | Xe Iaso <me@christine.website> | 2022-09-08 01:30:47 +0000 |
|---|---|---|
| committer | Xe Iaso <me@christine.website> | 2022-09-08 03:11:02 +0000 |
| commit | 670a344225b201fcd5eac5c5b76e83bb197af970 (patch) | |
| tree | 6c21eae225b06d1165872ea5732b36be6edef236 | |
| parent | 2f27eaaec80376c667d520c976d8db3456dd8caa (diff) | |
| download | xesite-670a344225b201fcd5eac5c5b76e83bb197af970.tar.xz xesite-670a344225b201fcd5eac5c5b76e83bb197af970.zip | |
start work on multiple nag messages
Signed-off-by: Xe Iaso <me@christine.website>
| -rw-r--r-- | dhall/nagMessages.dhall | 27 | ||||
| -rw-r--r-- | dhall/types/Config.dhall | 2 | ||||
| -rw-r--r-- | dhall/types/NagMessage.dhall | 3 | ||||
| -rw-r--r-- | dhall/types/package.dhall | 1 |
4 files changed, 33 insertions, 0 deletions
diff --git a/dhall/nagMessages.dhall b/dhall/nagMessages.dhall new file mode 100644 index 0000000..276d261 --- /dev/null +++ b/dhall/nagMessages.dhall @@ -0,0 +1,27 @@ +let NagMessage = ./types/NagMessage.dhall + +in [ NagMessage::{ + , name = "Cadey" + , mood = "coffee" + , message = + "Hello! Thank you for visiting my website. You seem to have ads disabled. These ads help pay for running the website and are done by <a href=\"https://ethicalads.io\">Ethical Ads</a>. 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</a>. 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!" + } + , NagMessage::{ + , name = "Cadey" + , mood = "coffee" + , message = + "Hi! Thanks for reading the blog! Your ad blocker seems to be preventing the ads from showing up. Hosting is expensive, and I use <a href=\"https://ethicalads.io\">Ethical Ads</a> to help offset the bills. Every time one of my posts gets very popular, the hosting costs go up accordingly. If you don't want to have ads enabled, please consider becoming a patron on my <a href=\"https://patreon.com/cadey\">Patreon</a> instead. This helps me further my goals of making highly readable, entertaining, and inspirational articles so that readers like you can benefit from my struggles. Thanks and be well!" + } + , NagMessage::{ + , name = "Mara" + , mood = "hacker" + , message = + "Hey, I don't mean to be a bother but you seem to have an ad blocker configured for this domain. Independent tech writing and talks like these require a lot of investment in terms of writing and infrastructure. If you don't want to support the blog through ads, that's fine. Please consider donating on <a href=\"https://patreon.com/cadey\">Patreon</a> instead. That will help balance out the increased costs of hosting this website and get you some posts a week early as well as occasional patron-exclusive content. Thanks for reading! Hope you enjoy the article." + } + , NagMessage::{ + , name = "Mara" + , mood = "happy" + , message = + "Thanks for reading the latest issue of the xeiaso dot net cinematic universe! Running a cinmatic universe takes more resources than you'd think. If you don't feel comfortable supporting the blog with <a href=\"https://ethicalads.io\">Ethical Ads</a>, please consider donating on <a href=\"https://patreon.com/cadey\">Patreon</a>. Hosting is expensive, especially at the scale this website operates at. Every little bit helps." + } + ] diff --git a/dhall/types/Config.dhall b/dhall/types/Config.dhall index 8ae8dee..3934a11 100644 --- a/dhall/types/Config.dhall +++ b/dhall/types/Config.dhall @@ -4,6 +4,8 @@ let Author = ./Author.dhall let Job = ./Job.dhall +let NagMessage = ./NagMessage.dhall + let defaultPort = env:PORT ? 3030 let defaultWebMentionEndpoint = diff --git a/dhall/types/NagMessage.dhall b/dhall/types/NagMessage.dhall new file mode 100644 index 0000000..d4571a8 --- /dev/null +++ b/dhall/types/NagMessage.dhall @@ -0,0 +1,3 @@ +{ Type = { name : Text, mood : Text, message : Text } +, default = { name = "", mood = "", message = "" } +} diff --git a/dhall/types/package.dhall b/dhall/types/package.dhall index d0cb961..d64d9b9 100644 --- a/dhall/types/package.dhall +++ b/dhall/types/package.dhall @@ -4,6 +4,7 @@ , Job = ./Job.dhall , Link = ./Link.dhall , Location = ./Location.dhall +, NagMessage = ./NagMessage.dhall , Person = ./Person.dhall , Resume = ./Resume.dhall , Salary = ./Salary.dhall |
