aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources
AgeCommit message (Collapse)Author
3 daysjs/esbuild: Don't try to resolve packages in /assets marked as externalBjørn Erik Pedersen
Fixes #13183
3 daysFix union, complement, symdiff, and intersect for transient resourcesBjørn Erik Pedersen
Fixes #13181
10 daysjs: Fix js.Batch for multihost setupsBjørn Erik Pedersen
Note that this is an unreleased feature. Fixes #13151
13 daysAdd js.BatchBjørn Erik Pedersen
Fixes #12626 Closes #7499 Closes #9978 Closes #12879 Closes #13113 Fixes #13116
2024-12-10Fix Sass imports on the form index.{scss,sass}Bjørn Erik Pedersen
Fixes #13123
2024-11-21dartsass: Fix nilpointer on Close when Dart Sass isn't installedBjørn Erik Pedersen
Fixes #13076
2024-11-18dartsass: Fix error messageBjørn Erik Pedersen
Closes #13065
2024-11-18dartsass: Add silenceDeprecations optionBjørn Erik Pedersen
Fixes #13045
2024-11-18dartsass: Remove support for v1 of the protocol/binary (note)Bjørn Erik Pedersen
People who stil use a very old binary named `dart-sass-embedded` need to upgrade. See https://gohugo.io/functions/css/sass/#dart-sass
2024-11-16Remove deprecations <= v0.122.0 (note)Bjørn Erik Pedersen
These have, once we release this, been logging ERROR for 6 minor versions.
2024-11-13Add site.Store and hugo.Store and Shortcode.StoreBjørn Erik Pedersen
Closes #13021
2024-11-06Alias Page.Scratch to Page.Store (note)Bjørn Erik Pedersen
Fixes #13016
2024-11-03Fix some RenderShortcodes error casesBjørn Erik Pedersen
This issue fixes two cases where `{{__hugo_ctx` artifacts were left in the rendered output: 1. Inclusion when `.RenderShortcodes` is wrapped in HTML. 2. Inclusion of Markdown file without a trailing newline in some cases. Closes #12854 Updates #12998
2024-11-01resources: Address Dart Sass deprecation of global built-in functionsJoe Mooring
See https://github.com/sass/dart-sass/releases/tag/1.80.0 Fixes #12961
2024-10-16Never sanitize when url set in front matterBjørn Erik Pedersen
Fixes #12954
2024-10-16Remove erroneously permalink validationBjørn Erik Pedersen
Fixes #12948
2024-10-15resources/page: Adjust the permalinks colon implementation a littleBjørn Erik Pedersen
Mostly to get back to an attribute regexp that's reasonably simle to read/understand. Updates #12918
2024-10-15resources/page: Allow colons in permalinks to be escapedn1xx1
Updates #12918
2024-10-06tailwind: Pin Tailwind 4 test to alpha 26 or laterJoe Mooring
2024-10-06resources/page: Treat null dates as zero datesJoe Mooring
Closes #12906
2024-10-05resources/page: Improve front matter date validationJoe Mooring
Improve the error message and treat empty strings as zero dates. Closes #12898
2024-09-29tests: Address deprecation warnings and errorsJoe Mooring
2024-09-27resources/page: Validate predefined front matter datesJoe Mooring
Closes #10717
2024-09-27tailwind: Pin Tailwind 4 test to alpha 24Bjørn Erik Pedersen
See #12880
2024-09-16libsass: Resolve directory paths to directory index filesJoe Mooring
Closes #12851
2024-09-15dartsass: Resolve directory paths to directory index filesJoe Mooring
Closes #12849
2024-09-10Don't count HTML markup in auto summariesBjørn Erik Pedersen
This commit also fixes a bug where a `</picture>` end tag was wrongly used to detect a end paragraph. This should be very rare, though. Closes #12837
2024-09-05Make ContentWithoutSummary return Content when summary is fetched from front ↵Bjørn Erik Pedersen
matter Fixes #12822
2024-08-29Add Page.Contents with scope supportBjørn Erik Pedersen
Note that this also adds a new `.ContentWithoutSummary` method, and to do that we had to unify the different summary types: Both `auto` and `manual` now returns HTML. Before this commit, `auto` would return plain text. This could be considered to be a slightly breaking change, but for the better: Now you can treat the `.Summary` the same without thinking about where it comes from, and if you want plain text, pipe it into `{{ .Summary | plainify }}`. Fixes #8680 Fixes #12761 Fixes #12778 Fixes #716
2024-08-25Fix missing method NameNormalized panicBjørn Erik Pedersen
Closes #12795
2024-08-17Add config options page.nextPrevSortOrder/nextPrevInSectionSortOrderBjørn Erik Pedersen
See #12776
2024-08-14resources: Add URI GetRemote errorb10c
Previouly, only "ERROR failed to fetch remote resource: Forbidden" would be shown when a resource failed to load. In my case, a tweet's author I was embedding using the twitter shortcode switched his profile to private which resulted in my blog failing to build. To figure out where the originates, I added the log to the error message.
2024-08-10Fix compare of uints and ints in eq, gt etc.Bjørn Erik Pedersen
Fixes #12733
2024-08-02Fix images.AutoOrient regressionBjørn Erik Pedersen
Broken in v0.130.0. Added a integration test to avoid future breakage. Fixes #12712
2024-08-02revamp pagegroup tests with quicktestn1xx1
2024-08-02allow nested params when using Pages.GroupByParam and Pages.GroupByParamDaten1xx1
2024-08-01resources/page: Expand parmalinks tokens in `url`n1xx1
This change allows to use permalink tokens in url front matter fields. This should be useful to target more specific pages instead of using a global permalink configuration. It's expected to be used with cascade. Fixes #9714
2024-07-31Shorten processed image filenamesBjørn Erik Pedersen
Fixes #12688 Fixes #12656
2024-07-31Consolidate all hashing to the common/hashing packageBjørn Erik Pedersen
And remove now unsued hashing funcs.
2024-07-31Replace the MD5 hashing of images with xxHashBjørn Erik Pedersen
Note that we only use this for change detection. The previous implementation invoked `MD5FromReaderFast` that created a MD5 has from 8 64 bytes chunks in the file, which is obviously very fast. The new implementation creates the hash from the entire file and ... seems to be even more effective: ``` name old time/op new time/op delta HashImage-10 9.45µs ±21% 10.89µs ± 1% ~ (p=0.343 n=4+4) name old alloc/op new alloc/op delta HashImage-10 144B ± 0% 8B ± 0% -94.44% (p=0.029 n=4+4) name old allocs/op new allocs/op delta HashImage-10 4.00 ± 0% 1.00 ± 0% -75.00% (p=0.029 n=4+4) ```
2024-07-31resources: Add BenchmarkHashImageBjørn Erik Pedersen
2024-07-31identity: Use xxHash in hashstructure (note)Bjørn Erik Pedersen
``` name old time/op new time/op delta HashString/n28-10 133ns ± 9% 107ns ±10% -19.58% (p=0.029 n=4+4) HashString/n112-10 243ns ± 5% 121ns ± 4% -50.08% (p=0.029 n=4+4) HashString/n448-10 698ns ± 3% 174ns ± 5% -75.02% (p=0.029 n=4+4) HashString/n1792-10 2.58µs ± 4% 0.38µs ± 4% -85.11% (p=0.029 n=4+4) HashString/n7168-10 10.0µs ± 3% 1.3µs ± 4% -86.91% (p=0.029 n=4+4) name old alloc/op new alloc/op delta HashString/n28-10 80.0B ± 0% 72.0B ± 0% -10.00% (p=0.029 n=4+4) HashString/n112-10 160B ± 0% 152B ± 0% -5.00% (p=0.029 n=4+4) HashString/n448-10 496B ± 0% 488B ± 0% -1.61% (p=0.029 n=4+4) HashString/n1792-10 1.84kB ± 0% 1.83kB ± 0% -0.43% (p=0.029 n=4+4) HashString/n7168-10 8.24kB ± 0% 8.23kB ± 0% -0.06% (p=0.029 n=4+4) name old allocs/op new allocs/op delta HashString/n28-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) HashString/n112-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) HashString/n448-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) HashString/n1792-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) HashString/n7168-10 4.00 ± 0% 3.00 ± 0% -25.00% (p=0.029 n=4+4) ```
2024-07-31identity: Upgrade to github.com/mitchellh/hashstructure/v2 v2.0.2Bjørn Erik Pedersen
``` name old time/op new time/op delta HashString/n28-10 131ns ± 7% 133ns ±19% ~ (p=0.343 n=4+4) HashString/n112-10 237ns ± 5% 241ns ± 3% ~ (p=0.229 n=4+4) HashString/n448-10 688ns ± 3% 687ns ± 1% ~ (p=0.886 n=4+4) HashString/n1792-10 2.51µs ± 3% 2.56µs ± 3% ~ (p=0.200 n=4+4) HashString/n7168-10 10.1µs ± 2% 10.0µs ± 4% ~ (p=0.686 n=4+4) name old alloc/op new alloc/op delta HashString/n28-10 80.0B ± 0% 80.0B ± 0% ~ (all equal) HashString/n112-10 160B ± 0% 160B ± 0% ~ (all equal) HashString/n448-10 496B ± 0% 496B ± 0% ~ (all equal) HashString/n1792-10 1.84kB ± 0% 1.84kB ± 0% ~ (all equal) HashString/n7168-10 8.24kB ± 0% 8.24kB ± 0% ~ (all equal) name old allocs/op new allocs/op delta HashString/n28-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) HashString/n112-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) HashString/n448-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) HashString/n1792-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) HashString/n7168-10 4.00 ± 0% 4.00 ± 0% ~ (all equal) ``` Closes #11644
2024-07-20Switch EXIF libraryBjørn Erik Pedersen
Closes #10855 Closes #8586 Closes #8996
2024-07-01Fix it so publishDate rolls up to section, taxonomy, or term pagesBjørn Erik Pedersen
Fixes #12438
2024-06-25Add css.TailwindCSSBjørn Erik Pedersen
Closes #12618 Closes #12620
2024-06-23Implement deferBjørn Erik Pedersen
Closes #8086 Closes #12589
2024-06-13resources: Update Dart Sass error messageJoe Mooring
2024-06-09resources/page: Deprecate PageSize in favor of PagerSizeBjørn Erik Pedersen
See #12572
2024-06-09Rename DefaultPageSize => PagerSizeBjørn Erik Pedersen
This was recently introduced. so no breaking change. The thing is: * We do not commonly use the prefix Default* even if it can be overridden in the templates. * PagerSize makes more sense and is also the term used in the code.