summaryrefslogtreecommitdiffstats
path: root/hugolib
AgeCommit message (Collapse)Author
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
2023-06-30Only print the path warnings onceBjørn Erik Pedersen
We could reset and rerun it on server rebuilds, but that report needs a full build to make sense. Also clean up the config vs flags in this area: Make all config settings match the flags e.g. `printPathWarnings`, but set up aliases for the old. Fixes #11187
2023-06-29Misc permalinks adjustmentsBjørn Erik Pedersen
* Move config loading to the page package * Fix a lower bound panic for the `:sections` slice syntax. * Always return the `:title` * Add some permalinks integration tests * Also see issues below Fixes #9448 Fixes #11184 See #8523
2023-06-28Fix output formats and media type per language config regressionBjørn Erik Pedersen
Fixes #11159
2023-06-28Don't panic on invalid security whitelist regexpBjørn Erik Pedersen
Fixes #11176
2023-06-27Fix false path warnings with resources.PostProcessBjørn Erik Pedersen
Fixes #7735
2023-06-26resources/page: Allow section and taxonomy pages to have a permalink ↵Mai-Lapyst
configuration Allows using permalink configuration for sections (branch bundles) and also for taxonomy pages. Extends the current permalink configuration to be able to specified per page kind while also staying backward compatible: all permalink patterns not dedicated to a certain kind, get automatically added for both normal pages and term pages. Fixes #8523
2023-06-19all: Fix typos in function names and commentsOleksandr Redko
2023-06-18Replace the old log setup, with structured logging etc.Bjørn Erik Pedersen
Fixes #11124
2023-06-14Re-add site.RSSLink (and deprecate it)Bjørn Erik Pedersen
Fixes #11110
2023-06-14Fix .Width and .Height for animated gifsBjørn Erik Pedersen
Fixes #11079
2023-06-13Fix config merge regression with root slices (e.g. disableKinds)Bjørn Erik Pedersen
Fixes #11089
2023-06-12config: Remove unexpected _merge keys introduced in author and social mapsBjørn Erik Pedersen
Fixes #11083
2023-06-12Upgrade to v2 of the Dart Sass Embedded ProtocolBjørn Erik Pedersen
Fixes #11059
2023-06-02Fix menuItem.URL when pageRef is not setBjørn Erik Pedersen
Fixes #11062
2023-06-02Don't inject livereload script on hugo -wBjørn Erik Pedersen
Fixes #11061
2023-06-01commands: Add --lang to hugo configBjørn Erik Pedersen
Fixes #11057
2023-06-01Make sure any default mounts show up in "hugo config"Bjørn Erik Pedersen
Fixes #11040
2023-05-30Fail on invalid defaultContentLanguageBjørn Erik Pedersen
Fixes #11044
2023-05-30Avoid panic in invalid language configBjørn Erik Pedersen
Fixes #11046
2023-05-30Don't panic on empty yaml config paramsBjørn Erik Pedersen
Fixes #11047
2023-05-28Fix it so languageCode on top level config still worksBjørn Erik Pedersen
This is common for monolingual sites, and we broke this in Hugo 0.112.4. Fixes #11037
2023-05-27Add language.LanguageCodeBjørn Erik Pedersen
But keep an alias at Site Closes #11027
2023-05-24Fix regression with site.IsServer when not running a serverBjørn Erik Pedersen
Fixes #11006
2023-05-23Fix regression when config for OutputFormat.BaseName is an empty stringBjørn Erik Pedersen
Fixes #11000
2023-05-22Revert "postcss: Improve validation of option 'config'"Bjørn Erik Pedersen
This reverts commit 9a0370e8eb71fed3ac04984020b6aa95c43f22ab. Closes #10990
2023-05-22postcss: Improve validation of option 'config'Andreas Deininger
2023-05-22Avoid writing to hugo_stats.json when there are no changesBjørn Erik Pedersen
Fixes #10985
2023-05-22Add cache busting config to support Tailwind 3Bjørn Erik Pedersen
Fixes #10974
2023-05-20Allow whitelisting mediaTypes used in resources.GetRemoteBjørn Erik Pedersen
Fixes #10286