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

Print cli usage of hugo gen chromastyles alongside css #13198

Merged
merged 1 commit into from
Dec 30, 2024

Conversation

diwasrimal
Copy link
Contributor

When I was playing around generating chromastyles, I forgot what style I was using during generation. hugo gen chromastyles [flags] [args] doesn't print any information about how the styles were generated, which would be beneficial to know.

This pull request prints a comment above the generated css styles showing the cli usage during the chromastyles generation.

Now it ouputs like

$ ./hugo gen chromastyles --style=catppuccin-macchiato
/* Generated using: hugo gen chromastyles --style=catppuccin-macchiato */

/* Background */ .bg { color:#cad3f5;background-color:#24273a; }
/* PreWrapper */ .chroma { color:#cad3f5;background-color:#24273a; }
...

@CLAassistant
Copy link

CLAassistant commented Dec 28, 2024

CLA assistant check
All committers have signed the CLA.

@bep bep merged commit 83cec78 into gohugoio:master Dec 30, 2024
6 checks passed
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

Successfully merging this pull request may close these issues.

3 participants