From 670a344225b201fcd5eac5c5b76e83bb197af970 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Thu, 8 Sep 2022 01:30:47 +0000 Subject: start work on multiple nag messages Signed-off-by: Xe Iaso --- dhall/nagMessages.dhall | 27 +++++++++++++++++++++++++++ dhall/types/Config.dhall | 2 ++ dhall/types/NagMessage.dhall | 3 +++ dhall/types/package.dhall | 1 + 4 files changed, 33 insertions(+) create mode 100644 dhall/nagMessages.dhall create mode 100644 dhall/types/NagMessage.dhall 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 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 Patreon. 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 Ethical Ads 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 Patreon 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 Patreon 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 Ethical Ads, please consider donating on Patreon. 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 -- cgit v1.2.3