Allow for generation of Hobby Public Radio #279

Open
rho_n wants to merge 1 commits from i274-hacker-to-hobbyist into main
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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin i274-hacker-to-hobbyist:i274-hacker-to-hobbyist
git checkout i274-hacker-to-hobbyist
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HPR/hpr_generator#279
No description provided.