Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Website settings #779

Open
davidsneighbour opened this issue Mar 21, 2024 · 1 comment
Open

Enhancement: Website settings #779

davidsneighbour opened this issue Mar 21, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@davidsneighbour
Copy link

davidsneighbour commented Mar 21, 2024

I know this is far out because every SSG has a different system of adding settings, but in the end, those settings are in TOML, YAML, JSON, or INI-kind files. It would be nice to have some form of configurable option to load and edit items in the aforementioned formats and save them back.

This is a very un-thought-out idea and probably not easy to implement. But let's look for instance (selfishly) at GoHugo: We have a config directory with a _default subdirectory (or other "environment" subdirectories that are merged on top of _default when GoHugo runs). Then we have files like hugo.toml and module.toml in that _default directory. Those values are either key-value pairs or arrays and tables.

This principle could (in GoHugo) then later on even be adapted for the i18n folder that translates themes and modules.

I know this is a huge feature, so delete if it's a general "no thanks", or think about it :)

PS: there might be a general usefulness to have a TOML/YAML/JSON-to-form mechanism. Abstract without having to work on settings or translations.

PPS: Configuration option definitions could work based on a schemata file like the frontmatter schematas.

@davidsneighbour davidsneighbour added the enhancement New feature or request label Mar 21, 2024
@estruyf estruyf added the help wanted Extra attention is needed label Mar 25, 2024
@estruyf
Copy link
Owner

estruyf commented Mar 25, 2024

@davidsneighbour thanks for this suggestion 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants