Ernie Smith on Nostr: The hardest part of this, oddly enough, was the ads. Essentially, the colors are ...
The hardest part of this, oddly enough, was the ads. Essentially, the colors are based on the sponsor and change with every issue. I was struggling to figure out a solution to this, but eventually I came up with building an njk partial with the desired CSS code which resets when a new post kicks in.
Published at
2025-01-16 16:46:55Event JSON
{
"id": "579770d7664fbe01313d53377a2117eb34036e076cf8367a6034378bb0fa1596",
"pubkey": "d8915cc82183398d49f6c20d0975438827df47464d0148e0c7bf8349d8e95548",
"created_at": 1737046015,
"kind": 1,
"tags": [
[
"e",
"76c5be178ecf43a1a5f185662a3b9bfd9488e53486a9a32b90e6b6ccf2cab062",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://writing.exchange/users/ernie/statuses/113839047662662628",
"activitypub"
]
],
"content": "The hardest part of this, oddly enough, was the ads. Essentially, the colors are based on the sponsor and change with every issue. I was struggling to figure out a solution to this, but eventually I came up with building an njk partial with the desired CSS code which resets when a new post kicks in.",
"sig": "96e34dcea2cb8e4f628e572d4e14b9f27d244557a1726c7c61168301d2eb8cac7e84bfaec02544ef5f0d5414584435cd0d8161539de1b8690bf76810a6977efc"
}