summaryrefslogtreecommitdiffstats
path: root/resources
AgeCommit message (Collapse)Author
12 daysAdd css.TailwindCSSBjørn Erik Pedersen
Closes #12618 Closes #12620
14 daysImplement 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.
2024-06-08resources/page: Let GroupByParam return nil instead of errorJoe Mooring
Closes #12578
2024-06-08Add option to not generate aliases for first page of pagination pagesBjørn Erik Pedersen
Also consolidate the pagination configuration into a struct. Closes #12572
2024-06-08js: Support more recent targets with js.Build / esbuildBjørn Erik Pedersen
Closes #12575
2024-06-04resources: Fix spellingBjørn Erik Pedersen
2024-06-04Add a HTTP cache for remote resources.Bjørn Erik Pedersen
Fixes #12502 Closes #11891
2024-06-01resources/page: Deprecate .Sites.First in favor of .Sites.DefaultJoe Mooring
Closes #12513
2024-05-30content adapter: Add support for menus in AddPageBjørn Erik Pedersen
Fixes #12507
2024-05-15Fix mixed case Page params handling in content adaptersBjørn Erik Pedersen
Fixes #12497
2024-05-15Fix paths with dots issue with content adaptersBjørn Erik Pedersen
Fixes #12493
2024-05-14resources/images: Handle NaN EXIF latitude and longitudeJoe Mooring
Fixes #12490
2024-05-14Create pages from _content.gotmplBjørn Erik Pedersen
Closes #12427 Closes #12485 Closes #6310 Closes #5074
2024-05-05Fix one more resource change eviction logic issueBjørn Erik Pedersen
This is how we should have fixed #1239. Fixes #12456
2024-05-04Make the cache eviction logic for stale entities more robustBjørn Erik Pedersen
Fixes #12458
2024-05-02Run mage generateBjørn Erik Pedersen
2024-05-02resources/page: Pull internal Page methods into its own interfaceBjørn Erik Pedersen
So it doesn't get visible when passing it to `jsonify`.
2024-04-20Fix partial rebuilds for SCSS fetched with GetMatch and similarBjørn Erik Pedersen
Fixes #12395
2024-04-19resources/images: Fix TestColorLuminance on s390xBjørn Erik Pedersen
2024-04-16Add Luminance to ColorBjørn Erik Pedersen
To sort an image's colors from darkest to lightest, you can then do: ```handlebars {{ {{ $colorsByLuminance := sort $image.Colors "Luminance" }} ``` This uses the formula defined here: https://www.w3.org/TR/WCAG21/#dfn-relative-luminance Fixes #10450
2024-04-15Pass .RenderShortcodes' Page to render hooks as .PageInnerBjørn Erik Pedersen
The main use case for this is to resolve links and resources (e.g. images) relative to the included `Page`. A typical `include` would similar to this: ```handlebars {{ with site.GetPage (.Get 0) }} {{ .RenderShortcodes }} {{ end }} ``` And when used in a Markdown file: ```markdown {{% include "/posts/p1" %}} ``` Any render hook triggered while rendering `/posts/p1` will get `/posts/p1` when calling `.PageInner`. Note that * This is only relevant for shortcodes included with `{{%` that calls `.RenderShortcodes`. * `.PageInner` is available in all render hooks that, before this commit, received `.Page`. * `.PageInner` will fall back to the value of `.Page` if not relevant and will always have a value. Fixes #12356
2024-04-12resources/page: Add taxonomies Page methodJoe Mooring
Closes #12316
2024-04-11all: Typo fixesChristian Oliff
2024-04-08babel: Run go fmtBjørn Erik Pedersen
2024-04-08babel: Close file before removingguangwu
2024-04-05resources/page: Escape hash sign in permalinksSoren L. Hansen
When creating a link to a file with a `#` in the filename, the link gets truncated. This happens because the filename is eventaully passed to `url.Parse` which (correctly!) interprets the `#` as fragment separator. This commit escapes the `#` in the filename before creating the link. Fixes #4926 Fixes #8232 Fixes #12342 Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
2024-03-27resources: Use different cache key when copying resourcesJoe Mooring
Closes #10412 Closes #12310
2024-03-22resources/page: Fix GoDoc commentGeorge Ma
2024-03-20testing: Set usesFMA as true for riscv64 tooAnthony Fok
This fixes TestImageOperationsGolden "values are not deep equal" error on riscv64 with Go 1.22 and above.
2024-03-15hugolib: Deprecate site methods Author, Authors, and SocialJoe Mooring
Closes #12228
2024-03-15all: Typo fixesChristian Oliff
2024-03-13Fix front matter date location when value gets inherited from other datesBjørn Erik Pedersen
Fixes #12236
2024-03-13Fix Name for nested resourced fetched in resources.ByName and similarBjørn Erik Pedersen
Fixes #12214
2024-03-13common/hugo: Rename IsMultiHost and IsMultiLingualJoe Mooring
hugo.IsMultiHost => hugo.IsMultihost hugo.IsMultiLingual => hugo.IsMultilingual Closes #12232
2024-03-10hugolib: Deprecate .Site.MultiLingual in favor of hugo.IsMultiLingualJoe Mooring
Closes #12224
2024-03-07Add hugo.IsMultiHostrazonyang
2024-03-07resources/images: Retain newlines with text overlaysJoe Mooring
Closes #12206
2024-03-07Fix resource name in resources.ByTypeBjørn Erik Pedersen
Fixes #12190
2024-03-01Fix and add integration test for the Bootstrap SCSS module for both Dart ↵Bjørn Erik Pedersen
Sass and Libsass This fixes the reverse filesystem lookup (absolute filename to path relative to the composite filesystem). The old logic had some assumptions about the locality of the actual files that didn't work in more complex scenarios. This commit now also adds the popular Bootstrap SCSS Hugo module to the CI build (both for libsass and dartsass transpiler), so we can hopefully avoid similar future breakage. Fixes #12178
2024-03-01Fix resources.GetMatch, resources.Match, and resources.ByType to they don't ↵Bjørn Erik Pedersen
normalize permalinks Fixes #12182
2024-03-01resources/page: Make Taxonomy.Get and Taxonomy.Count case-insensitiveJoe Mooring
Closes #12177
2024-02-27Fix multihost processed image not copied to non-default content languagesBjørn Erik Pedersen
Fixes #12163
2024-02-26Fix cascade-pattern-with-extension for cascade in site configBjørn Erik Pedersen
Also clean up the log handling in the integration tester, most notably lost logs during the config loading. Fixes #12151
2024-02-25resource: Revert the normalization of Resource.NameBjørn Erik Pedersen
Which means that .Name now returns the same as it did in 0.122.0. Closes #12142
2024-02-24tocss: Fix the import resolving from absolute to relative assets pathsBjørn Erik Pedersen
Fixes #12137
2024-02-24Maek Resoyrce.Key as (mostly) internalBjørn Erik Pedersen
2024-02-23resources: Skip the image golden tests when running locallyBjørn Erik Pedersen
See #12119