Skip to content

Commit

Permalink
Merge pull request #181 from markdumay/main
Browse files Browse the repository at this point in the history
Describe Hugo minify configuration requirements
  • Loading branch information
bglw committed Dec 19, 2023
2 parents 6010d46 + 9cdb93f commit ba73f47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/hugo.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1672,6 +1672,8 @@ If you're using other components in your layouts, add the `bookshop_bindings` pa
{{ partial "bookshop_bindings" `(dict hero_text .Params.hero_text)` }}
{{ partial "bookshop" (slice "hero" (dict hero_text .Params.hero_text)) }}
----

WARNING: Hugo has a built-in option to minify output files, which is enabled by adding the `--minify` flag to the `hugo` command. Be sure to keep the HTML comments though (`keepComments = true`), or else Bookshop will not be able to generate the correct page bindings. Refer to the link:https://gohugo.io/getting-started/configuration/#configure-minify[Hugo documentation] for more information.
endif::hugo[]

ifndef::sveltekit[]
Expand Down

0 comments on commit ba73f47

Please sign in to comment.