Allow for generation of Hobby Public Radio #279

Merged
ken_fallon merged 5 commits from i274-hacker-to-hobbyist into main 2026-02-01 15:18:46 +00:00
Owner

Add a is_sfw configuration option in site.cfg
Add a make_sfw function which takes 3 arguments

  • swf : a bool if generating Hobby or Hacker Public Radio
  • swf_text : the Hobby related text
  • nswf_text: the Hacker related text

Modify the templates to generate the Hobby or Hacker related text

Add a is_sfw configuration option in site.cfg Add a make_sfw function which takes 3 arguments - swf : a bool if generating Hobby or Hacker Public Radio - swf_text : the Hobby related text - nswf_text: the Hacker related text Modify the templates to generate the Hobby or Hacker related text
rho_n self-assigned this 2025-09-11 17:00:43 +00:00
rho_n added 1 commit 2025-09-11 17:00:43 +00:00
rho_n requested review from archer72 2025-09-11 17:00:44 +00:00
rho_n requested review from ken_fallon 2025-09-11 17:00:44 +00:00
Owner

Could you please not use swf or nsfw texts. This has nothing to do with safety, and gives the wrong impression.

I would prefer to have just a variable to a hash rather than the logic on each call.

{
  "Hacker": {
    "k1": "Hacker",
    "k2": "Hackers",
    "k3": "Hackers"
  },
  "Hobby": {
    "k1": "Hobby",
    "k2": "Hobbyist",
    "k3": "Hobby"
  }
}

Where given site="hacker" would render "${site}{k1} Public Radio" as Hacker Public Radio.

Could you please not use swf or nsfw texts. This has nothing to do with safety, and gives the wrong impression. I would prefer to have just a variable to a hash rather than the logic on each call. ``` { "Hacker": { "k1": "Hacker", "k2": "Hackers", "k3": "Hackers" }, "Hobby": { "k1": "Hobby", "k2": "Hobbyist", "k3": "Hobby" } } ``` Where given `site="hacker"` would render "`${site}{k1}` Public Radio" as Hacker Public Radio.
rho_n added 3 commits 2026-01-30 21:11:52 +00:00
rho_n added 1 commit 2026-01-30 21:17:13 +00:00
ken_fallon merged commit 27920e7b9f into main 2026-02-01 15:18:46 +00:00
ken_fallon deleted branch i274-hacker-to-hobbyist 2026-02-01 15:18:46 +00:00
Sign in to join this conversation.