From 363014f6238acf5a98f49dce629d60ca35f35397 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 18 Jul 2022 01:07:09 +0200 Subject: Generate hugo_stats.json file --- .gitignore | 3 +++ exampleSite/config/production/config.yaml | 5 +++++ 2 files changed, 8 insertions(+) create mode 100644 exampleSite/config/production/config.yaml diff --git a/.gitignore b/.gitignore index c5db0eb..617d42c 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,6 @@ # Temporary lock file while building. .hugo_build.lock + +# This file includes all tags, classes, and ids from your *.html templates. +hugo_stats.json diff --git a/exampleSite/config/production/config.yaml b/exampleSite/config/production/config.yaml new file mode 100644 index 0000000..838d022 --- /dev/null +++ b/exampleSite/config/production/config.yaml @@ -0,0 +1,5 @@ +build: + # This tells Hugo to write a hugo_stats.json file to the project + # root as part of the build. It includes all tags, classes, and ids + # from your *.html templates. + writeStats: true -- cgit v1.2.3