aboutsummaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2024-04-14github: Format GitHub actions filesBjørn Erik Pedersen
2024-04-13hugolib: Display server address after each rebuildJoe Mooring
Closes #12359
2024-04-12resources/page: Add taxonomies Page methodJoe Mooring
Closes #12316
2024-04-11commands: Adjust completionsBjørn Erik Pedersen
2024-04-11completion: Improve existing argument completions, add many moreVille Skyttä
Do not offer filenames to arguments not taking one, complete arguments of options taking resource kinds, directory names, --logLevel, release --step, config and new --format. As an internal refactoring, use higher level functions to set flag completions. SetAnnotation works, but is more verbose than alternatives, and uses bash specific wording. While at it, move setting completions next to flag definitions consistently. Remove superfluous --destination completer setting, which is already set elsewhere.
2024-04-11Upgrade to Go 1.22.2Bjørn Erik Pedersen
Closes #12351
2024-04-11build(deps): bump golang.org/x/tools from 0.19.0 to 0.20.0dependabot[bot]
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.19.0 to 0.20.0. - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/golang/tools/compare/v0.19.0...v0.20.0) --- updated-dependencies: - dependency-name: golang.org/x/tools dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-04-11github: Fix CI buildBjørn Erik Pedersen
2024-04-11all: Fix duplicate words in commentsEitan Adler
2024-04-11build(deps): bump golang.org/x/net from 0.23.0 to 0.24.0dependabot[bot]
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.24.0. - [Commits](https://github.com/golang/net/compare/v0.23.0...v0.24.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-04-11build(deps): bump github.com/getkin/kin-openapi from 0.123.0 to 0.124.0dependabot[bot]
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.123.0 to 0.124.0. - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](https://github.com/getkin/kin-openapi/compare/v0.123.0...v0.124.0) --- updated-dependencies: - dependency-name: github.com/getkin/kin-openapi dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-04-11all: Typo fixesChristian Oliff
2024-04-08babel: Run go fmtBjørn Erik Pedersen
2024-04-08babel: Close file before removingguangwu
2024-04-05bump golang.org/x/mod from 0.16.0 to 0.17.0dependabot[bot]
Bumps [golang.org/x/mod](https://github.com/golang/mod) from 0.16.0 to 0.17.0. - [Commits](https://github.com/golang/mod/compare/v0.16.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/mod dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-04-05hugolib: Fix regression for blank summariescuregit
Fix regression in content summarization so that we can use empty summary by using the manual summary divider. Since v0.123, there has been the regression that causes Hugo to use automatic summary generation when the manual summary results in an empty string, even if there is a `<!--more-->` summary divider.
2024-04-05Fix sectionPagesMenu for pages in root levelBjørn Erik Pedersen
Fixes #12306
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 <[email protected]>
2024-04-05build(deps): bump github.com/pelletier/go-toml/v2 from 2.1.1 to 2.2.0dependabot[bot]
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.1.1 to 2.2.0. - [Release notes](https://github.com/pelletier/go-toml/releases) - [Changelog](https://github.com/pelletier/go-toml/blob/v2/.goreleaser.yaml) - [Commits](https://github.com/pelletier/go-toml/compare/v2.1.1...v2.2.0) --- updated-dependencies: - dependency-name: github.com/pelletier/go-toml/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-04-05build(deps): bump github.com/yuin/goldmark from 1.7.0 to 1.7.1dependabot[bot]
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.0 to 1.7.1. - [Release notes](https://github.com/yuin/goldmark/releases) - [Commits](https://github.com/yuin/goldmark/compare/v1.7.0...v1.7.1) --- updated-dependencies: - dependency-name: github.com/yuin/goldmark dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
2024-04-04tpl/strings: Improve type checkingJoe Mooring
2024-04-04build(deps): bump github.com/aws/aws-sdk-go-v2/service/cloudfrontdependabot[bot]
Bumps [github.com/aws/aws-sdk-go-v2/service/cloudfront](https://github.com/aws/aws-sdk-go-v2) from 1.32.6 to 1.35.4. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/fsx/v1.32.6...service/ecs/v1.35.4) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/cloudfront dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-04-04build(deps): bump golang.org/x/net from 0.22.0 to 0.23.0dependabot[bot]
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0. - [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
2024-04-04tpl/tplimpl: Improve youtube shortcodeJoe Mooring
Changes: - Add query string params for controls, loop, mute, start, and end - Add iframe loading attribute - Obtain default iframe title from YouTube oEmbed API - Fix autoplay feature - Improve readability Closes #3694 Closes #9213 Closes #10520 Closes #10575 Closes #10576 Co-authored-by: sgharms <[email protected]>
2024-04-04errors: Return error from cast.ToStringE() consistentlyseiya
2024-04-02tpl/tplimpl: Improve embedded opengraph templateJoe Mooring
Changes: - Add tags per documentation - Prefer site.Title over site.Params.title - Plainify titles, tags, and descriptions - Add fallback values for locale - Fix pages related by series - Improve readability Closes #8296 Closes #8698 Closes #8991 Closes #9818 Closes #9866 Closes #10647 Co-authored-by: tomy0000000 <[email protected]> Co-authored-by: sean-au <[email protected]>
2024-04-02tpl/strings: Create strings.Diff template functionJoe Mooring
Closes #12330
2024-04-02Fix resource bundling for overlapping page.md vs page.txtBjørn Erik Pedersen
Fixes #12320
2024-04-02tpl/tplimpl: Optionally exclude content from sitemapJoe Mooring
Define global inclusion/exclusion in site configuration, and override via front matter. For example, to exclude a page from the sitemap: [sitemap] disable = true # default is false Closes #653 Closes #12282 Co-authored-by: kolappannathan <[email protected]> Co-authored-by: felicianotech <[email protected]>
2024-04-01tpl/tplimpl: Remove trailing slash from void elementsJoe Mooring
Closes #11867
2024-03-30tpl/tplimpl: Update RSS templateJoe Mooring
- Use publication date for pubdate - Include version in generator element Closes #3918 Closes #11692
2024-03-28tpl/tplimpl: Update schema templateJoe Mooring
Changes: - Remove trailing comma from list of keywords. - Improve keywords precedence: 1. Use "keywords" term page titles. 2. Use "keywords" from front matter if "keywords" is not a taxonomy. 3. Use "tags" term page titles. 4. Use term page titles from all taxonomies. - Enable schema for all page kinds, previously limited to kind = page. - Remove trailing slashes from void elements. - Improve readability. Closes #7570 Co-authored by: 0urobor0s <[email protected]>
2024-03-27resources: Use different cache key when copying resourcesJoe Mooring
Closes #10412 Closes #12310
2024-03-26Fix panic with debug.Dump with Page when running the serverBjørn Erik Pedersen
This replaces the current implementation with `json.MarshalIndent` which doesn't produce the same output, but at least it doesn't crash. There's a bug in the upstream `litter` library. This can probably be fixed, but that needs to wait. I have tested `go-spew` which does not crash, but it is very data racy in this context. FIxes #12309
2024-03-26tpl/tplimpl: Update Google Analytics template and configJoe Mooring
Google Analytics 4 (GA4) replaced Google Universal Analytics (UA) effective 1 July 2023. See https://support.google.com/analytics/answer/11583528. Changes: - Update tpl/tplimpl/embedded/templates/google_analytics.html - Remove tpl/tplimpl/embedded/templates/google_analytics_async.html - Remove extraneous config settings Closes #11802 Closes #10093
2024-03-26hugolib: Conditionally suppress .Site.Author deprecation noticeJoe Mooring
Suppress the .Site.Author deprecation notice unless the Author key is present and not empty in the site configuration. Closes #12297
2024-03-22resources/page: Fix GoDoc commentGeorge Ma
2024-03-21markup/asciidocext: Add Level to Heading structJoe Mooring
Closes #12291
2024-03-20releaser: Prepare repository for 0.125.0-DEVrelease-0.124.1hugoreleaser
[ci skip]
2024-03-20releaser: Bump versions for release of 0.124.1v0.124.1hugoreleaser
[ci skip]
2024-03-20Fix potential deadlock in TranslationsBjørn Erik Pedersen
Fixes #12129
2024-03-20Fix rebuild when changing mixed case named templatesBjørn Erik Pedersen
Fixes #12165
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-19Fix regression for outputs defined in front matter for term pagesBjørn Erik Pedersen
Fixes #12275
2024-03-16releaser: Prepare repository for 0.125.0-DEVrelease-0.124.0hugoreleaser
[ci skip]
2024-03-16releaser: Bump versions for release of 0.124.0v0.124.0hugoreleaser
[ci skip]
2024-03-16docs: Regen CLI docsBjørn Erik Pedersen
2024-03-16docs: Regen docshelperBjørn Erik Pedersen
2024-03-16Add segments config + --renderSegments flagBjørn Erik Pedersen
Named segments can be defined in `hugo.toml`. * Eeach segment consists of zero or more `exclude` filters and zero or more `include` filters. * Eeach filter consists of one or more field Glob matchers. * Eeach filter in a section (`exclude` or `include`) is ORed together, each matcher in a filter is ANDed together. The current list of fields that can be filtered are: * path as defined in https://gohugo.io/methods/page/path/ * kind * lang * output (output format, e.g. html). It is recommended to put coarse grained filters (e.g. for language and output format) in the excludes section, e.g.: ```toml [segments.segment1] [[segments.segment1.excludes]] lang = "n*" [[segments.segment1.excludes]] no = "en" output = "rss" [[segments.segment1.includes]] term = "{home,term,taxonomy}" [[segments.segment1.includes]] path = "{/docs,/docs/**}" ``` By default, Hugo will render all segments, but you can enable filters by setting the `renderSegments` option or `--renderSegments` flag, e.g: ``` hugo --renderSegments segment1,segment2 ``` For segment `segment1` in the configuration above, this will: * Skip rendering of all languages matching `n*`, e.g. `no`. * Skip rendering of the output format `rss` for the `en` language. * It will render all pages of kind `home`, `term` or `taxonomy` * It will render the `/docs` section and all pages below. Fixes #10106
2024-03-16Fix .Parent when there are overlapping regular pages inbetweenBjørn Erik Pedersen
Fixes #12263