Bjørn Erik Pedersen
6a8b25e291
Fix .Page.Pages with similary named sections
...
Fixes #12169
2024-02-28 16:43:19 +01:00
Bjørn Erik Pedersen
a322282e70
Fix single mount rename panic
...
Fixes #12141
2024-02-28 13:38:12 +01:00
Bjørn Erik Pedersen
6bc0d745a5
Fix multihost processed image not copied to non-default content languages
...
Fixes #12163
2024-02-27 10:43:23 +01:00
Bjørn Erik Pedersen
1736ef7459
Fix cascade-pattern-with-extension for cascade in site config
...
Also clean up the log handling in the integration tester, most notably lost logs during the config loading.
Fixes #12151
2024-02-26 17:29:37 +01:00
Bjørn Erik Pedersen
f27e578718
Fix term template lookup when its backed by a content file
...
Closes #12146
2024-02-25 18:28:16 +01:00
Bjørn Erik Pedersen
d310595a2b
resource: Revert the normalization of Resource.Name
...
Which means that .Name now returns the same as it did in 0.122.0.
Closes #12142
2024-02-25 14:57:29 +01:00
Bjørn Erik Pedersen
049dd1d7e0
Fix panic for disableKinds page for content resources
...
Fixes #12144
2024-02-25 11:38:52 +01:00
Bjørn Erik Pedersen
189b72331e
tocss: Fix the import resolving from absolute to relative assets paths
...
Fixes #12137
2024-02-24 16:41:18 +01:00
Bjørn Erik Pedersen
bf14d0cb26
Speed up GetPage
...
```
name old time/op new time/op delta
GetPage-10 413ns ± 0% 287ns ± 1% -30.47% (p=0.029 n=4+4)
GetPageRegular/From_root-10 757ns ± 1% 706ns ± 1% -6.75% (p=0.029 n=4+4)
GetPageRegular/Page_relative-10 838ns ± 1% 786ns ± 1% -6.16% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
GetPage-10 312B ± 0% 24B ± 0% -92.31% (p=0.029 n=4+4)
GetPageRegular/From_root-10 328B ± 0% 200B ± 0% -39.02% (p=0.029 n=4+4)
GetPageRegular/Page_relative-10 360B ± 0% 232B ± 0% -35.56% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
GetPage-10 8.00 ± 0% 2.00 ± 0% -75.00% (p=0.029 n=4+4)
GetPageRegular/From_root-10 7.00 ± 0% 5.00 ± 0% -28.57% (p=0.029 n=4+4)
GetPageRegular/Page_relative-10 9.00 ± 0% 7.00 ± 0% -22.22% (p=0.029 n=4+4)
```
2024-02-23 16:29:21 +01:00
Bjørn Erik Pedersen
f521336c81
hugolib: Fix a .Page.GetPage from bundle case
...
Fixes #12120
2024-02-23 14:40:29 +01:00
Joe Mooring
36bf3cb98c
hugolib: Add capitalizeListTitles config option
...
Whether to capitalize automatic page titles, applicable to section,
taxonomy, and term pages. Default is true.
Closes #9793
Closes #12115
2024-02-23 09:32:32 +01:00
Bjørn Erik Pedersen
db3bb623d4
Fix it so not all bundled resources are removed when one translation is drafted
...
Fixes #12105
2024-02-22 16:16:44 +01:00
Bjørn Erik Pedersen
16406d9d77
Fix regression on handling of overlapping file mounts
...
But note that the overlay file system is set up horizontally (project -> module1 -> module2), so I would not recommend too complex overlapping mount setups within the same module.
But this worked in v0.122.0, so we should fix it.
Fixes #12103
2024-02-22 15:36:27 +01:00
Bjørn Erik Pedersen
e75784930d
Sitemap should not use list.xml
...
Fixes #12101
2024-02-21 20:07:51 +01:00
Bjørn Erik Pedersen
b8ab5c9be6
Fix rebuild when adding a bundle with space in name
...
Fixes #12092
2024-02-21 17:49:15 +01:00
Bjørn Erik Pedersen
cf7023cb90
Fix relative import issue in libsass/dart sass
...
Fixes #12094
2024-02-21 17:27:45 +01:00
Bjørn Erik Pedersen
fd0185a84a
Fix relref regression with trailing slash
...
Fixes #12096
2024-02-21 17:27:45 +01:00
Bjørn Erik Pedersen
eceeb19751
Fix rebuilding of pages without default content language
...
Fixes #12082
2024-02-20 18:42:14 +01:00
Bjørn Erik Pedersen
621194a319
Fix dart sass import regression
...
Fixes #12072
2024-02-20 17:00:32 +01:00
Bjørn Erik Pedersen
48eec2a4e6
Fall back to original name in Resources.GetMatch/Match
...
Same as we do in .Get.
Fixes #12076
2024-02-20 16:47:07 +01:00
Bjørn Erik Pedersen
a118cb4138
Fix robots.txt using the built-in template regression
...
Fixes #12071
2024-02-20 11:17:44 +01:00
Bjørn Erik Pedersen
5dbc29dc6c
Handle rebuilds when resources passed to transform.Unmarshal etc. changes
...
Fixes #12065
2024-02-19 14:50:23 +01:00
Bjørn Erik Pedersen
5ada27bf65
Fix handling of build options for term pages
...
Fixes #12058
2024-02-18 16:50:35 +01:00
Bjørn Erik Pedersen
afe5b6d7df
Fix sample logic when adding content files in server
...
The partial rebuilds works by calaulating a baseline from a change set.
For new content, this doesn't work, so to avoid rebuilding everything, we first
try to collect a sample of surrounding identities (e.g. content files in the same section).
This commit fixes a flaw in that logic that in some (many...) cases would return a too small sample set.
Fixes #12054
2024-02-18 12:24:27 +01:00
Christian Oliff
168d375784
all: Fix typos and some URLs
2024-02-18 12:16:30 +01:00
Bjørn Erik Pedersen
fc6aabe938
Fix handling of draft term pages
...
By just removing the term page and all of its page entries.
Fixes #12055
2024-02-17 18:12:25 +01:00
Bjørn Erik Pedersen
5bdda0bdbf
Don't use the same value in .Data.Term.Title as in .Title
...
Fixes #12041
2024-02-17 12:34:50 +01:00
Bjørn Erik Pedersen
9679443c15
Fix server panic on i18n file change
...
Fixes #12048
2024-02-17 11:46:45 +01:00
Bjørn Erik Pedersen
68f67c9aeb
Fix rebuild regression on non-default content language edits
...
Fixes #12043
2024-02-16 19:05:18 +01:00
Fabian Kammel
43ea2cd660
Let standard library handle charset parameter to MIME types
...
Fixes #10734
2024-02-16 18:24:25 +01:00
Bjørn Erik Pedersen
f1491c900e
Fix i18n rebuild regression
...
Fixes #12039
2024-02-16 16:17:57 +01:00
Bjørn Erik Pedersen
639073e4fe
Fix rebuild with resources.Concat
...
Fixes #12017
2024-02-16 13:17:53 +01:00
Bjørn Erik Pedersen
caba6ba6e7
Fix taxonomy term with backing file regression
...
Fixes #12020
2024-02-10 18:48:53 +02:00
Bjørn Erik Pedersen
0851c175ad
Move the duplicate page/resource filter
...
Move the removal of duplicate content and resource files after we have determined if we're inside a leaf bundle or not.
Note that these would eventually have been filtered out as duplicates when inserting them into the document store, but doing it here will preserve a consistent ordering.
Fixes #12013
2024-02-08 20:11:17 +01:00
Bjørn Erik Pedersen
676e6875da
Make HTML behave exactly like other content formats (note)
...
Fixes #11999
2024-02-07 21:37:04 +01:00
Bjørn Erik Pedersen
a65622a13e
Fix rebuild of changed bundled content files
...
Fixes #12000
2024-02-06 21:53:33 +01:00
Bjørn Erik Pedersen
146aedd7aa
Fix site.Taxonomies for taxonomies with space in name
...
Fixes #12001
2024-02-06 18:17:30 +01:00
Bjørn Erik Pedersen
9df7b295bc
Filter dot files etc. in i18n
...
Closes #11993
2024-02-05 14:54:02 +01:00
Bjørn Erik Pedersen
609d798e34
Handle resource changes when the resources is already evicted from cache
...
Also fix a logical flaw in the cache resizer that made it too aggressive. After this I haven't been able to reproduce #11988 , but I need to look closer.
Closes #11973
Updates #11988
2024-02-04 16:55:06 +01:00
Bjørn Erik Pedersen
53f204310e
all: Rename Unmormalized => Unnormalized
2024-02-03 18:10:38 +01:00
Joe Mooring
7f82461407
hugolib: Formally deprecate .Page.NextPage .Page.PrevPage
...
Use .Page.Next and .Page.Prev instead.
2024-02-03 17:28:52 +01:00
Bjørn Erik Pedersen
46575baa02
Preserve file/dir name case when loading data
...
Fixes #11979
2024-02-03 16:30:10 +01:00
Bjørn Erik Pedersen
058f230a1b
Detect now invalid path patterns in cascade
...
Closes #11977
2024-02-03 15:07:59 +01:00
Bjørn Erik Pedersen
a66480f70c
Handle build vs _build in front matter
...
* Throw a detailed error message in the mentioned case
* Also fixed a dropped error
Fixes #11970
2024-02-03 15:07:59 +01:00
Bjørn Erik Pedersen
2873324898
Misc resource fixes/improvements
...
* Add --pprof flag to server to enable profile debugging.
* Don't cache the resource content, it seem to eat memory on bigger sites.
* Keep --printMemoryUsag running in server
Fixes #11974
2024-02-02 18:46:23 +01:00
Bjørn Erik Pedersen
034fbef50d
Add some more context to error
...
Updates #11970
2024-02-01 21:40:32 +01:00
Bjørn Erik Pedersen
8d42a7942a
Improve nilpointer error message
2024-02-01 19:53:51 +01:00
Bjørn Erik Pedersen
4174a7866b
Fix disabled languages regression
...
Fixes #11959
2024-02-01 19:42:55 +01:00
Bjørn Erik Pedersen
f5ec75db36
hugolib: Adjust a test case
2024-02-01 18:20:13 +01:00
Joe Mooring
6cb3bda3d1
hugolib: Revert deprecation of .Page.Lang
...
Deprecation message was also emitted when calling .Page.Language.Lang.
Reverting for now, but will remove all references to .Page.Lang from
documentation.
2024-02-01 18:00:50 +01:00