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

Update hugo.md #1013

Merged
merged 1 commit into from
Nov 12, 2022
Merged

Update hugo.md #1013

merged 1 commit into from
Nov 12, 2022

Conversation

davidsneighbour
Copy link
Contributor

The proposed template to add a style tag in the Hugo integration doc will work only on production runs.

The $css.Data.Integrity variable exists only if fingerprint was run on the CSS. So wrapping it in a hugo.IsProduction check is required for the attribute to not fail a hugo run on development or other environments.

The `$css.Data.Integrity` variable exists only, if `fingerprint` was run on the CSS. So wrapping it in a `hugo.IsProduction` check is required for the attribute.
@Ffloriel Ffloriel merged commit 5df543b into FullHuman:main Nov 12, 2022
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.

2 participants