aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib
AgeCommit message (Collapse)Author
6 dayshugolib: Fix fallbacks for menu entry Name and TitleJoe Mooring
Closes #13161
9 daysFix panic on server rebuilds when using both base templates and template.DeferBjørn Erik Pedersen
Fixes #12963
9 daysjs: Fix js.Batch for multihost setupsBjørn Erik Pedersen
Note that this is an unreleased feature. Fixes #13151
9 daysFix a rebuild on resource rename caseBjørn Erik Pedersen
12 daysWrite all logging (INFO, WARN, ERROR) to stderrBjørn Erik Pedersen
The old setup tried to log >= warning to stderr, the rest to stdout. However, that logic was flawed, so warnings ended up in stdout, which makes `hugo list all` etc. hard to reason about from scripts. This commit fixes this by making all logging (info, warn, error) log to stderr and let stdout be reserved for program output. Fixes #13074
13 daysAdd config option disableDefaultLanguageRedirectBjørn Erik Pedersen
Fixes #13133
13 daysAdd js.BatchBjørn Erik Pedersen
Fixes #12626 Closes #7499 Closes #9978 Closes #12879 Closes #13113 Fixes #13116
2024-12-09tpl/tplimpl: Escape Markdown attributes in render hooks and shortcodesJoe Mooring
2024-12-04markup/tableofcontents: Cast Fragments.ToHTML args to intJoe Mooring
Closes #13107
2024-11-29Fix server edits of resources included in shortcode/hooksBjørn Erik Pedersen
Fixes #13093
2024-11-28Fix some typoshuajin tong
2024-11-18Make sure term is always setBjørn Erik Pedersen
Fixes #13063
2024-11-18dartsass: Add silenceDeprecations optionBjørn Erik Pedersen
Fixes #13045
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-16Fix extra newline/paragraphs issue with .RenderShortcodesBjørn Erik Pedersen
Fixes #13051
2024-11-13Add site.Store and hugo.Store and Shortcode.StoreBjørn Erik Pedersen
Closes #13021
2024-11-06Fix concurrent map read and map write in short page lookupsBjørn Erik Pedersen
Regression introduced in Hugo `v0.137.0`. Fixes #13019
2024-11-06Alias Page.Scratch to Page.Store (note)Bjørn Erik Pedersen
Fixes #13016
2024-11-04Do not watch directories with no mounted files in itBjørn Erik Pedersen
Fixes #12912 Fixes #13007
2024-11-03Fix stale pages on rebuilds in GetPage with short refsBjørn Erik Pedersen
Fixes #13004
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-10-24hugolib/commands: Fix stuck server error issuesBjørn Erik Pedersen
Fixes #11378
2024-10-20Make sure that HugoSites is always closed when doneBjørn Erik Pedersen
Including all the integration tests.
2024-10-14hugolib: Make .Site.Author deprecation warning clearerJulia Evans
Fixes #12269
2024-09-29tests: Address deprecation warnings and errorsJoe Mooring
2024-09-27resources/page: Validate predefined front matter datesJoe Mooring
Closes #10717
2024-09-17hugolib: Move hugolib/site_new.go into hugolib/site.goBjørn Erik Pedersen
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-05Fix stray end p tag in Obsidian callout titlesBjørn Erik Pedersen
Also remove test references to deprecated funcs now in ERROR. Closes #12828
2024-09-05Make ContentWithoutSummary return Content when summary is fetched from front ↵Bjørn Erik Pedersen
matter Fixes #12822
2024-09-01Rename hstring.RenderedHTML => hstring.HTMLBjørn Erik Pedersen
And add a comment about why it exists.
2024-08-31Make all renderhook Text methods return template.HTMLBjørn Erik Pedersen
2024-08-31Add Markdown render hooks for tablesBjørn Erik Pedersen
Fixes #9316 Fixes #12811
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-28hugolib: Add a test for overriding _internal templatesBjørn Erik Pedersen
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-09Add build time math renderingBjørn Erik Pedersen
While very useful on its own (and combined with the passthrough render hooks), this also serves as a proof of concept of using WASI (WebAssembly System Interface) modules in Hugo. This will be marked _experimental_ in the documentation. Not because it will be removed or changed in a dramatic way, but we need to think a little more how to best set up/configure similar services, define where these WASM files gets stored, maybe we can allow user provided WASM files plugins via Hugo Modules mounts etc. See these issues for more context: * https://github.com/gohugoio/hugo/issues/12736 * https://github.com/gohugoio/hugo/issues/12737 See #11927
2024-08-07markup: Add blockquote render hooksBjørn Erik Pedersen
Closes #12590
2024-08-07Add render hooks for inline and block passthrough snippetsBjørn Erik Pedersen
Fixes #11927
2024-08-05Fix deprecation errorsBjørn Erik Pedersen
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-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-20Switch EXIF libraryBjørn Erik Pedersen
Closes #10855 Closes #8586 Closes #8996
2024-07-17deps: Upgrade github.com/bep/gitmap v1.4.0 => v1.6.0 (note)Bjørn Erik Pedersen
Closes #8627
2024-07-04Fix site.GetPage, never do short lookups for paths with leadig slashBjørn Erik Pedersen
Fixes #12638
2024-07-01Fix it so publishDate rolls up to section, taxonomy, or term pagesBjørn Erik Pedersen
Fixes #12438