summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2022-06-16docs: Regen docshelperBjørn Erik Pedersen
2022-06-16Merge commit '475f87f685439de0f907a9ffc29bfd1361eb1c59'Bjørn Erik Pedersen
2022-06-16Squashed 'docs/' changes from 96fdc246c..30f32a624Bjørn Erik Pedersen
30f32a624 Update scss-sass.md 503130186 Update scss-sass.md cbfaa6704 Remove references to outdated Blackfriday markdown processor (#1748) e43948d26 netlify: Hugo 0.100.2 aaabe0ee9 Merge branch 'tempv0.100.2' bc615f257 tpl/path: Add path.BaseName function 5dddbf95e Add Chinese translation for _documentation and _index.md b1e4f3200 Add translation for search tools 23281633a Update introduction.md 3abb5fb5d netlify: Hugo 0.100.1 644ed3b01 Update faq.md 54f377051 Add some lines about resources.Copy 82cf08355 Remove most Blackfriday references bfbe5aaf3 netlify: Update to Hugo 0.100.0 8b6f8577f docs: Regen CLI docs 858a5d39c docs: Regen docs helper 5037d504f Merge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22' 03ca7be5b Fix indentation in highlight shortcode git-subtree-dir: docs git-subtree-split: 30f32a62433a6d62b680a2dd874c72bb8fb0b728
2022-06-15markup/highlight: Add hl_inline optionBjørn Erik Pedersen
Closes #9442 Closes #9635 Closes #9638
2022-06-15deps: Update github.com/alecthomas/chroma/v2 v2.1.0 => v2.2.0Bjørn Erik Pedersen
2022-06-15build(deps): bump github.com/clbanning/mxj/v2 from 2.5.5 to 2.5.6dependabot[bot]
Bumps [github.com/clbanning/mxj/v2](https://github.com/clbanning/mxj) from 2.5.5 to 2.5.6. - [Release notes](https://github.com/clbanning/mxj/releases) - [Commits](https://github.com/clbanning/mxj/compare/v2.5.5...v2.5.6) --- updated-dependencies: - dependency-name: github.com/clbanning/mxj/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15build(deps): bump github.com/pelletier/go-toml/v2 from 2.0.1 to 2.0.2dependabot[bot]
Bumps [github.com/pelletier/go-toml/v2](https://github.com/pelletier/go-toml) from 2.0.1 to 2.0.2. - [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.0.1...v2.0.2) --- updated-dependencies: - dependency-name: github.com/pelletier/go-toml/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15build(deps): bump golang.org/x/tools from 0.1.10 to 0.1.11dependabot[bot]
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.10 to 0.1.11. - [Release notes](https://github.com/golang/tools/releases) - [Commits](https://github.com/golang/tools/compare/v0.1.10...v0.1.11) --- updated-dependencies: - dependency-name: golang.org/x/tools dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15build(deps): bump github.com/tdewolff/minify/v2 from 2.11.5 to 2.11.10dependabot[bot]
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify) from 2.11.5 to 2.11.10. - [Release notes](https://github.com/tdewolff/minify/releases) - [Commits](https://github.com/tdewolff/minify/compare/v2.11.5...v2.11.10) --- updated-dependencies: - dependency-name: github.com/tdewolff/minify/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15build(deps): bump github.com/evanw/esbuild from 0.14.42 to 0.14.43dependabot[bot]
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.42 to 0.14.43. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.14.42...v0.14.43) --- updated-dependencies: - dependency-name: github.com/evanw/esbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15build(deps): bump github.com/getkin/kin-openapi from 0.94.0 to 0.97.0dependabot[bot]
Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.94.0 to 0.97.0. - [Release notes](https://github.com/getkin/kin-openapi/releases) - [Commits](https://github.com/getkin/kin-openapi/compare/v0.94.0...v0.97.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] <support@github.com>
2022-06-14deps: Udpate to github.com/alecthomas/chroma/v2Bjørn Erik Pedersen
Fixes #9932 Fixes #9931
2022-06-14common: Add hugo.GoVersionKhayyam Saleem
Closes #9849. This enables `hugo.GoVersion` in templates to access the version of Go that the Hugo binary was built with.
2022-06-14resources: Panic on Copy of Resource with .ErrBjørn Erik Pedersen
Fixes #10006
2022-06-13resources/page: Add :slugorfilename attributeDawid Potocki
Fixes #4739, #385
2022-06-13Respect NO_COLORBjørn Erik Pedersen
Fixes #10004
2022-06-13readme: Update dependency listAndreas Deininger
2022-06-13Fix relURL with leading slash when baseURL includes a subdirectoryBjørn Erik Pedersen
Fixes #9994
2022-06-12js: Resolve index.esm.jsBjørn Erik Pedersen
Same logic as for `index.{js,ts...}` files applies; if both `index.esm.js` and `index.js` exists (unlikely), you need to use the name with extension when importing, else the `index.js` will win. Fixes #8631
2022-06-12Add animated GIF supportBjørn Erik Pedersen
Note that this is for GIFs only (and not Webp). Fixes #5030
2022-06-12resources: Add a Gif source file to golden testsBjørn Erik Pedersen
2022-06-08releaser: Prepare repository for 0.101.0-DEVhugoreleaser
[ci skip]
2022-06-08releaser: Bump versions for release of 0.100.2v0.100.2hugoreleaser
[ci skip]
2022-06-08releaser: Add release notes for 0.100.2hugoreleaser
[ci skip]
2022-06-07Update CONTRIBUTING.mdBjørn Erik Pedersen
2022-06-07Fix raw TOML dates in where/eqBjørn Erik Pedersen
Note that this has only been a problem with "raw dates" in TOML files in /data and similar. The predefined front matter dates `.Date` etc. are converted to a Go Time and has worked fine even after upgrading to v2 of the go-toml lib. Fixes #9979
2022-06-06deps: Update to github.com/pelletier/go-toml/v2 v2.0.1Anthony Fok
2022-06-06tpl/path: Add path.BaseName functionJoe Mooring
Closes #9973
2022-06-05livereload: Use `X-Forwarded-Host` for Codespacesatotake
Codespace has 2 types of usage 1. in browser 2. vscode on local computer As long as you select 2 (on local), Hugo handles livereload expectedly. But if you use it in browser, Hugo does not reload on file change, as #9936 said. This issue happens because `CheckOrigin` always fails. Remote server could rewrite request host name. Fix this by respecting `X-Forwarded-Host` header during origin checking After merging this, you can preview changes lively with codespaece in browser. ```sh hugo server --liveReloadPort 443 ``` Close #9936
2022-06-04helpers: Fix panic with invalid defaultMarkdownHandlerBjørn Erik Pedersen
Fixes #9968
2022-06-03resources: Register MediaTypes before buildPaul van Brouwershaven
Fixes #9971
2022-06-01releaser: Prepare repository for 0.101.0-DEVhugoreleaser
[ci skip]
2022-06-01releaser: Bump versions for release of 0.100.1v0.100.1hugoreleaser
[ci skip]
2022-06-01releaser: Add release notes for 0.100.1hugoreleaser
[ci skip]
2022-06-01Fix panic with markdownify/RenderString with shortcode on Page with no ↵Bjørn Erik Pedersen
content file Fixes #9959
2022-05-31releaser: Prepare repository for 0.101.0-DEVhugoreleaser
[ci skip]
2022-05-31releaser: Bump versions for release of 0.100.0v0.100.0hugoreleaser
[ci skip]
2022-05-31releaser: Add release notes for 0.100.0hugoreleaser
[ci skip]
2022-05-31docs: Regen CLI docsBjørn Erik Pedersen
2022-05-31docs: Regen docs helperBjørn Erik Pedersen
2022-05-31Merge commit 'e4bfe59c4e043c92d3992587d8c64d264b262a22'Bjørn Erik Pedersen
2022-05-31Squashed 'docs/' changes from 2d9da3a56..96fdc246cBjørn Erik Pedersen
96fdc246c Fix outdated i18n warnings flag mention on the multilingual page 39d197345 netlify: Hugo 0.99.1 fafd5070e Typo: Vriables > Variables 348c4e237 Update postcss.md 924fa76b6 netlify: Hugo 0.99.0 bb3f02ac1 Merge branch 'tempv0.99.0' bdd0b6eaf Update usage.md f562ff99d postcss: Fix import error handling 5d73f215f docs: Regen CLI docs git-subtree-dir: docs git-subtree-split: 96fdc246cc901a4c4ce6a28bab681fda2cff355b
2022-05-31Fix indentation in highlight shortcodeBjørn Erik Pedersen
This commit adds a new `.InnerDeindent` method to the shortcode context, which is `.Inner` with any indendation removed. This is then used in the built-in `highlight` shortcode to prevent the extra whitespace getting hightlighted. Fixes #4717
2022-05-30Make .RenderString render shortcodesBjørn Erik Pedersen
Fixes #6703
2022-05-30Improve shortcode indentation handlingBjørn Erik Pedersen
* Record the leading whitespace (tabs, spaces) before the shortcode when parsing the page. * Apply that indentation to the rendered result of shortcodes without inner content (where the user will apply indentation). Fixes #9946
2022-05-30Add Markdown as an output formatBjørn Erik Pedersen
The motivation behind this is not to make it easier to publish Markdown files, as that sounds unusual. This is mainly meant for shortcodes that produces Markdown to be inlined. You would do this by creating shortcodes with `*.md` suffix (e.g. `layouts/shortcodes/myshortcode.md`). This output format is defined as plain text, and will use Go's much more lenient text template parser. Updates #9821
2022-05-30build(deps): bump github.com/evanw/esbuild from 0.14.39 to 0.14.42dependabot[bot]
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.14.39 to 0.14.42. - [Release notes](https://github.com/evanw/esbuild/releases) - [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md) - [Commits](https://github.com/evanw/esbuild/compare/v0.14.39...v0.14.42) --- updated-dependencies: - dependency-name: github.com/evanw/esbuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-05-29Run go mod tidyBjørn Erik Pedersen
2022-05-29Add a shortcode benchmarkBjørn Erik Pedersen
2022-05-29Remove Blackfriday markdown engineBjørn Erik Pedersen
It has been deprecated for a long time, its v1 version is not maintained anymore, and there are many known issues. Goldmark should be a mature replacement by now. Closes #9934