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

Documentation request #1

Open
pensivedog opened this issue Jul 4, 2022 · 4 comments
Open

Documentation request #1

pensivedog opened this issue Jul 4, 2022 · 4 comments
Assignees

Comments

@pensivedog
Copy link

pensivedog commented Jul 4, 2022

The standard Hugo setup includes a themes/ folder and allows for specifying theme components, as described here. This makes it easy to have an updateable base theme and simply include customizations as overrides in a sub/child theme.

  • Is it possible to use hyas or hyas-child-theme as described above?
  • Or, is it possible to use hyas but add a themes/ directory that allows for overriding/customizing some components, while keeping hyas updateable (I guess by excluding config/_default/config.toml and content/ and themes/ from updates)?
  • How does hyas-child-theme differ from hyas and how should this be used?

I'm looking for an intuitive way to do build a site with hyas, adding my own style and layout customizations, while being able to easily update the hyas base code in the future. Any guidance on this is greatly appreciated.

@h-enk
Copy link
Member

h-enk commented Jul 4, 2022

Please see thuliteio/thulite#311 (comment) + thuliteio/thulite#312

So, in short:

  • No (unfortunately not)
  • Don't know (haven't tested it — I think so, but needs a POC)
  • The hyas-child-theme holds Hyas as an npm package. It's intended for minor customizations, and allows you to easily update npm packages — including Hyas itself. Note though (see the issues linked to above), that I'm planning to drop the child theme for the restructured starter theme (which will then allow you to update Hyas)

@pensivedog
Copy link
Author

Great, thank you for the reply and your work on this. Looking forward to the restructured starter theme.

@h-enk
Copy link
Member

h-enk commented Jun 19, 2023

Or, is it possible to use hyas but add a themes/ directory that allows for overriding/customizing some components, while keeping hyas updateable (I guess by excluding config/_default/config.toml and content/ and themes/ from updates)?

The new Hyas setup caters for this (using Hugo's module mounts) — see e.g. for Doks: themes and integrations. More detailed documentation on how tu use this is in the making.

@pensivedog
Copy link
Author

Requesting documentation or a tutorial on how to add tailwind css to Hyas and make it work with the newly available /themes directory mentioned above.

@h-enk h-enk self-assigned this Jun 27, 2023
@h-enk h-enk transferred this issue from thuliteio/thulite Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants