hugo/hugolib
Bjørn Erik Pedersen 7ae62f4aa3 Create hugo_stats.json if it's mounted but does not exists
A common pattern for Tailwind 3 is to mount that file to get it on the server watch list.

A common pattern is also to add hugo_stats.json to .gitignore.

This has meant that the first time you start the server (no hugo_stats.json), it just doesn't work as expected.

Fixes #11264
2023-07-19 19:50:37 +02:00
..
assets/images
filesystems Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
paths Fix static content files multilingual root regression 2023-07-08 16:08:46 +02:00
testdata Allow whitelisting mediaTypes used in resources.GetRemote 2023-05-20 20:16:45 +02:00
testsite
404_test.go
alias.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
alias_test.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
breaking_changes_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
cascade_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
codeowners.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
collections.go Some godoc adjustments and image struct renames 2022-04-27 23:53:56 +02:00
collections_test.go tests: Convert from testify to quicktest 2019-08-12 13:26:32 +02:00
config.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
config_test.go Fix setting config from env with complex (e.g. YAML) strings 2023-07-16 18:08:23 +02:00
configdir_test.go all: Fix typos in function names and comments 2023-06-19 09:26:29 +02:00
content_factory.go
content_factory_test.go
content_map.go Misc permalinks adjustments 2023-06-29 10:14:19 +02:00
content_map_page.go commands: Improve the common build flag handling 2023-05-17 22:13:29 +02:00
content_map_test.go
content_render_hooks_test.go
datafiles_test.go all: Fix typos in function names and comments 2023-06-19 09:26:29 +02:00
dates_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
disableKinds_test.go
embedded_shortcodes_test.go all: Fix typos in function names and comments 2023-06-19 09:26:29 +02:00
embedded_templates_test.go
fileInfo.go
fileInfo_test.go
frontmatter_test.go
gitinfo.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
hugo_modules_test.go Fix for data mounts in sub folders 2023-07-15 11:13:08 +02:00
hugo_sites.go Fix for data mounts in sub folders 2023-07-15 11:13:08 +02:00
hugo_sites_build.go Create hugo_stats.json if it's mounted but does not exists 2023-07-19 19:50:37 +02:00
hugo_sites_build_errors_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
hugo_sites_build_test.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
hugo_sites_multihost_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
hugo_sites_rebuild_test.go
hugo_smoke_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
image_test.go
integration_test.go
integrationtest_builder.go Make build.writeStats a struct 2023-07-01 15:38:32 +02:00
language_content_dir_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
language_test.go
menu_test.go Fix menuItem.URL when pageRef is not set 2023-06-02 09:04:00 +02:00
minify_publisher_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
mount_filters_test.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
page.go Fix regression with site.IsServer when not running a server 2023-05-24 12:42:56 +02:00
page__common.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
page__content.go Add page fragments support to Related 2023-02-21 17:56:41 +01:00
page__data.go
page__fragments_test.go Add test for ToC vs include 2023-03-29 17:49:01 +02:00
page__menus.go
page__meta.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
page__new.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
page__output.go
page__paginator.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
page__paths.go Misc permalinks adjustments 2023-06-29 10:14:19 +02:00
page__per_output.go Return error when .Render is invoked without arg 2023-07-13 18:06:36 +02:00
page__position.go
page__ref.go
page__tree.go
page_kinds.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
page_permalink_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
page_test.go Return error when .Render is invoked without arg 2023-07-13 18:06:36 +02:00
page_unwrap.go
page_unwrap_test.go
pagebundler_test.go Fix defaultContentLanguageInSubdir with only 1 language 2023-07-08 16:08:46 +02:00
pagecollections.go all: Fix comments for exported functions and packages 2023-05-18 21:25:27 +02:00
pagecollections_test.go all: Fix typos in function names and comments 2023-06-19 09:26:29 +02:00
pages_capture.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
pages_capture_test.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
pages_language_merge_test.go
pages_process.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
pages_test.go
paginator_test.go
permalinker.go
prune_resources.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
renderstring_test.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
resource_chain_test.go Replace the old log setup, with structured logging etc. 2023-06-18 13:03:04 +02:00
robotstxt_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
rss_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
securitypolicies_test.go Upgrade to v2 of the Dart Sass Embedded Protocol 2023-06-12 13:47:38 +02:00
shortcode.go
shortcode_page.go
shortcode_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
site.go Re-instate disableLiveReload as a config option (and not just a flag) 2023-07-19 19:50:37 +02:00
site_benchmark_new_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
site_new.go Fix defaultContentLanguageInSubdir with only 1 language 2023-07-08 16:08:46 +02:00
site_output.go
site_output_test.go Re-add site.RSSLink (and deprecate it) 2023-06-14 12:18:11 +02:00
site_render.go Improve behavior of defaultContentLanguageInSubdir when only the default language is enabled 2023-07-13 18:06:36 +02:00
site_sections.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
site_sections_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
site_stats_test.go
site_test.go Fix buildStats when tags and classes are disabled 2023-07-03 09:58:33 +02:00
site_url_test.go Fix defaultContentLanguageInSubdir with only 1 language 2023-07-08 16:08:46 +02:00
siteJSONEncode_test.go
sitemap_test.go Fix defaultContentLanguageInSubdir with only 1 language 2023-07-08 16:08:46 +02:00
taxonomy_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
template_test.go Create a struct with all of Hugo's config options 2023-05-16 18:01:29 +02:00
testhelpers_test.go Fix defaultContentLanguageInSubdir with only 1 language 2023-07-08 16:08:46 +02:00
translations.go