Skip to content

Commit

Permalink
Replace deprecated writeStats Hugo setting
Browse files Browse the repository at this point in the history
  • Loading branch information
schnerring committed Feb 7, 2024
1 parent 7414538 commit d3df58b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 0 additions & 2 deletions config/_default/build.toml

This file was deleted.

9 changes: 9 additions & 0 deletions config/_default/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ enableRobotsTXT = true
# Enable to calculate the last modified date from Git history and show it in the post header
#enableGitInfo = true

[build]
noJSConfigInAssets = true
[build.buildStats]
# With each build, Hugo writes a hugo_stats.json file that contains arrays
# of the class attributes, id attributes, and tags of each HTML element
# within the published site. For production builds, this file is required
# by PurgeCSS to prune unused CSS.
enable = true

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
Expand Down
9 changes: 7 additions & 2 deletions config/_default/module.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#replacements = "github.com/schnerring/hugo-mod-json-resume -> ../../hugo-mod-json-resume"
[hugoVersion]
extended = true
min = "0.84.0"
min = "0.115.1"
[[imports]]
path = "github.com/schnerring/hugo-mod-json-resume"
[[imports.mounts]]
Expand Down Expand Up @@ -41,4 +41,9 @@
target = "static/fonts"
[[mounts]]
source = "node_modules/@tabler/icons/icons"
target = "assets/tabler-icons"
target = "assets/tabler-icons"
[[mounts]]
# Add hugo_stats.json to Hugo's server watcher
# See https://gohugo.io/getting-started/configuration/#configure-cache-busters
source = "hugo_stats.json"
target = "assets/watching/hugo_stats.json"

0 comments on commit d3df58b

Please sign in to comment.