Having chanced upon this page from the Hugo docs, I would ideally like to set all my youtube, twitter etc. embeds to the non-default more privacy protective versions. I’d particularly like to add the privacy enhanced youtube option.
The docs say to enable this: “These settings need to be put in your site config (e.g. config.toml ).”
I was wondering is there a way we can edit our site’s config files directly to make those changes?
(Or might micro.blog even consider making these the default option, unless there are good reasons to not use the privacy-protecting options for some cases).
Yes, the config.json file is merged with the default configs. Anything in your config.json will be added to or override the same parameter in the default configuration.
But no matter where I add the code to the bottom of any config.json file I can find does that happen . I tried rebuilding my site too, but it didn’t help. I expect I probably just don’t understand where I should be putting the code.
I tried adding it to the existing custom.json in my existing theme (I’m using the excellent Paper theme!)
And then to the custom.json under “Default Templates”
Finally I tried making a new custom theme and just added my own new file called custom.json that just had the privacy code from the Hugo site in it.
Each time I used a json validator to make sure I hadn’t broken the format too much.
I wondered if anyone could give any clues what I’m doing wrong?
The exact code I was adding was along the lines of: