summaryrefslogtreecommitdiffstats
path: root/hugolib
AgeCommit message (Collapse)Author
2023-12-29Adjust site benchmarkBjørn Erik Pedersen
2023-12-29Simplify baseline benchmarkBjørn Erik Pedersen
2023-12-18all: Remove unused codeBjørn Erik Pedersen
Using x/tools/cmd/deadcode
2023-12-04tpl: Allow using page resources on the images page parameter for ↵Razon Yang
`opengraph`, `schema` and `twitter_cards` templates The page images selection order as follows: 1. Page's images parameter, image resources are supported. 2. Page's image resources that naming in *feature*, *cover* or *thumbnail* pattern. 3. If no page images specified, then the first one of site's images will be used as the fallback, supports site resources.
2023-12-04hugolib: Apply titleCaseStyle to automatic section pagesJoe Mooring
Fixes #11547
2023-11-02Add a new test helperBjørn Erik Pedersen
2023-11-01Avoid double printing INFO deprecation messagesBjørn Erik Pedersen
Fixes #11645
2023-10-31Fix deprecation printing on info levelBjørn Erik Pedersen
Fixes #11638
2023-10-30Make site.BaseURL and $pager.URL a stringBjørn Erik Pedersen
Was template.URL.
2023-10-30hugolib: Display correct markup identifier in error messageJoe Mooring
Fixes #11538
2023-10-28tpl/collections: Make delimit return a stringBjørn Erik Pedersen
Closes #10876 Closes #11502
2023-10-26Revise the deprecation loggingBjørn Erik Pedersen
This introduces a more automatic way of increasing the log levels for deprecation log statements based on the version it was deprecated. The thresholds are a little arbitrary, but * We log INFO for 6 releases * We log WARN for another 6 releases * THen ERROR (failing the build) This should give theme authors plenty of time to catch up without having the log filled with warnings.
2023-10-26Remove rest of the now unused emoji codeBjørn Erik Pedersen
See #11598
2023-10-24markdown: Pass emoji codes to yuin/goldmark-emojiJoe Mooring
Removes emoji code conversion from the page and shortcode parsers. Emoji codes in markdown are now passed to Goldmark, where the goldmark-emoji extension converts them to decimal numeric character references. This disables emoji rendering for the alternate content formats: html, asciidoc, org, pandoc, and rst. Fixes #7332 Fixes #11587 Closes #11598
2023-10-20tpl/debug: Add debug.TimerBjørn Erik Pedersen
Closes #11580
2023-10-18Add some convenient integration test helpersBjørn Erik Pedersen
2023-10-18hugolib: Deprecate .Site.DisqusShortnameJoe Mooring
Use .Site.Config.Services.Disqus.Shortname instead.
2023-10-17hugolib: Deprecate .Site.GoogleAnalyticsJoe Mooring
Use .Site.Config.Services.GoogleAnalytics.ID instead.
2023-10-06common/hugo: Add hugo.IsServer and hugo.IsDevelopmentJoe Mooring
And deprecate site.IsServer. Closes #11510
2023-09-24Add $image.ProcessBjørn Erik Pedersen
Which supports all the existing actions: resize, crop, fit, fill. But it also allows plain format conversions: ``` {{ $img = $img.Process "webp" }} ``` Which will be a simple re-encoding of the source image. Fixes #11483
2023-09-12Fix recently broken benchmarkBjørn Erik Pedersen
2023-09-12Adjust baseline benchmarksBjørn Erik Pedersen
2023-08-30Don't use the OS environment when creating config for docsBjørn Erik Pedersen
2023-08-30Fix RegularPagesRecursive for the home pageBjørn Erik Pedersen
Fixes #11396
2023-08-30Fix .RawContent for empty content pages (#11407)Bjørn Erik Pedersen
Fixes #11406
2023-08-24hugolib: Handle dropped errorLars Lehtonen
2023-08-23common/loggers: Fix typo in option nameOleksandr Redko
2023-08-23Fix it so disable a module does not disable transitive dependency required ↵Bjørn Erik Pedersen
by others The motivation behind the original implementation was probably to show disabled modules when running `hugo mod graph`. Fixes #11376
2023-08-21Avoid escaping HTML chars inside hugo_stats.jsonBjørn Erik Pedersen
Fixes #11371
2023-08-04Add retry in resources.GetRemote for temporary HTTP errorsBjørn Erik Pedersen
Fixes #11312
2023-08-03Add Page.RenderShortcodesBjørn Erik Pedersen
A layouts/shortcodes/include.html shortcode may look like this: ```html {{ $p := site.GetPage (.Get 0) }} {{ $p.RenderShortcodes }} ``` Fixes #7297
2023-07-30Fix so temporary images do not get publishedBjørn Erik Pedersen
Fixes #10255
2023-07-28Deprecate taxonomyTermBjørn Erik Pedersen
In favour of 'taxonomy' Closes #11256
2023-07-28Warn about unknown kinds in disableKindsBjørn Erik Pedersen
See #11256
2023-07-28Move all Kind constants to its own packageBjørn Erik Pedersen
See #11256
2023-07-27Fix multiple languages in HUGO_DISABLELANGUAGESBjørn Erik Pedersen
Fixes #11278
2023-07-19Fix broken handling of legacy taxonomyTerm in disableKindsBjørn Erik Pedersen
Fixes #11257
2023-07-19Create hugo_stats.json if it's mounted but does not existsBjørn Erik Pedersen
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-19Re-instate disableLiveReload as a config option (and not just a flag)Bjørn Erik Pedersen
Closes #11259
2023-07-16Fix setting config from env with complex (e.g. YAML) stringsBjørn Erik Pedersen
So you can do ``` HUGO_OUTPUTS="home: [rss]" hugo ``` And similar. Fixes #11249
2023-07-15Fix for data mounts in sub foldersDavid Karlsson
Before this change, data files from Hugo modules were always mounted at the root of the `data` directory. The File and FileMetaInfo structs for modules are different from 'native' data directories. This changes how the keyParts for data files are generated so that data from modules or native directories are treated the same.
2023-07-13Improve behavior of defaultContentLanguageInSubdir when only the default ↵Bjørn Erik Pedersen
language is enabled 1 .Create sitemapindex in root of publishDir (will contain link to sitemap.xml in defaultContentLanguage site) 2. Create index.html in root of publishDir (will redirect to defaultContentLanguage site) Fixes #11229
2023-07-13Return error when .Render is invoked without argBjørn Erik Pedersen
Fixes #11243
2023-07-08Restore language.disabled configBjørn Erik Pedersen
Fixes #11219
2023-07-08Fix static content files multilingual root regressionBjørn Erik Pedersen
Fixes #11223
2023-07-08Fix defaultContentLanguageInSubdir with only 1 languageBjørn Erik Pedersen
Fixes #10064
2023-07-04Bump github.com/bep/clock v0.3.0 to renamed github.com/bep/clocks v0.5.0Anthony Fok
2023-07-03Fix buildStats when tags and classes are disabledBjørn Erik Pedersen
Fixes #11202
2023-07-02Rework the build.writeStats structBjørn Erik Pedersen
Mostly to make it easier to toggle on/off this feature from the env. See #11191
2023-07-01Make build.writeStats a structBjørn Erik Pedersen
So you can do ```toml [build.writeStats] tags = true classes = true ids = false ``` Fixes #11191