diff --git a/content/en/content-management/menus.md b/content/en/content-management/menus.md index 9ac6f8bff..6b89c44da 100644 --- a/content/en/content-management/menus.md +++ b/content/en/content-management/menus.md @@ -113,6 +113,24 @@ This means that `.Title` will be used unless `.LinkTitle` is present, etc. In pr In this example, the top level of the menu is defined in your [site `config` file][config]. All content entries are attached to one of these entries via the `.Parent` field. +## Params + +You can also add user-defined content to menu items via the `params` field. + +A common use case is to define a custom param to add a css class to a specific menu item. + +{{< code-toggle file="config" >}} +[[menu.main]] + name = "about hugo" + pre = "" + weight = -110 + identifier = "about" + url = "/about/" + [menu.main.params] + class = "highlight-menu-item" +{{}} + + ## Render Menus See [Menu Templates](/templates/menu-templates/) for information on how to render your site menus within your templates. diff --git a/content/en/content-management/page-resources.md b/content/en/content-management/page-resources.md index 75c40ce6e..bdc73a7c3 100644 --- a/content/en/content-management/page-resources.md +++ b/content/en/content-management/page-resources.md @@ -21,7 +21,9 @@ the lowest page they are bundled with, and simple which names does not contain ` ## Properties ResourceType -: The main type of the resource. For example, a file of MIME type `image/jpeg` has the ResourceType `image`. +: The main type of the resource's [Media Type](/templates/output-formats/#media-types). For example, a file of MIME type `image/jpeg` has the ResourceType `image`. A `Page` will have `ResourceType` with value `page`. + +{{< new-in "0.80.0" >}} Note that we in Hugo `v0.80.0` fixed a bug where non-image resources (e.g. video) would return the MIME sub type, e.g. `json`. Name : Default value is the filename (relative to the owning page). Can be set in front matter. diff --git a/content/en/content-management/related.md b/content/en/content-management/related.md index ce0cafa09..ec3c3dd6f 100644 --- a/content/en/content-management/related.md +++ b/content/en/content-management/related.md @@ -84,6 +84,8 @@ related: weight: 10 {{< /code-toggle >}} +Note that if you have configured `tags` as a taxonomy, `tags` will also be added to the default configuration abve with the weight of `80`. + Custom configuration should be set using the same syntax. {{% note %}} diff --git a/content/en/content-management/shortcodes.md b/content/en/content-management/shortcodes.md index a298bc425..2b4d0d632 100644 --- a/content/en/content-management/shortcodes.md +++ b/content/en/content-management/shortcodes.md @@ -398,6 +398,13 @@ Furthermore, you can automatically start playback of the embedded video by setti {{}} {{< /code >}} +For [accessibility reasons](https://dequeuniversity.com/tips/provide-iframe-titles), it's best to provide a title for your YouTube video. You can do this using the shortcode by providing a `title` parameter. If no title is provided, a default of "YouTube Video" will be used. + +{{< code file="example-youtube-input-with-title.md" >}} +{{}} +{{< /code >}} + + #### Example `youtube` Output Using the preceding `youtube` example, the following HTML will be added to your rendered website's markup: diff --git a/content/en/functions/images/index.md b/content/en/functions/images/index.md index e83d41154..e61a10916 100644 --- a/content/en/functions/images/index.md +++ b/content/en/functions/images/index.md @@ -17,6 +17,30 @@ toc: true See [images.Filter](#filter) for how to apply these filters to an image. +### Overlay + +{{< new-in "0.80.0" >}} + +{{% funcsig %}} +images.Overlay SRC X Y +{{% /funcsig %}} + +Overlay creates a filter that overlays the source image at position x y, e.g: + + +```go-html-template +{{ $logoFilter := (images.Overlay $logo 50 50 ) }} +{{ $img := $img | images.Filter $logoFilter }} +``` + +A shorter version of the above, if you only need to apply the filter once: + +```go-html-template +{{ $img := $img.Filter (images.Overlay $logo 50 50 )}} +``` + +The above will overlay `$logo` in the upper left corner of `$img` (at position `x=50, y=50`). + ### Brightness {{% funcsig %}} diff --git a/content/en/functions/path.Split.md b/content/en/functions/path.Split.md index d6bc15ce9..2d6aff6bb 100644 --- a/content/en/functions/path.Split.md +++ b/content/en/functions/path.Split.md @@ -25,7 +25,7 @@ If there is no slash in `PATH`, it returns an empty directory and the base is se **Note:** On Windows, `PATH` is converted to slash (`/`) separators. ``` -{{ path.Split "a/news.html" }} → "a/", "news.html" -{{ path.Split "news.html" }} → "", "news.html" -{{ path.Split "a/b/c" }} → "a/b/", "c" +{{ $dirFile := path.Split "a/news.html" }} → $dirDile.Dir → "a/", $dirFile.File → "news.html" +{{ $dirFile := path.Split "news.html" }} → $dirDile.Dir → "", $dirDile.File → "news.html" +{{ $dirFile := path.Split "a/b/c" }} → $dirDile.Dir → "a/b/", $dirDile.File → "c" ``` diff --git a/content/en/functions/substr.md b/content/en/functions/substr.md index feb25aa1b..c02141ab2 100644 --- a/content/en/functions/substr.md +++ b/content/en/functions/substr.md @@ -26,6 +26,21 @@ To extract characters from the end of the string, use a negative start number. In addition, borrowing from the extended behavior described at https://php.net substr, if `length` is given and is negative, that number of characters will be omitted from the end of string. ``` -{{substr "BatMan" 0 -3}} → "Bat" -{{substr "BatMan" 3 3}} → "Man" +{{ substr "abcdef" 0 }} → "abcdef" +{{ substr "abcdef" 1 }} → "bcdef" + +{{ substr "abcdef" 0 1 }} → "a" +{{ substr "abcdef" 1 1 }} → "b" + +{{ substr "abcdef" 0 -1 }} → "abcde" +{{ substr "abcdef" 1 -1 }} → "bcde" + +{{ substr "abcdef" -1 }} → "f" +{{ substr "abcdef" -2 }} → "ef" + +{{ substr "abcdef" -1 1 }} → "f" +{{ substr "abcdef" -2 1 }} → "e" + +{{ substr "abcdef" -3 -1 }} → "de" +{{ substr "abcdef" -3 -2 }} → "d" ``` diff --git a/content/en/getting-started/configuration.md b/content/en/getting-started/configuration.md index 3a415ec15..97763c002 100644 --- a/content/en/getting-started/configuration.md +++ b/content/en/getting-started/configuration.md @@ -326,7 +326,7 @@ writeStats {{< new-in "0.69.0" >}} : When enabled, a file named `hugo_stats.json` will be written to your project root with some aggregated data about the build, e.g. list of HTML entities published to be used to do [CSS pruning](/hugo-pipes/postprocess/#css-purging-with-postcss). If you're only using this for the production build, you should consider placing it below [config/production](/getting-started/configuration/#configuration-directory). It's also worth mentioning that, due to the nature of the partial server builds, new HTML entities will be added when you add or change them while the server is running, but the old values will not be removed until you restart the server or run a regular `hugo` build. noJSConfigInAssets {{< new-in "0.78.0" >}} -: Turn off writing a `jsconfig.js` into your `/assets` folder with mapping of imports from running [js.Build](https://gohugo.io/hugo-pipes/js). This file is intended to help with intellisense/navigation inside code editors such as [VS Code](https://code.visualstudio.com/). Note that if you do not use `js.Build`, no file will be written. +: Turn off writing a `jsconfig.json` into your `/assets` folder with mapping of imports from running [js.Build](https://gohugo.io/hugo-pipes/js). This file is intended to help with intellisense/navigation inside code editors such as [VS Code](https://code.visualstudio.com/). Note that if you do not use `js.Build`, no file will be written. ## Configure Server @@ -438,6 +438,8 @@ Names must be prefixed with `HUGO_` and the configuration key must be set in upp To set config params, prefix the name with `HUGO_PARAMS_` {{% /note %}} +{{< new-in "0.79.0" >}} If you are using snake_cased variable names, the above will not work, so since Hugo 0.79.0 Hugo determines the delimiter to use by the first character after `HUGO`. This allows you to define environment variables on the form `HUGOxPARAMSxAPI_KEY=abcdefgh`, using any [allowed](https://stackoverflow.com/questions/2821043/allowed-characters-in-linux-environment-variable-names#:~:text=So%20names%20may%20contain%20any,not%20begin%20with%20a%20digit.) delimiter. + {{< todo >}} Test and document setting params via JSON env var. {{< /todo >}} diff --git a/content/en/hugo-pipes/babel.md b/content/en/hugo-pipes/babel.md index 9688626d9..76a1d441d 100755 --- a/content/en/hugo-pipes/babel.md +++ b/content/en/hugo-pipes/babel.md @@ -29,7 +29,7 @@ If you are using the Hugo Snap package, Babel and plugin(s) need to be installed {{< new-in "v0.75.0" >}} -In Hugo `v0.75` we improved the way we resolve JS configuration and dependencies. One of them is that we now adds the main project's `node_modules` to `NODE_PATH` when running Babel and similar tools. There are some known [issues](https://github.com/babel/babel/issues/5618) with Babel in this area, so if you have a `babel.config.js` living in a Hugo Module (and not in the project itself), we recommend using `require` to load the presets/plugins, e.g.: +In Hugo `v0.75` we improved the way we resolve JS configuration and dependencies. One of them is that we now add the main project's `node_modules` to `NODE_PATH` when running Babel and similar tools. There are some known [issues](https://github.com/babel/babel/issues/5618) with Babel in this area, so if you have a `babel.config.js` living in a Hugo Module (and not in the project itself), we recommend using `require` to load the presets/plugins, e.g.: ```js diff --git a/content/en/hugo-pipes/js.md b/content/en/hugo-pipes/js.md index fd8697264..a34454a93 100644 --- a/content/en/hugo-pipes/js.md +++ b/content/en/hugo-pipes/js.md @@ -115,7 +115,7 @@ And then in your JS file: import * as params from '@params'; ``` -Hugo will, by default, generate a `assets/jsconfig.js` file that maps the imports. This is useful for navigation/intellisense help inside code editors, but if you don't need/want it, you can [turn it off](/getting-started/configuration/#configure-build). +Hugo will, by default, generate a `assets/jsconfig.json` file that maps the imports. This is useful for navigation/intellisense help inside code editors, but if you don't need/want it, you can [turn it off](/getting-started/configuration/#configure-build). @@ -147,27 +147,27 @@ Or with options: #### Shimming a JS library -It's a very common practice to load external libraries using CDN rather than importing all packages in a single JS file, making it bulky. To do the same with Hugo, you'll need to shim the libraries as follows. In this example, `algoliasearch` and `instantsearch.js` will be shimmed. +It's a common practice to load external libraries using a content delivery network (CDN) rather than importing all packages in a single JS file. To load scripts from a CDN with Hugo, you'll need to shim the libraries as follows. In this example, `react` and `react-dom` will be shimmed. -Firstly, add the following to your project's `package.json`: +First, add React and ReactDOM [CDN script tags](https://reactjs.org/docs/add-react-to-a-website.html#tip-minify-javascript-for-production) in your HTML template files. Then create `assets/js/shims/react.js` and `assets/js/shims/react-dom.js` with the following contents: +```js +// In assets/js/shims/react.js +module.exports = window.React; + +// In assets/js/shims/react-dom.js +module.exports = window.ReactDOM; +``` + +Finally, add the following to your project's `package.json`: ```json { "browser": { - "algoliasearch/lite": "./public/js/shims/algoliasearch.js", - "instantsearch.js/es/lib/main": "./public/js/shims/instantsearch.js" + "react": "./assets/js/shims/react.js", + "react-dom": "./assets/js/shims/react-dom.js" } } ``` -What this does is it tells Hugo to look for the listed packages somewhere else. Here we're telling Hugo to look for `algoliasearch/lite` and `instantsearch.js/es/lib/main` in the project's `public/js/shims` folder. +This tells Hugo's `js.Build` command to look for `react` and `react-dom` in the project's `assets/js/shims` folder. Note that the `browser` field in your `package.json` file will cause React and ReactDOM to be excluded from your JavaScript bundle. Therefore, **it is unnecessary to add them to the `js.Build` command's `externals` argument.** -Now we'll need to create the shim JS files which export the global JS variables `module.exports = window.something`. You can create a separate shim JS file in your `assets` directory, and redirect the import paths there if you wish, but a much cleaner way is to create these files on the go, by having the following before your JS is built. - -```go-html-template -{{ $a := "module.exports = window.algoliasearch" | resources.FromString "js/shims/algoliasearch.js" }} -{{ $i := "module.exports = window.instantsearch" | resources.FromString "js/shims/instantsearch.js" }} - -{{/* Call RelPermalink unnecessarily to generate JS files */}} -{{ $placebo := slice $a.RelPermalink $i.RelPermalink }} -``` That's it! You should now have a browser-friendly JS which can use external JS libraries. diff --git a/content/en/hugo-pipes/scss-sass.md b/content/en/hugo-pipes/scss-sass.md index 489d16e77..bdedbd961 100755 --- a/content/en/hugo-pipes/scss-sass.md +++ b/content/en/hugo-pipes/scss-sass.md @@ -24,14 +24,19 @@ Any SASS or SCSS file can be transformed into a CSS file using `resources.ToCSS` ``` ### Options + +transpiler [string] {{< new-in "0.80.0" >}} + +: The `transpiler` to use, valid values are `libsass` (default) and `dartsass`. Note that the Embedded Dart Sass project is still in beta (beta 5 at the time of writing). The release is scheduled for Q1 2021. We will try to improve the installation process by then, but if you want to use Hugo with Dart Sass you need to download a release binary from [Embedded Dart Sass](https://github.com/sass/dart-sass-embedded/releases) (beta 5) and make sure it's in your PC's `$PATH` (or `%PATH%` on Windows). + targetPath [string] : If not set, the resource's target path will be the asset file original path with its extension replaced by `.css`. outputStyle [string] -: Default is `nested`. Other available output styles are `expanded`, `compact` and `compressed`. +: Default is `nested` (LibSass) and `expanded` (Dart Sass). Other available output styles for LibSass are `expanded`, `compact` and `compressed`. Dart Sass only supports `expanded` and `compressed`. precision [int] -: Precision of floating point math. +: Precision of floating point math. **Note:** This option is not supported by Dart Sass. enableSourceMap [bool] : When enabled, a source map will be generated. diff --git a/content/en/news/0.78.0-relnotes/index.md b/content/en/news/0.78.0-relnotes/index.md index fcc20c066..25b0fd4d8 100644 --- a/content/en/news/0.78.0-relnotes/index.md +++ b/content/en/news/0.78.0-relnotes/index.md @@ -12,7 +12,7 @@ Some notes on the improvements in this release: * Now `js.Build` fully supports the virtual union filesystem in [Hugo Modules](https://gohugo.io/hugo-modules/). Any import inside your JavaScript components will resolve starting from the top component mount inside `/assets` with a fallback to the traditional "JS way" (`node_modules` etc.) * You can now pass configuration data from the templates to your scripts via a new `params` option. -* Hugo now writes a `jsconfig.js` file inside `/assets` (you can turn it off) with import mappings to help editors such as VS Code with intellisense/navigation, which is especially useful when there is no common root and the source lives inside some temporary directory. +* Hugo now writes a `jsconfig.json` file inside `/assets` (you can turn it off) with import mappings to help editors such as VS Code with intellisense/navigation, which is especially useful when there is no common root and the source lives inside some temporary directory. * We have also improved the build errors you get from `js.Build`. In server mode you will get a preview of the failing lines and in the console you will get a link to the location. Read more about this in [the documentation](https://gohugo.io/hugo-pipes/js/), but a short usage example would look like: diff --git a/content/en/news/0.79.0-relnotes/featured.png b/content/en/news/0.79.0-relnotes/featured.png new file mode 100644 index 000000000..f1b7686da Binary files /dev/null and b/content/en/news/0.79.0-relnotes/featured.png differ diff --git a/content/en/news/0.79.0-relnotes/index.md b/content/en/news/0.79.0-relnotes/index.md new file mode 100644 index 000000000..23ed1ef2e --- /dev/null +++ b/content/en/news/0.79.0-relnotes/index.md @@ -0,0 +1,71 @@ + +--- +date: 2020-11-27 +title: "Hugo 0.79.0: Black Friday Edition" +description: "Hugo 0.79.0 brings .Params to menus, snake_case support for OS environment config, and a refresh of upstream dependencies (Chroma, ESBuild etc.)." +categories: ["Releases"] +--- + +Hugo `0.79.0` is a small, but useful release. You can now set custom `.Params` in your [menu](https://gohugo.io/content-management/menus/) configuration, and you can now also override deeply nested snake_cased configuration variables with [OS environment variables](https://gohugo.io/getting-started/configuration/#configure-with-environment-variables). Other than that we have refreshed all the core upstream dependencies. A special thanks to [@alecthomas](https://github.com/alecthomas) (some new [Chroma lexers](https://github.com/alecthomas/chroma/releases/tag/v0.8.2) and fixes) and [@evanw](https://github.com/evanw) ([ESBuild](https://github.com/evanw/esbuild)). + +This release represents **33 contributions by 8 contributors** to the main Hugo code base. [@bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout [@AdamKorcz](https://github.com/AdamKorcz), and [@davidejones](https://github.com/davidejones) for their ongoing contributions. And a big thanks to [@digitalcraftsman](https://github.com/digitalcraftsman) for his relentless work on keeping the themes site in pristine condition and to [@davidsneighbour](https://github.com/davidsneighbour), [@coliff](https://github.com/coliff) and [@kaushalmodi](https://github.com/kaushalmodi) for all the great work on the documentation site. + +Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs), +which has received **13 contributions by 11 contributors**. A special thanks to [@Valac01](https://github.com/Valac01), [@bep](https://github.com/bep), [@mhansen](https://github.com/mhansen), and [@chanjarster](https://github.com/chanjarster) for their work on the documentation site. + +Hugo now has: + +* 48392+ [stars](https://github.com/gohugoio/hugo/stargazers) +* 437+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors) +* 361+ [themes](http://themes.gohugo.io/) + +## Enhancements + +### Templates + +* Add more layout lookup tests [34061706](https://github.com/gohugoio/hugo/commit/34061706e6a9631d92ae3d01e0458eee7bc251cc) [@moorereason](https://github.com/moorereason) [#7964](https://github.com/gohugoio/hugo/issues/7964) + +### Other + +* bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 [17e0bbe8](https://github.com/gohugoio/hugo/commit/17e0bbe821b508cea936bcfd5c1c181bdb8ad70d) [@dependabot[bot]](https://github.com/apps/dependabot) +* Allow setting the delimiter used for setting config via OS env, e.g. HUGO_ [7e223b3b](https://github.com/gohugoio/hugo/commit/7e223b3baaef68d6e6f99e28f162362c81deffba) [@bep](https://github.com/bep) [#7829](https://github.com/gohugoio/hugo/issues/7829) +* Update to github.com/evanw/esbuild 0.8.11 to 0.8.14 [8a6e7060](https://github.com/gohugoio/hugo/commit/8a6e70605350255920100c5c085bb9ea6576d972) [@bep](https://github.com/bep) [#7986](https://github.com/gohugoio/hugo/issues/7986) +* bump github.com/google/go-cmp from 0.5.2 to 0.5.3 [6f7633df](https://github.com/gohugoio/hugo/commit/6f7633df7d2c06e32eac628f9c7809dfee75eeed) [@dependabot[bot]](https://github.com/apps/dependabot) +* Remove unneeded meta tag from blog example [a546059a](https://github.com/gohugoio/hugo/commit/a546059a9c0b4541f6c9e292f2bb065c1b6115d9) [@coliff](https://github.com/coliff) +* bump github.com/getkin/kin-openapi from 0.30.0 to 0.31.0 [b5d906e3](https://github.com/gohugoio/hugo/commit/b5d906e31e716328e2c0fbbdbfe6fc5b2ff98886) [@dependabot[bot]](https://github.com/apps/dependabot) +* Regen docshelper [fd70bdaf](https://github.com/gohugoio/hugo/commit/fd70bdafe7dc5d18c9a2f22c49acc3a8de376e8e) [@bep](https://github.com/bep) +* Add menu params [8f5c9a74](https://github.com/gohugoio/hugo/commit/8f5c9a747fcebb02bb99f5de272046411eb15370) [@davidejones](https://github.com/davidejones) [#7951](https://github.com/gohugoio/hugo/issues/7951) +* Preserve url set in frontmatter without sanitizing [e4fcb672](https://github.com/gohugoio/hugo/commit/e4fcb672ed8bae21fd9780292b54fea3040dd877) [@satotake](https://github.com/satotake) [#6007](https://github.com/gohugoio/hugo/issues/6007) +* Add file deleted by accident [18c13adc](https://github.com/gohugoio/hugo/commit/18c13adcd46bdff963311fdba9eaa9b5a299106e) [@bep](https://github.com/bep) [#7972](https://github.com/gohugoio/hugo/issues/7972) +* Regenerate docshelper" [20a35374](https://github.com/gohugoio/hugo/commit/20a35374a3c90adb32a90a5f671afb15165210be) [@bep](https://github.com/bep) [#7972](https://github.com/gohugoio/hugo/issues/7972) +* Regenerate docshelper [caf16c20](https://github.com/gohugoio/hugo/commit/caf16c20853947138883f6460682e19733895f52) [@bep](https://github.com/bep) +* Update to Chroma v0.8.2 [b298c06e](https://github.com/gohugoio/hugo/commit/b298c06e0551e3eba10b39ae5668b7a6a36a08a7) [@bep](https://github.com/bep) [#7970](https://github.com/gohugoio/hugo/issues/7970) +* bump github.com/evanw/esbuild from 0.8.8 to 0.8.11 [55e290af](https://github.com/gohugoio/hugo/commit/55e290af41ad1c92af13679d4a84d64985d41456) [@dependabot[bot]](https://github.com/apps/dependabot) +* bump github.com/getkin/kin-openapi from 0.26.0 to 0.30.0 [506a190a](https://github.com/gohugoio/hugo/commit/506a190a82cc5564012a1228b4179637b64e58eb) [@dependabot[bot]](https://github.com/apps/dependabot) +* bump github.com/evanw/esbuild from 0.8.6 to 0.8.8 [fc81de64](https://github.com/gohugoio/hugo/commit/fc81de643934e84bb1e1392f6200559ee0ada9b6) [@dependabot[bot]](https://github.com/apps/dependabot) +* Let ESBuild handle all imports from node_modules [78f227b6](https://github.com/gohugoio/hugo/commit/78f227b664d86c30fbb25f7a953b7ef8f2dacf13) [@bep](https://github.com/bep) [#7948](https://github.com/gohugoio/hugo/issues/7948) +* bump github.com/evanw/esbuild from 0.8.5 to 0.8.6 [5e03f644](https://github.com/gohugoio/hugo/commit/5e03f644a4507f51bdbcdb42b65ce4e99095374f) [@dependabot[bot]](https://github.com/apps/dependabot) +* bump github.com/evanw/esbuild from 0.8.4 to 0.8.5 [a92ef20f](https://github.com/gohugoio/hugo/commit/a92ef20ff6e43ba05844539b60782e8190712cdc) [@dependabot[bot]](https://github.com/apps/dependabot) +* bump github.com/getkin/kin-openapi from 0.22.1 to 0.26.0 [0d54a844](https://github.com/gohugoio/hugo/commit/0d54a844061e808dd5b4ff4874b2e4bd9df4d556) [@dependabot[bot]](https://github.com/apps/dependabot) +* Update GH docs to say "main" as default branch [943f3c93](https://github.com/gohugoio/hugo/commit/943f3c932f5f67ab52bf8e0636e57751dc9b1891) [@maco](https://github.com/maco) +* Updated year in header [4f20bf29](https://github.com/gohugoio/hugo/commit/4f20bf29eb246a2e65508175fdd5f25b44e98370) [@AdamKorcz](https://github.com/AdamKorcz) +* Added first fuzzer [4c613d5d](https://github.com/gohugoio/hugo/commit/4c613d5d5d60b80a262e968ae8a4525eba8619a2) [@AdamKorcz](https://github.com/AdamKorcz) +* bump github.com/frankban/quicktest from 1.11.1 to 1.11.2 [82a182e5](https://github.com/gohugoio/hugo/commit/82a182e52c4165b4f51d0cc8ef0f21df5d628c69) [@dependabot[bot]](https://github.com/apps/dependabot) +* bump golang.org/x/text from 0.3.3 to 0.3.4 [dfc662b2](https://github.com/gohugoio/hugo/commit/dfc662b2086430dde96c18ccb6b92bba4f1be428) [@dependabot[bot]](https://github.com/apps/dependabot) +* bump github.com/evanw/esbuild from 0.8.3 to 0.8.4 [2f0917cc](https://github.com/gohugoio/hugo/commit/2f0917cc014557e201a9348664736d608a7fa131) [@dependabot[bot]](https://github.com/apps/dependabot) +* Disable NPM test on Travis on Windows [3437174c](https://github.com/gohugoio/hugo/commit/3437174c3a7b96925b82b351ac87530b4fa796a5) [@bep](https://github.com/bep) +* Install nodejs on Windows [f66302ca](https://github.com/gohugoio/hugo/commit/f66302ca0579171ffd1730eb8f33dd05af3d9a00) [@bep](https://github.com/bep) +* Remove external source map option [944150ba](https://github.com/gohugoio/hugo/commit/944150bafbbb5c3e807ba3688174e70764dbdc64) [@bep](https://github.com/bep) [#7932](https://github.com/gohugoio/hugo/issues/7932) + +## Fixes + +### Other + +* Fix memory usage in writeStats [d162bbd7](https://github.com/gohugoio/hugo/commit/d162bbd7990b6a523bdadcd10bf60fcb43ecf270) [@bep](https://github.com/bep) [#7945](https://github.com/gohugoio/hugo/issues/7945) +* Fix server rebuild issue with partials referenced from render hooks [e442cf30](https://github.com/gohugoio/hugo/commit/e442cf30a215e33b49ce588a9098147282bd883f) [@bep](https://github.com/bep) [#7990](https://github.com/gohugoio/hugo/issues/7990) +* Misc fixes [bf2837a3](https://github.com/gohugoio/hugo/commit/bf2837a314eaf70135791984a423b0b09f58741d) [@bep](https://github.com/bep) [#7924](https://github.com/gohugoio/hugo/issues/7924)[#7923](https://github.com/gohugoio/hugo/issues/7923) + + + + + diff --git a/content/en/news/0.79.1-relnotes/index.md b/content/en/news/0.79.1-relnotes/index.md new file mode 100644 index 000000000..2a3f32765 --- /dev/null +++ b/content/en/news/0.79.1-relnotes/index.md @@ -0,0 +1,22 @@ + +--- +date: 2020-12-19 +title: "Hugo 0.79.1: One Security Patch for Hugo on Windows" +description: "Disallow running of e.g. Pandoc in the current directory." +categories: ["Releases"] +images: +- images/blog/hugo-bug-poster.png + +--- + +Hugo depends on Go's `os/exec` for certain features, e.g. for rendering of Pandoc documents if these binaries are found in the system `%PATH%` on Windows. However, if a malicious file with the same name (`exe` or `bat`) was found in the current working directory at the time of running `hugo`, the malicious command would be invoked instead of the system one. + +Windows users who ran `hugo` inside untrusted Hugo sites were affected. + +The origin of this issue comes from Go, see https://github.com/golang/go/issues/38736 + +We have fixed this in Hugo by [using](https://github.com/gohugoio/hugo/commit/4a8267d64a40564aced0695bca05249da17b0eab) a patched version of `exec.LookPath` from https://github.com/cli/safeexec (thanks to [@mislav](https://github.com/mislav) for the implementation). + +Thanks to [@Ry0taK](https://github.com/Ry0taK) for the bug report. + + diff --git a/content/en/news/0.80.0-relnotes/featured.png b/content/en/news/0.80.0-relnotes/featured.png new file mode 100644 index 000000000..09308b04c Binary files /dev/null and b/content/en/news/0.80.0-relnotes/featured.png differ diff --git a/content/en/news/0.80.0-relnotes/index.md b/content/en/news/0.80.0-relnotes/index.md new file mode 100644 index 000000000..1c390b685 --- /dev/null +++ b/content/en/news/0.80.0-relnotes/index.md @@ -0,0 +1,79 @@ + +--- +date: 2020-12-31 +title: "Hugo 0.80: Last Release of 2020!" +description: "This release brings Dart Sass support, a new image overlay function, and more." +categories: ["Releases"] +--- + +The last Hugo release of the year brings a new [images.Overlay](https://gohugo.io/functions/images/#overlay) filter to overlay an image on top of another, e.g. for watermarking, and [Dart Sass](https://gohugo.io/hugo-pipes/scss-sass/#options) support. + +This release represents **29 contributions by 12 contributors** to the main Hugo code base. [@bep](https://github.com/bep) leads the Hugo development with a significant amount of contributions, but also a big shoutout to [@moorereason](https://github.com/moorereason), and [@davidsneighbour](https://github.com/davidsneighbour) for their ongoing contributions. +And a big thanks to [@digitalcraftsman](https://github.com/digitalcraftsman) for his relentless work on keeping the themes site in pristine condition and to [@davidsneighbour](https://github.com/davidsneighbour), [@coliff](https://github.com/coliff) and [@kaushalmodi](https://github.com/kaushalmodi) for all the great work on the documentation site. + +Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs), +which has received **22 contributions by 6 contributors**. A special thanks to [@bep](https://github.com/bep), [@D4D3VD4V3](https://github.com/D4D3VD4V3), [@chrischute](https://github.com/chrischute), and [@azenk](https://github.com/azenk) for their work on the documentation site. + + +Hugo now has: + +* 49096+ [stars](https://github.com/gohugoio/hugo/stargazers) +* 436+ [contributors](https://github.com/gohugoio/hugo/graphs/contributors) +* 369+ [themes](http://themes.gohugo.io/) + +## Notes + +* Resource.ResourceType now always returns MIME's main type [81975f84](https://github.com/gohugoio/hugo/commit/81975f847dc19c21c2321207645807771db97fab) [@bep](https://github.com/bep) [#8052](https://github.com/gohugoio/hugo/issues/8052) + +## Enhancements + +### Templates + +* Regenerate templates [a2d146ec](https://github.com/gohugoio/hugo/commit/a2d146ec32a26ccca9ffa68d3c840ec5b08cca96) [@bep](https://github.com/bep) +* tpl/internal/go_templates: Revert formatting [718e09ed](https://github.com/gohugoio/hugo/commit/718e09ed4bc538f4fccc4337f99e9eb86aea31f3) [@bep](https://github.com/bep) +* Add title parameter to YouTube shortcode [4fc918e0](https://github.com/gohugoio/hugo/commit/4fc918e02cfc7f260d6312248ff9d33e95b27943) [@azenk](https://github.com/azenk) + +### Output + +* Add missing OutputStyle option [428b0b32](https://github.com/gohugoio/hugo/commit/428b0b32947ec16f8585b8c33548d72fd4fb025d) [@bep](https://github.com/bep) + +### Other + +* Allow Dart Sass transformations to be cached on disk [ffbf5e45](https://github.com/gohugoio/hugo/commit/ffbf5e45fa0617a37950b34deab63736b1c6b1d3) [@bep](https://github.com/bep) +* Dart Sass only supports `expanded` and `compressed` [48994ea7](https://github.com/gohugoio/hugo/commit/48994ea766f08332f57c0f8e74843b6c8617c3d1) [@bep](https://github.com/bep) +* Update emoji import paths and version [1f7e9f73](https://github.com/gohugoio/hugo/commit/1f7e9f733397b891cefc725ffc94ba901e70425a) [@moorereason](https://github.com/moorereason) +* Add Dart Sass support [cea15740](https://github.com/gohugoio/hugo/commit/cea157402365f34a69882110a4208999728007a6) [@bep](https://github.com/bep) [#7380](https://github.com/gohugoio/hugo/issues/7380)[#8102](https://github.com/gohugoio/hugo/issues/8102) +* GroupByParamDate now supports datetimes [f9f77978](https://github.com/gohugoio/hugo/commit/f9f779786edcefc4449a14cfc04dd93379f71373) [@zerok](https://github.com/zerok) +* Skip para test when not on CI [a9718f44](https://github.com/gohugoio/hugo/commit/a9718f44cd6c938448fc697f0ec720ebed7d863a) [@bep](https://github.com/bep) [#6963](https://github.com/gohugoio/hugo/issues/6963) +* Update SECURITY.md [f802bb23](https://github.com/gohugoio/hugo/commit/f802bb236a60dcc6c64d53edac634891272e0c07) [@bep](https://github.com/bep) +* Improve LookPath [10ae7c32](https://github.com/gohugoio/hugo/commit/10ae7c3210cd1add14d3750aa9512a87df0e1146) [@bep](https://github.com/bep) +* create a SECURITY.md [ae2d1bd5](https://github.com/gohugoio/hugo/commit/ae2d1bd52df0099190ef9195666d0788708b0385) [@davidsneighbour](https://github.com/davidsneighbour) [#8074](https://github.com/gohugoio/hugo/issues/8074) +* Show more detail on failed time test [8103188b](https://github.com/gohugoio/hugo/commit/8103188b9b9e8eeb3bcb53c8b64e2b83397e82ae) [@moorereason](https://github.com/moorereason) [#6963](https://github.com/gohugoio/hugo/issues/6963) +* Add images.Overlay filter [3ba147e7](https://github.com/gohugoio/hugo/commit/3ba147e702a5ae0af6e8b3b0296d256c3246a546) [@bep](https://github.com/bep) [#8057](https://github.com/gohugoio/hugo/issues/8057)[#4595](https://github.com/gohugoio/hugo/issues/4595)[#6731](https://github.com/gohugoio/hugo/issues/6731) +* Bump github.com/spf13/cobra from 0.15.0 to 0.20.0 [c84ad8db](https://github.com/gohugoio/hugo/commit/c84ad8db821c10225c0e603c6ec920c67b6ce36f) [@anthonyfok](https://github.com/anthonyfok) +* configure proper link to discourse.gohugo.io (#8020) [4e0acb89](https://github.com/gohugoio/hugo/commit/4e0acb89b793d8895dc53eb8887be27430c3ab31) [@davidsneighbour](https://github.com/davidsneighbour) +* Format code with gofumpt [d90e37e0](https://github.com/gohugoio/hugo/commit/d90e37e0c6e812f9913bf256c9c81aa05b7a08aa) [@bep](https://github.com/bep) +* bump github.com/evanw/esbuild from 0.8.15 to 0.8.17 [32471b57](https://github.com/gohugoio/hugo/commit/32471b57bde51c55a15dbf1db75d6e5f7232c347) [@dependabot[bot]](https://github.com/apps/dependabot) +* Use --baseURL path for live-reload URL [0ad378b0](https://github.com/gohugoio/hugo/commit/0ad378b09cea90a2a70d7ff06af668abe22475a1) [@sth](https://github.com/sth) [#6595](https://github.com/gohugoio/hugo/issues/6595) +* bump github.com/getkin/kin-openapi from 0.31.0 to 0.32.0 [907d9e92](https://github.com/gohugoio/hugo/commit/907d9e92682ed56a57a2206ae9bd9a985b3e1870) [@dependabot[bot]](https://github.com/apps/dependabot) + +## Fixes + +### Templates + +* Fix series detection in opengraph [d2d493ab](https://github.com/gohugoio/hugo/commit/d2d493ab5d6a054001a8448ea0de2949dac4b30e) [@Humberd](https://github.com/Humberd) +* Fix substr when length parameter is zero [5862fd2a](https://github.com/gohugoio/hugo/commit/5862fd2a60b5d16f2437bd8c8b7bac700de5f047) [@moorereason](https://github.com/moorereason) [#7993](https://github.com/gohugoio/hugo/issues/7993) +* Refactor and fix substr logic [64789fb5](https://github.com/gohugoio/hugo/commit/64789fb5dcf8326f14f13d69a2576ae3aa2bbbaa) [@moorereason](https://github.com/moorereason) [#7993](https://github.com/gohugoio/hugo/issues/7993) + +### Other + +* Fix Resource.ResourceType so it always returns MIME's main type [81975f84](https://github.com/gohugoio/hugo/commit/81975f847dc19c21c2321207645807771db97fab) [@bep](https://github.com/bep) [#8052](https://github.com/gohugoio/hugo/issues/8052) +* hugolib/paths: Fix typo [ce96895d](https://github.com/gohugoio/hugo/commit/ce96895debb67df20ae24fb5f0f04b98a30cc6cc) [@mayocream](https://github.com/mayocream) +* Fix minor typos [04b89857](https://github.com/gohugoio/hugo/commit/04b89857e104ac7dcbf9fc65d8d4f1a1178123e6) [@phil-davis](https://github.com/phil-davis) +* Fix BenchmarkMergeByLanguage [21fa1e86](https://github.com/gohugoio/hugo/commit/21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54) [@bep](https://github.com/bep) [#7914](https://github.com/gohugoio/hugo/issues/7914) +* Fix RelURL and AbsURL when path starts with language [aebfe156](https://github.com/gohugoio/hugo/commit/aebfe156fb2f27057e61b2e50c7576e6b06dab58) [@ivan-meridianbanc-com](https://github.com/ivan-meridianbanc-com) + + + + + diff --git a/content/en/news/hugo-macos-intel-vs-arm/featured.png b/content/en/news/hugo-macos-intel-vs-arm/featured.png new file mode 100644 index 000000000..30e73ad4e Binary files /dev/null and b/content/en/news/hugo-macos-intel-vs-arm/featured.png differ diff --git a/content/en/news/hugo-macos-intel-vs-arm/index.html b/content/en/news/hugo-macos-intel-vs-arm/index.html new file mode 100644 index 000000000..9bc83df5d --- /dev/null +++ b/content/en/news/hugo-macos-intel-vs-arm/index.html @@ -0,0 +1,9139 @@ +--- +title: "Hugo on Apple M1" +date: 2020-12-10 +description: "The new Mac Mini M1 base model is blazing fast! We have run the Hugo benchmarks comparing it to a MacBook four times more expensive." +--- + +

By bep

+ +

+ The table below shows all of Hugo's benchmarks run on both a MacBook with Intel CPU and a Mac Mini M1 with an ARM CPU. +

+

Some notes: + +

+

+ +

+ This test isn't exactly comparing apples with apples (pun intended); this is a 4K USD computer compared to a 1K computer, but that makes the performance of the Mac Mini even more impressive. +

+ +

+ There are some areas where the Intel still outshines the ARM, and that is most likely areas with highly optimized assembly code, and this will certainly improve. More benchmarks can be found here. +

+ +

+ You probably want to watch issue to track when we can get a Go release with MacOS M1 support. A couple of months? +

+ +

+ Also, this work document is a great resource for getting a native Go development environment up and running on the M1. +

+ +

Benchstat Output

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ hugo-intel.txt + + hugo-m1.txt +
+ time/op + + delta +
+ github.com/gohugoio/hugo/common/hreflect +
+ IsTruthFul-8 + + 15.0ns ± 3% + + 12.6ns ± 3% + + −16.31% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/common/maps +
+ ScratchGet-8 + + 15.1ns ± 1% + + 13.8ns ± 0% + + −8.74% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/helpers +
+ StripHTML-8 + + 2.02µs ± 0% + + 1.61µs ± 0% + + −20.15% + + (p=0.029 n=4+4) +
+ TestTruncateWordsToWholeSentence-8 + + 50.1ns ± 2% + + 45.1ns ± 0% + + −9.98% + + (p=0.029 n=4+4) +
+ TestTruncateWordsToWholeSentenceOld-8 + + 4.23µs ± 2% + + 3.15µs ± 0% + + −25.53% + + (p=0.029 n=4+4) +
+ TotalWords-8 + + 6.38µs ± 2% + + 5.90µs ± 0% + + −7.63% + + (p=0.029 n=4+4) +
+ EmojiKyokomiFprint-8 + + 30.9µs ± 5% + + 25.1µs ± 3% + + −18.83% + + (p=0.029 n=4+4) +
+ EmojiKyokomiSprint-8 + + 29.9µs ± 1% + + 24.3µs ± 0% + + −18.49% + + (p=0.029 n=4+4) +
+ HugoEmoji-8 + + 1.56µs ±10% + + 4.27µs ± 3% + + +174.22% + + (p=0.029 n=4+4) +
+ ReaderContains-8 + + 4.01µs ± 1% + + 4.23µs ± 2% + + +5.48% + + (p=0.029 n=4+4) +
+ MD5FromFileFast/full=false-8 + + 2.36µs ± 1% + + 1.75µs ± 0% + + −25.92% + + (p=0.029 n=4+4) +
+ MD5FromFileFast/full=true-8 + + 32.7µs ± 2% + + 36.3µs ± 0% + + +10.85% + + (p=0.029 n=4+4) +
+ UniqueStrings/Safe-8 + + 418ns ± 3% + + 312ns ± 0% + + −25.42% + + (p=0.029 n=4+4) +
+ UniqueStrings/Reuse_slice-8 + + 352ns ± 2% + + 271ns ± 2% + + −23.25% + + (p=0.029 n=4+4) +
+ UniqueStrings/Reuse_slice_sorted-8 + + 203ns ± 1% + + 157ns ± 2% + + −22.82% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/hugofs +
+ Walk-8 + + 271µs ± 1% + + 210µs ± 0% + + −22.70% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/hugofs/glob +
+ GetGlob-8 + + 15.0ns ± 2% + + 13.8ns ± 0% + + −8.12% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/hugolib +
+ Cascade/langs-1-8 + + 7.24ms ± 1% + + 5.06ms ± 2% + + −30.06% + + (p=0.029 n=4+4) +
+ Cascade/langs-3-8 + + 9.20ms ± 0% + + 6.56ms ± 1% + + −28.75% + + (p=0.029 n=4+4) +
+ Cascade/langs-5-8 + + 11.2ms ± 1% + + 8.0ms ± 1% + + −28.64% + + (p=0.029 n=4+4) +
+ Cascade/langs-7-8 + + 13.4ms ± 1% + + 9.6ms ± 0% + + −28.18% + + (p=0.029 n=4+4) +
+ Cascade/langs-9-8 + + 15.8ms ± 1% + + 11.2ms ± 1% + + −29.20% + + (p=0.029 n=4+4) +
+ ContentMap/CreateMissingNodes-8 + + 54.3µs ± 3% + + 49.9µs ± 5% + + −8.03% + + (p=0.029 n=4+4) +
+ GetPage-8 + + 210ns ± 2% + + 207ns ± 1% + + −1.46% + + (p=0.029 n=4+4) +
+ GetPageRegular/From_root-8 + + 1.64µs ± 1% + + 0.88µs ± 0% + + −46.14% + + (p=0.029 n=4+4) +
+ GetPageRegular/Page_relative-8 + + 1.96µs ± 0% + + 1.15µs ± 1% + + −41.52% + + (p=0.029 n=4+4) +
+ MergeByLanguage-8 + + 644ns ±15% + + 599ns ±12% + + ~ + + (p=0.486 n=4+4) +
+ PagesPrevNext/.Next-pages-300-8 + + 34.0ns ± 1% + + 31.3ns ± 0% + + −7.81% + + (p=0.029 n=4+4) +
+ PagesPrevNext/.Next-pages-5000-8 + + 65.5ns ± 2% + + 38.3ns ± 1% + + −41.42% + + (p=0.029 n=4+4) +
+ PagesPrevNext/.Prev-pages-300-8 + + 34.0ns ± 1% + + 31.6ns ± 1% + + −7.00% + + (p=0.029 n=4+4) +
+ PagesPrevNext/.Prev-pages-5000-8 + + 65.8ns ± 2% + + 37.9ns ± 1% + + −42.37% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.Next-pages-300-8 + + 911ns ±17% + + 621ns ± 0% + + −31.82% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.Next-pages-5000-8 + + 1.94µs ± 9% + + 1.67µs ±11% + + ~ + + (p=0.057 n=4+4) +
+ PagesPrevNext/Pages.Prev-pages-300-8 + + 854ns ±32% + + 631ns ± 3% + + −26.16% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.Prev-pages-5000-8 + + 1.98µs ± 4% + + 1.66µs ± 5% + + −16.34% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.Shuffled.Next-pages-300-8 + + 914ns ±19% + + 623ns ± 1% + + −31.83% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.Shuffled.Next-pages-5000-8 + + 13.6µs ± 1% + + 11.3µs ± 4% + + −17.04% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.Shuffled.Prev-pages-300-8 + + 952ns ±21% + + 627ns ± 0% + + −34.12% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.Shuffled.Prev-pages-5000-8 + + 13.1µs ± 1% + + 11.2µs ± 1% + + −14.35% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.ByTitle.Next-pages-300-8 + + 752ns ± 2% + + 630ns ± 4% + + −16.24% + + (p=0.029 n=4+4) +
+ PagesPrevNext/Pages.ByTitle.Next-pages-5000-8 + + 13.5µs ± 3% + + 11.1µs ± 4% + + −17.84% + + (p=0.029 n=4+4) +
+ ResourceChainPostProcess-8 + + 40.1ms ± 1% + + 35.6ms ± 1% + + −11.23% + + (p=0.029 n=4+4) +
+ ReplaceShortcodeTokens-8 + + 2.30µs ±34% + + 7.02µs ± 3% + + +205.66% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Bundle_with_image-8 + + 754µs ± 0% + + 446µs ± 7% + + −40.85% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Bundle_with_JSON_file-8 + + 728µs ± 0% + + 437µs ± 1% + + −39.95% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Tags_and_categories-8 + + 15.5ms ± 2% + + 12.9ms ± 6% + + −16.46% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Canonify_URLs-8 + + 27.1ms ± 2% + + 25.9ms ± 2% + + −4.69% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Deep_content_tree-8 + + 32.2ms ± 5% + + 25.7ms ± 3% + + −20.16% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Many_HTML_templates-8 + + 11.3ms ± 2% + + 8.5ms ± 2% + + −24.98% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Page_collections-8 + + 19.7ms ± 2% + + 14.5ms ± 3% + + −26.11% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_List_terms-8 + + 3.77ms ± 2% + + 2.55ms ± 1% + + −32.41% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Bundle_with_image-8 + + 5.54ms ± 0% + + 3.98ms ± 1% + + −28.09% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Bundle_with_JSON_file-8 + + 5.71ms ± 1% + + 4.03ms ± 1% + + −29.43% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Tags_and_categories-8 + + 24.6ms ± 2% + + 19.0ms ± 2% + + −22.47% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Canonify_URLs-8 + + 32.6ms ± 1% + + 29.9ms ± 1% + + −8.17% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Deep_content_tree-8 + + 41.3ms ± 1% + + 31.6ms ± 2% + + −23.60% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Many_HTML_templates-8 + + 19.9ms ± 1% + + 14.4ms ± 0% + + −27.53% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Page_collections-8 + + 28.8ms ± 0% + + 21.2ms ± 1% + + −26.29% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_List_terms-8 + + 9.02ms ± 1% + + 6.55ms ± 2% + + −27.39% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/identity +
+ IdentityManager/Add-8 + + 702ns ±10% + + 404ns ± 3% + + −42.42% + + (p=0.029 n=4+4) +
+ IdentityManager/Search-8 + + 2.14µs ± 2% + + 1.15µs ± 1% + + −46.07% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/langs/i18n +
+ I18nTranslate/all-present-8 + + 254ns ± 1% + + 315ns ± 0% + + +23.86% + + (p=0.029 n=4+4) +
+ I18nTranslate/present-in-default-8 + + 650ns ± 2% + + 604ns ± 0% + + −6.97% + + (p=0.029 n=4+4) +
+ I18nTranslate/present-in-current-8 + + 252ns ± 1% + + 309ns ± 2% + + +22.83% + + (p=0.029 n=4+4) +
+ I18nTranslate/missing-8 + + 614ns ± 0% + + 574ns ± 0% + + −6.48% + + (p=0.029 n=4+4) +
+ I18nTranslate/file-missing-8 + + 1.43µs ± 3% + + 1.19µs ± 0% + + −16.26% + + (p=0.029 n=4+4) +
+ I18nTranslate/context-provided-8 + + 732ns ± 1% + + 648ns ± 0% + + −11.46% + + (p=0.029 n=4+4) +
+ I18nTranslate/readingTime-one-8 + + 480ns ± 1% + + 462ns ± 0% + + −3.61% + + (p=0.029 n=4+4) +
+ I18nTranslate/readingTime-many-8 + + 972ns ± 0% + + 823ns ± 0% + + −15.28% + + (p=0.029 n=4+4) +
+ I18nTranslate/same-id-and-translation-8 + + 248ns ± 1% + + 312ns ± 0% + + +26.12% + + (p=0.029 n=4+4) +
+ I18nTranslate/same-id-and-translation-default-8 + + 648ns ± 2% + + 602ns ± 0% + + −6.96% + + (p=0.029 n=4+4) +
+ I18nTranslate/unknown-language-code-8 + + 1.48µs ± 1% + + 1.22µs ± 0% + + −17.61% + + (p=0.029 n=4+4) +
+ I18nTranslate/known-language-missing-plural-8 + + 985ns ± 3% + + 858ns ± 0% + + −12.99% + + (p=0.029 n=4+4) +
+ I18nTranslate/dotted-bare-key-8 + + 238ns ± 2% + + 314ns ± 0% + + +32.13% + + (p=0.029 n=4+4) +
+ I18nTranslate/lang-with-hyphen-8 + + 574ns ± 2% + + 569ns ± 1% + + ~ + + (p=0.229 n=4+4) +
+ github.com/gohugoio/hugo/markup/goldmark +
+ SanitizeAnchorName-8 + + 395ns ± 1% + + 334ns ± 0% + + −15.39% + + (p=0.029 n=4+4) +
+ SanitizeAnchorNameAsciiOnly-8 + + 866ns ± 5% + + 660ns ± 0% + + −23.82% + + (p=0.029 n=4+4) +
+ SanitizeAnchorNameBlackfriday-8 + + 528ns ± 1% + + 439ns ± 0% + + −17.00% + + (p=0.029 n=4+4) +
+ SanitizeAnchorNameString-8 + + 438ns ± 2% + + 362ns ± 0% + + −17.39% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/metrics +
+ HowSimilar-8 + + 1.92µs ± 0% + + 1.50µs ± 0% + + −21.55% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/output +
+ Layout-8 + + 78.7ns ± 1% + + 96.0ns ± 8% + + +22.06% + + (p=0.029 n=4+4) +
+ LayoutUncached-8 + + 6.93µs ± 0% + + 5.69µs ± 0% + + −17.83% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/parser/metadecoders +
+ StringifyMapKeysStringsOnlyInterfaceMaps-8 + + 790ns ±10% + + 598ns ± 8% + + −24.31% + + (p=0.029 n=4+4) +
+ StringifyMapKeysStringsOnlyStringMaps-8 + + 158ns ± 1% + + 149ns ± 2% + + −5.80% + + (p=0.029 n=4+4) +
+ StringifyMapKeysIntegers-8 + + 1.10µs ± 1% + + 0.83µs ± 3% + + −23.95% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/parser/pageparser +
+ ShortcodeLexer-8 + + 86.5µs ± 2% + + 58.0µs ± 0% + + −32.92% + + (p=0.029 n=4+4) +
+ Parse-8 + + 10.6µs ± 1% + + 7.9µs ± 0% + + −25.50% + + (p=0.029 n=4+4) +
+ ParseWithEmoji-8 + + 12.9µs ± 2% + + 10.1µs ± 0% + + −21.55% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/publisher +
+ ClassCollectorWriter-8 + + 18.2µs ± 0% + + 13.6µs ± 0% + + −25.52% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/related +
+ RelatedNewIndex/singles-8 + + 48.2µs ± 1% + + 40.8µs ± 0% + + −15.24% + + (p=0.029 n=4+4) +
+ RelatedNewIndex/all-8 + + 47.8µs ± 1% + + 39.5µs ± 0% + + −17.21% + + (p=0.029 n=4+4) +
+ RelatedMatchesIn-8 + + 83.3µs ±12% + + 78.0µs ±11% + + ~ + + (p=0.343 n=4+4) +
+ github.com/gohugoio/hugo/resources +
+ ImageExif/Cold_cache-8 + + 192µs ± 6% + + 166µs ± 3% + + −13.75% + + (p=0.029 n=4+4) +
+ ImageExif/Cold_cache,_10-8 + + 209µs ± 2% + + 173µs ± 1% + + −17.10% + + (p=0.029 n=4+4) +
+ ImageExif/Warm_cache-8 + + 37.5µs ± 1% + + 441.3µs ±16% + + +1077.34% + + (p=0.029 n=4+4) +
+ ResizeParallel-8 + + 1.27µs ± 1% + + 1.64µs ± 1% + + +29.40% + + (p=0.029 n=4+4) +
+ ResourcesMatch-8 + + 524ns ± 6% + + 638ns ± 7% + + +21.73% + + (p=0.029 n=4+4) +
+ ResourcesMatchA100-8 + + 136ns ±12% + + 120ns ± 3% + + −11.25% + + (p=0.029 n=4+4) +
+ AssignMetadata-8 + + 15.4µs ± 1% + + 11.6µs ± 1% + + −24.64% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/images/exif +
+ DecodeExif-8 + + 99.5µs ± 1% + + 71.2µs ± 0% + + −28.43% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/page +
+ PageCache-8 + + 137ns ± 1% + + 131ns ± 0% + + −4.23% + + (p=0.029 n=4+4) +
+ SearchPage/Shuffled-100-8 + + 142ns ± 1% + + 144ns ± 0% + + ~ + + (p=0.314 n=4+4) +
+ SearchPage/Shuffled-500-8 + + 613ns ± 5% + + 595ns ± 0% + + ~ + + (p=1.000 n=4+4) +
+ SearchPage/Shuffled-1000-8 + + 1.60µs ± 4% + + 1.42µs ± 5% + + −11.24% + + (p=0.029 n=4+4) +
+ SearchPage/Shuffled-5000-8 + + 6.28µs ± 2% + + 5.97µs ± 1% + + −4.89% + + (p=0.029 n=4+4) +
+ SearchPage/ByWeight-100-8 + + 146ns ± 1% + + 143ns ± 0% + + −1.63% + + (p=0.029 n=4+4) +
+ SearchPage/ByWeight-500-8 + + 615ns ± 4% + + 595ns ± 0% + + ~ + + (p=0.314 n=4+4) +
+ SearchPage/ByWeight-1000-8 + + 801ns ± 1% + + 657ns ± 3% + + −17.94% + + (p=0.029 n=4+4) +
+ SearchPage/ByWeight-5000-8 + + 899ns ± 1% + + 753ns ± 6% + + −16.27% + + (p=0.029 n=4+4) +
+ SearchPage/ByWeight.Reverse-100-8 + + 144ns ± 1% + + 144ns ± 0% + + ~ + + (p=0.514 n=4+4) +
+ SearchPage/ByWeight.Reverse-500-8 + + 603ns ± 2% + + 595ns ± 0% + + −1.32% + + (p=0.029 n=4+4) +
+ SearchPage/ByWeight.Reverse-1000-8 + + 901ns ± 4% + + 758ns ± 7% + + −15.85% + + (p=0.029 n=4+4) +
+ SearchPage/ByWeight.Reverse-5000-8 + + 994ns ± 5% + + 855ns ± 5% + + −13.97% + + (p=0.029 n=4+4) +
+ SearchPage/ByDate-100-8 + + 141ns ± 1% + + 144ns ± 1% + + +2.06% + + (p=0.029 n=4+4) +
+ SearchPage/ByDate-500-8 + + 594ns ± 2% + + 595ns ± 0% + + ~ + + (p=0.257 n=4+4) +
+ SearchPage/ByDate-1000-8 + + 454ns ±13% + + 393ns ± 7% + + ~ + + (p=0.057 n=4+4) +
+ SearchPage/ByDate-5000-8 + + 530ns ±10% + + 461ns ± 6% + + ~ + + (p=0.057 n=4+4) +
+ SearchPage/ByPublishDate-100-8 + + 140ns ± 1% + + 144ns ± 1% + + +2.51% + + (p=0.029 n=4+4) +
+ SearchPage/ByPublishDate-500-8 + + 583ns ± 0% + + 596ns ± 0% + + +2.14% + + (p=0.029 n=4+4) +
+ SearchPage/ByPublishDate-1000-8 + + 441ns ± 6% + + 443ns ± 8% + + ~ + + (p=0.686 n=4+4) +
+ SearchPage/ByPublishDate-5000-8 + + 535ns ± 4% + + 532ns ± 7% + + ~ + + (p=0.686 n=4+4) +
+ SearchPage/ByTitle-100-8 + + 141ns ± 2% + + 143ns ± 0% + + ~ + + (p=0.229 n=4+4) +
+ SearchPage/ByTitle-500-8 + + 586ns ± 0% + + 595ns ± 0% + + +1.70% + + (p=0.029 n=4+4) +
+ SearchPage/ByTitle-1000-8 + + 1.00µs ± 9% + + 0.84µs ± 3% + + −16.22% + + (p=0.029 n=4+4) +
+ SearchPage/ByTitle-5000-8 + + 1.22µs ±11% + + 0.99µs ± 7% + + −18.47% + + (p=0.029 n=4+4) +
+ SearchPage/ByTitle_Linear-100-8 + + 142ns ± 2% + + 144ns ± 0% + + ~ + + (p=0.286 n=4+4) +
+ SearchPage/ByTitle_Linear-500-8 + + 587ns ± 1% + + 596ns ± 0% + + +1.49% + + (p=0.029 n=4+4) +
+ SearchPage/ByTitle_Linear-1000-8 + + 1.15µs ± 2% + + 1.16µs ± 0% + + ~ + + (p=0.286 n=4+4) +
+ SearchPage/ByTitle_Linear-5000-8 + + 5.63µs ± 1% + + 5.67µs ± 0% + + ~ + + (p=0.343 n=4+4) +
+ SortByWeightAndReverse-8 + + 3.99µs ± 4% + + 3.61µs ± 4% + + −9.63% + + (p=0.029 n=4+4) +
+ PermalinkExpand-8 + + 970ns ± 9% + + 709ns ± 0% + + −26.86% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/resource_transformers/postcss +
+ ImportResolver-8 + + 46.1µs ± 2% + + 28.1µs ± 0% + + −38.96% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/tpl/internal/go_templates/htmltemplate +
+ CSSEscaper-8 + + 666ns ± 2% + + 552ns ± 1% + + −17.11% + + (p=0.029 n=4+4) +
+ CSSEscaperNoSpecials-8 + + 166ns ± 1% + + 138ns ± 0% + + −16.47% + + (p=0.029 n=4+4) +
+ DecodeCSS-8 + + 355ns ± 1% + + 351ns ± 0% + + ~ + + (p=0.057 n=4+4) +
+ DecodeCSSNoSpecials-8 + + 4.83ns ± 2% + + 4.06ns ± 0% + + −15.84% + + (p=0.029 n=4+4) +
+ CSSValueFilter-8 + + 116ns ± 1% + + 105ns ± 0% + + −9.37% + + (p=0.029 n=4+4) +
+ CSSValueFilterOk-8 + + 128ns ± 3% + + 115ns ± 0% + + −10.08% + + (p=0.029 n=4+4) +
+ EscapedExecute-8 + + 1.80µs ± 1% + + 1.35µs ± 0% + + −25.07% + + (p=0.029 n=4+4) +
+ HTMLNospaceEscaper-8 + + 768ns ± 2% + + 628ns ± 0% + + −18.25% + + (p=0.029 n=4+4) +
+ HTMLNospaceEscaperNoSpecials-8 + + 221ns ± 1% + + 159ns ± 0% + + −28.16% + + (p=0.029 n=4+4) +
+ StripTags-8 + + 611ns ± 2% + + 500ns ± 0% + + −18.07% + + (p=0.029 n=4+4) +
+ StripTagsNoSpecials-8 + + 71.3ns ± 0% + + 55.0ns ± 0% + + −22.90% + + (p=0.029 n=4+4) +
+ JSValEscaperWithNum-8 + + 355ns ± 2% + + 274ns ± 0% + + −22.83% + + (p=0.029 n=4+4) +
+ JSValEscaperWithStr-8 + + 1.29µs ± 1% + + 0.99µs ± 0% + + −23.43% + + (p=0.029 n=4+4) +
+ JSValEscaperWithStrNoSpecials-8 + + 412ns ± 1% + + 317ns ± 0% + + −23.08% + + (p=0.029 n=4+4) +
+ JSValEscaperWithObj-8 + + 1.49µs ± 1% + + 1.14µs ± 0% + + −23.15% + + (p=0.029 n=4+4) +
+ JSValEscaperWithObjNoSpecials-8 + + 566ns ± 1% + + 441ns ± 0% + + −22.15% + + (p=0.029 n=4+4) +
+ JSStrEscaperNoSpecials-8 + + 182ns ± 2% + + 143ns ± 0% + + −21.16% + + (p=0.029 n=4+4) +
+ JSStrEscaper-8 + + 681ns ± 1% + + 557ns ± 0% + + −18.18% + + (p=0.029 n=4+4) +
+ JSRegexpEscaperNoSpecials-8 + + 176ns ± 1% + + 152ns ± 0% + + −13.74% + + (p=0.029 n=4+4) +
+ JSRegexpEscaper-8 + + 694ns ± 2% + + 561ns ± 0% + + −19.20% + + (p=0.029 n=4+4) +
+ TemplateSpecialTags-8 + + 120µs ± 1% + + 92µs ± 0% + + −23.07% + + (p=0.029 n=4+4) +
+ URLEscaper-8 + + 1.50µs ± 1% + + 1.06µs ± 0% + + −29.35% + + (p=0.029 n=4+4) +
+ URLEscaperNoSpecials-8 + + 140ns ± 1% + + 121ns ± 0% + + −13.45% + + (p=0.029 n=4+4) +
+ URLNormalizer-8 + + 1.10µs ± 1% + + 0.78µs ± 0% + + −28.45% + + (p=0.029 n=4+4) +
+ URLNormalizerNoSpecials-8 + + 160ns ± 1% + + 136ns ± 0% + + −15.00% + + (p=0.029 n=4+4) +
+ SrcsetFilter-8 + + 497ns ± 2% + + 343ns ± 0% + + −30.87% + + (p=0.029 n=4+4) +
+ SrcsetFilterNoSpecials-8 + + 273ns ± 1% + + 217ns ± 0% + + −20.71% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate/parse +
+ ParseLarge-8 + + 18.6ms ± 0% + + 14.6ms ± 0% + + −21.41% + + (p=0.029 n=4+4) +
+ VariableString-8 + + 98.2ns ± 1% + + 79.9ns ± 0% + + −18.72% + + (p=0.029 n=4+4) +
+ ListString-8 + + 2.77µs ± 1% + + 2.26µs ± 1% + + −18.34% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/tpl/tplimpl +
+ Partial-8 + + 1.01µs ± 2% + + 1.73µs ± 1% + + +70.50% + + (p=0.029 n=4+4) +
+ PartialCached-8 + + 61.0ns ± 3% + + 100.3ns ± 2% + + +64.49% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/tpl/transform +
+ UnmarshalString-8 + + 1.14µs ± 1% + + 1.29µs ± 0% + + +13.17% + + (p=0.029 n=4+4) +
+ UnmarshalResource-8 + + 138ns ± 0% + + 108ns ± 1% + + −22.17% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/transform/urlreplacers +
+ AbsURL-8 + + 4.50µs ± 1% + + 4.81µs ± 0% + + +6.85% + + (p=0.029 n=4+4) +
+ AbsURLSrcset-8 + + 3.49µs ± 2% + + 3.21µs ± 0% + + −7.97% + + (p=0.029 n=4+4) +
+ XMLAbsURLSrcset-8 + + 3.41µs ± 1% + + 3.23µs ± 0% + + −5.27% + + (p=0.029 n=4+4) +
+ XMLAbsURL-8 + + 1.85µs ± 0% + + 1.85µs ± 0% + + ~ + + (p=0.343 n=4+4) +
+   +
+ alloc/op + + delta +
+ github.com/gohugoio/hugo/common/hreflect +
+ IsTruthFul-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/common/maps +
+ ScratchGet-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/helpers +
+ StripHTML-8 + + 736B ± 0% + + 728B ± 0% + + −1.09% + + (p=0.029 n=4+4) +
+ TestTruncateWordsToWholeSentence-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ TestTruncateWordsToWholeSentenceOld-8 + + 2.50kB ± 0% + + 2.50kB ± 0% + + ~ + + (all equal) +
+ TotalWords-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ EmojiKyokomiFprint-8 + + 31.4kB ± 0% + + 31.4kB ± 0% + + ~ + + (all equal) +
+ EmojiKyokomiSprint-8 + + 31.3kB ± 0% + + 31.3kB ± 0% + + ~ + + (p=1.000 n=4+4) +
+ HugoEmoji-8 + + 624B ± 0% + + 616B ± 0% + + −1.28% + + (p=0.029 n=4+4) +
+ ReaderContains-8 + + 1.26kB ± 0% + + 1.26kB ± 0% + + ~ + + (all equal) +
+ MD5FromFileFast/full=false-8 + + 240B ± 0% + + 144B ± 0% + + −40.00% + + (p=0.029 n=4+4) +
+ MD5FromFileFast/full=true-8 + + 32.9kB ± 0% + + 32.9kB ± 0% + + ~ + + (p=0.429 n=4+4) +
+ UniqueStrings/Safe-8 + + 224B ± 0% + + 224B ± 0% + + ~ + + (all equal) +
+ UniqueStrings/Reuse_slice-8 + + 96.0B ± 0% + + 96.0B ± 0% + + ~ + + (all equal) +
+ UniqueStrings/Reuse_slice_sorted-8 + + 32.0B ± 0% + + 24.0B ± 0% + + −25.00% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/hugofs +
+ Walk-8 + + 103kB ± 0% + + 99kB ± 0% + + −3.89% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/hugofs/glob +
+ GetGlob-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/hugolib +
+ Cascade/langs-1-8 + + 2.33MB ± 0% + + 2.25MB ± 0% + + −3.37% + + (p=0.029 n=4+4) +
+ Cascade/langs-3-8 + + 3.31MB ± 0% + + 3.21MB ± 0% + + −2.93% + + (p=0.029 n=4+4) +
+ Cascade/langs-5-8 + + 4.32MB ± 0% + + 4.20MB ± 0% + + −2.62% + + (p=0.029 n=4+4) +
+ Cascade/langs-7-8 + + 5.37MB ± 0% + + 5.23MB ± 0% + + −2.64% + + (p=0.029 n=4+4) +
+ Cascade/langs-9-8 + + 6.44MB ± 0% + + 6.27MB ± 0% + + −2.57% + + (p=0.029 n=4+4) +
+ ContentMap/CreateMissingNodes-8 + + 14.9kB ± 0% + + 14.4kB ± 0% + + −3.11% + + (p=0.029 n=4+4) +
+ GetPage-8 + + 16.0B ± 0% + + 16.0B ± 0% + + ~ + + (all equal) +
+ GetPageRegular/From_root-8 + + 686B ± 0% + + 239B ± 0% + + −65.16% + + (p=0.029 n=4+4) +
+ GetPageRegular/Page_relative-8 + + 763B ± 0% + + 324B ± 0% + + −57.54% + + (p=0.029 n=4+4) +
+ MergeByLanguage-8 + + 51.5B ± 1% + + 50.8B ± 1% + + ~ + + (p=0.286 n=4+4) +
+ PagesPrevNext/.Next-pages-300-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/.Next-pages-5000-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/.Prev-pages-300-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/.Prev-pages-5000-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Next-pages-300-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Next-pages-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Prev-pages-300-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Prev-pages-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Shuffled.Next-pages-300-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Shuffled.Next-pages-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Shuffled.Prev-pages-300-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Shuffled.Prev-pages-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/Pages.ByTitle.Next-pages-300-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ PagesPrevNext/Pages.ByTitle.Next-pages-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ ResourceChainPostProcess-8 + + 36.4MB ± 1% + + 33.0MB ± 1% + + −9.26% + + (p=0.029 n=4+4) +
+ ReplaceShortcodeTokens-8 + + 3.07kB ± 0% + + 3.07kB ± 0% + + ~ + + (all equal) +
+ BuildSite/Edit_Bundle_with_image-8 + + 437kB ± 0% + + 426kB ± 0% + + −2.43% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Bundle_with_JSON_file-8 + + 216kB ± 0% + + 205kB ± 0% + + −4.93% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Tags_and_categories-8 + + 10.3MB ± 0% + + 9.7MB ± 0% + + −6.68% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Canonify_URLs-8 + + 84.2MB ± 0% + + 85.6MB ± 0% + + +1.67% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Deep_content_tree-8 + + 26.5MB ± 0% + + 25.5MB ± 0% + + −3.65% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Many_HTML_templates-8 + + 6.00MB ± 0% + + 5.71MB ± 0% + + −4.82% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Page_collections-8 + + 14.7MB ± 0% + + 14.1MB ± 0% + + −4.21% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_List_terms-8 + + 1.83MB ± 0% + + 1.72MB ± 0% + + −6.04% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Bundle_with_image-8 + + 1.93MB ± 0% + + 1.90MB ± 0% + + −1.39% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Bundle_with_JSON_file-8 + + 1.71MB ± 0% + + 1.68MB ± 0% + + −1.54% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Tags_and_categories-8 + + 14.2MB ± 0% + + 13.4MB ± 0% + + −5.48% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Canonify_URLs-8 + + 89.2MB ± 0% + + 90.5MB ± 0% + + +1.42% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Deep_content_tree-8 + + 30.2MB ± 0% + + 28.9MB ± 0% + + −4.26% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Many_HTML_templates-8 + + 9.17MB ± 0% + + 8.83MB ± 0% + + −3.80% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Page_collections-8 + + 18.4MB ± 0% + + 17.6MB ± 0% + + −4.44% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_List_terms-8 + + 3.96MB ± 0% + + 3.82MB ± 0% + + −3.64% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/identity +
+ IdentityManager/Add-8 + + 204B ± 7% + + 131B ± 2% + + −35.50% + + (p=0.029 n=4+4) +
+ IdentityManager/Search-8 + + 751B ± 0% + + 311B ± 0% + + −58.59% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/langs/i18n +
+ I18nTranslate/all-present-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ I18nTranslate/present-in-default-8 + + 112B ± 0% + + 112B ± 0% + + ~ + + (all equal) +
+ I18nTranslate/present-in-current-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ I18nTranslate/missing-8 + + 112B ± 0% + + 112B ± 0% + + ~ + + (all equal) +
+ I18nTranslate/file-missing-8 + + 304B ± 0% + + 288B ± 0% + + −5.26% + + (p=0.029 n=4+4) +
+ I18nTranslate/context-provided-8 + + 200B ± 0% + + 192B ± 0% + + −4.00% + + (p=0.029 n=4+4) +
+ I18nTranslate/readingTime-one-8 + + 384B ± 0% + + 384B ± 0% + + ~ + + (all equal) +
+ I18nTranslate/readingTime-many-8 + + 608B ± 0% + + 600B ± 0% + + −1.32% + + (p=0.029 n=4+4) +
+ I18nTranslate/same-id-and-translation-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ I18nTranslate/same-id-and-translation-default-8 + + 112B ± 0% + + 112B ± 0% + + ~ + + (all equal) +
+ I18nTranslate/unknown-language-code-8 + + 720B ± 0% + + 696B ± 0% + + −3.33% + + (p=0.029 n=4+4) +
+ I18nTranslate/known-language-missing-plural-8 + + 488B ± 0% + + 472B ± 0% + + −3.28% + + (p=0.029 n=4+4) +
+ I18nTranslate/dotted-bare-key-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ I18nTranslate/lang-with-hyphen-8 + + 384B ± 0% + + 384B ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/markup/goldmark +
+ SanitizeAnchorName-8 + + 32.0B ± 0% + + 24.0B ± 0% + + −25.00% + + (p=0.029 n=4+4) +
+ SanitizeAnchorNameAsciiOnly-8 + + 48.0B ± 0% + + 48.0B ± 0% + + ~ + + (all equal) +
+ SanitizeAnchorNameBlackfriday-8 + + 184B ± 0% + + 176B ± 0% + + −4.35% + + (p=0.029 n=4+4) +
+ SanitizeAnchorNameString-8 + + 64.0B ± 0% + + 56.0B ± 0% + + −12.50% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/metrics +
+ HowSimilar-8 + + 624B ± 0% + + 624B ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/output +
+ Layout-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ LayoutUncached-8 + + 6.34kB ± 0% + + 6.34kB ± 0% + + ~ + + (p=1.000 n=4+4) +
+ github.com/gohugoio/hugo/parser/metadecoders +
+ StringifyMapKeysStringsOnlyInterfaceMaps-8 + + 1.01kB ± 0% + + 1.01kB ± 0% + + ~ + + (all equal) +
+ StringifyMapKeysStringsOnlyStringMaps-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ StringifyMapKeysIntegers-8 + + 1.01kB ± 0% + + 1.01kB ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/parser/pageparser +
+ ShortcodeLexer-8 + + 119kB ± 0% + + 118kB ± 0% + + −0.10% + + (p=0.029 n=4+4) +
+ Parse-8 + + 17.0kB ± 0% + + 17.0kB ± 0% + + ~ + + (all equal) +
+ ParseWithEmoji-8 + + 33.0kB ± 0% + + 33.0kB ± 0% + + −0.02% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/publisher +
+ ClassCollectorWriter-8 + + 34.8kB ± 0% + + 34.6kB ± 0% + + −0.53% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/related +
+ RelatedNewIndex/singles-8 + + 21.9kB ± 0% + + 21.9kB ± 0% + + −0.06% + + (p=0.029 n=4+4) +
+ RelatedNewIndex/all-8 + + 23.7kB ± 0% + + 23.7kB ± 0% + + −0.07% + + (p=0.029 n=4+4) +
+ RelatedMatchesIn-8 + + 26.4kB ±26% + + 26.4kB ±26% + + ~ + + (p=0.686 n=4+4) +
+ github.com/gohugoio/hugo/resources +
+ ImageExif/Cold_cache-8 + + 160kB ± 0% + + 183kB ± 0% + + +14.12% + + (p=0.029 n=4+4) +
+ ImageExif/Cold_cache,_10-8 + + 172kB ± 0% + + 187kB ± 0% + + +8.44% + + (p=0.029 n=4+4) +
+ ImageExif/Warm_cache-8 + + 12.9kB ± 0% + + 10.9kB ± 0% + + −15.76% + + (p=0.029 n=4+4) +
+ ResizeParallel-8 + + 2.02kB ± 0% + + 2.61kB ± 0% + + +28.92% + + (p=0.029 n=4+4) +
+ ResourcesMatch-8 + + 503B ± 0% + + 504B ± 0% + + ~ + + (p=1.000 n=4+4) +
+ ResourcesMatchA100-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ AssignMetadata-8 + + 1.34kB ± 0% + + 0.85kB ± 0% + + −36.90% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/images/exif +
+ DecodeExif-8 + + 161kB ± 0% + + 184kB ± 0% + + +14.31% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/page +
+ PageCache-8 + + 32.0B ± 0% + + 24.0B ± 0% + + −25.00% + + (p=0.029 n=4+4) +
+ SearchPage/Shuffled-100-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/Shuffled-500-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/Shuffled-1000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/Shuffled-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByWeight-100-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByWeight-500-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByWeight-1000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByWeight-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByWeight.Reverse-100-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByWeight.Reverse-500-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByWeight.Reverse-1000-8 + + 24.0B ± 0% + + 24.0B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByWeight.Reverse-5000-8 + + 24.0B ± 0% + + 24.0B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByDate-100-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByDate-500-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByDate-1000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByDate-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByPublishDate-100-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByPublishDate-500-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByPublishDate-1000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByPublishDate-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByTitle-100-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByTitle-500-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByTitle-1000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByTitle-5000-8 + + 8.00B ± 0% + + 8.00B ± 0% + + ~ + + (all equal) +
+ SearchPage/ByTitle_Linear-100-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByTitle_Linear-500-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByTitle_Linear-1000-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SearchPage/ByTitle_Linear-5000-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ SortByWeightAndReverse-8 + + 64.0B ± 0% + + 48.0B ± 0% + + −25.00% + + (p=0.029 n=4+4) +
+ PermalinkExpand-8 + + 400B ± 0% + + 304B ± 0% + + −24.00% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/resource_transformers/postcss +
+ ImportResolver-8 + + 39.6kB ± 0% + + 36.6kB ± 0% + + −7.46% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/tpl/internal/go_templates/htmltemplate +
+ CSSEscaper-8 + + 336B ± 0% + + 336B ± 0% + + ~ + + (all equal) +
+ CSSEscaperNoSpecials-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ DecodeCSS-8 + + 160B ± 0% + + 160B ± 0% + + ~ + + (all equal) +
+ DecodeCSSNoSpecials-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ CSSValueFilter-8 + + 96.0B ± 0% + + 96.0B ± 0% + + ~ + + (all equal) +
+ CSSValueFilterOk-8 + + 48.0B ± 0% + + 48.0B ± 0% + + ~ + + (all equal) +
+ EscapedExecute-8 + + 624B ± 0% + + 544B ± 0% + + −12.82% + + (p=0.029 n=4+4) +
+ HTMLNospaceEscaper-8 + + 368B ± 0% + + 368B ± 0% + + ~ + + (all equal) +
+ HTMLNospaceEscaperNoSpecials-8 + + 32.0B ± 0% + + 32.0B ± 0% + + ~ + + (all equal) +
+ StripTags-8 + + 224B ± 0% + + 224B ± 0% + + ~ + + (all equal) +
+ StripTagsNoSpecials-8 + + 112B ± 0% + + 112B ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithNum-8 + + 40.0B ± 0% + + 40.0B ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithStr-8 + + 384B ± 0% + + 384B ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithStrNoSpecials-8 + + 96.0B ± 0% + + 96.0B ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithObj-8 + + 448B ± 0% + + 440B ± 0% + + −1.79% + + (p=0.029 n=4+4) +
+ JSValEscaperWithObjNoSpecials-8 + + 160B ± 0% + + 152B ± 0% + + −5.00% + + (p=0.029 n=4+4) +
+ JSStrEscaperNoSpecials-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ JSStrEscaper-8 + + 336B ± 0% + + 336B ± 0% + + ~ + + (all equal) +
+ JSRegexpEscaperNoSpecials-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ JSRegexpEscaper-8 + + 336B ± 0% + + 336B ± 0% + + ~ + + (all equal) +
+ TemplateSpecialTags-8 + + 50.1kB ± 0% + + 49.9kB ± 0% + + −0.31% + + (p=0.029 n=4+4) +
+ URLEscaper-8 + + 336B ± 0% + + 336B ± 0% + + ~ + + (all equal) +
+ URLEscaperNoSpecials-8 + + 112B ± 0% + + 112B ± 0% + + ~ + + (all equal) +
+ URLNormalizer-8 + + 176B ± 0% + + 176B ± 0% + + ~ + + (all equal) +
+ URLNormalizerNoSpecials-8 + + 112B ± 0% + + 112B ± 0% + + ~ + + (all equal) +
+ SrcsetFilter-8 + + 160B ± 0% + + 160B ± 0% + + ~ + + (all equal) +
+ SrcsetFilterNoSpecials-8 + + 160B ± 0% + + 160B ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate/parse +
+ ParseLarge-8 + + 5.46MB ± 0% + + 5.46MB ± 0% + + −0.01% + + (p=0.029 n=4+4) +
+ VariableString-8 + + 72.0B ± 0% + + 72.0B ± 0% + + ~ + + (all equal) +
+ ListString-8 + + 1.61kB ± 0% + + 1.47kB ± 0% + + −8.46% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/tpl/tplimpl +
+ Partial-8 + + 1.15kB ± 0% + + 1.06kB ± 0% + + −7.64% + + (p=0.029 n=4+4) +
+ PartialCached-8 + + 0.00B + + 0.00B + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/tpl/transform +
+ UnmarshalString-8 + + 832B ± 0% + + 736B ± 0% + + −11.54% + + (p=0.029 n=4+4) +
+ UnmarshalResource-8 + + 144B ± 0% + + 144B ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/transform/urlreplacers +
+ AbsURL-8 + + 1.57kB ± 0% + + 1.57kB ± 0% + + ~ + + (all equal) +
+ AbsURLSrcset-8 + + 1.29kB ± 0% + + 1.28kB ± 0% + + −0.62% + + (p=0.029 n=4+4) +
+ XMLAbsURLSrcset-8 + + 1.37kB ± 0% + + 1.36kB ± 0% + + −0.59% + + (p=0.029 n=4+4) +
+ XMLAbsURL-8 + + 928B ± 0% + + 928B ± 0% + + ~ + + (all equal) +
+   +
+ allocs/op + + delta +
+ github.com/gohugoio/hugo/common/hreflect +
+ IsTruthFul-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/common/maps +
+ ScratchGet-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/helpers +
+ StripHTML-8 + + 4.00 ± 0% + + 4.00 ± 0% + + ~ + + (all equal) +
+ TestTruncateWordsToWholeSentence-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ TestTruncateWordsToWholeSentenceOld-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ TotalWords-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ EmojiKyokomiFprint-8 + + 71.0 ± 0% + + 71.0 ± 0% + + ~ + + (all equal) +
+ EmojiKyokomiSprint-8 + + 66.0 ± 0% + + 66.0 ± 0% + + ~ + + (all equal) +
+ HugoEmoji-8 + + 13.0 ± 0% + + 13.0 ± 0% + + ~ + + (all equal) +
+ ReaderContains-8 + + 20.0 ± 0% + + 20.0 ± 0% + + ~ + + (all equal) +
+ MD5FromFileFast/full=false-8 + + 5.00 ± 0% + + 4.00 ± 0% + + −20.00% + + (p=0.029 n=4+4) +
+ MD5FromFileFast/full=true-8 + + 5.00 ± 0% + + 5.00 ± 0% + + ~ + + (all equal) +
+ UniqueStrings/Safe-8 + + 7.00 ± 0% + + 7.00 ± 0% + + ~ + + (all equal) +
+ UniqueStrings/Reuse_slice-8 + + 6.00 ± 0% + + 6.00 ± 0% + + ~ + + (all equal) +
+ UniqueStrings/Reuse_slice_sorted-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/hugofs +
+ Walk-8 + + 2.22k ± 0% + + 2.22k ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/hugofs/glob +
+ GetGlob-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/hugolib +
+ Cascade/langs-1-8 + + 33.1k ± 0% + + 33.2k ± 0% + + +0.20% + + (p=0.029 n=4+4) +
+ Cascade/langs-3-8 + + 47.4k ± 0% + + 47.6k ± 0% + + +0.58% + + (p=0.029 n=4+4) +
+ Cascade/langs-5-8 + + 62.2k ± 0% + + 62.6k ± 0% + + +0.69% + + (p=0.029 n=4+4) +
+ Cascade/langs-7-8 + + 78.0k ± 0% + + 78.6k ± 0% + + +0.75% + + (p=0.029 n=4+4) +
+ Cascade/langs-9-8 + + 95.0k ± 0% + + 95.7k ± 0% + + +0.78% + + (p=0.029 n=4+4) +
+ ContentMap/CreateMissingNodes-8 + + 258 ± 0% + + 254 ± 0% + + −1.55% + + (p=0.029 n=4+4) +
+ GetPage-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ GetPageRegular/From_root-8 + + 10.0 ± 0% + + 6.0 ± 0% + + −40.00% + + (p=0.029 n=4+4) +
+ GetPageRegular/Page_relative-8 + + 13.0 ± 0% + + 10.0 ± 0% + + −23.08% + + (p=0.029 n=4+4) +
+ MergeByLanguage-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/.Next-pages-300-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/.Next-pages-5000-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/.Prev-pages-300-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/.Prev-pages-5000-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Next-pages-300-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Next-pages-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Prev-pages-300-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Prev-pages-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Shuffled.Next-pages-300-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Shuffled.Next-pages-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Shuffled.Prev-pages-300-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/Pages.Shuffled.Prev-pages-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ PagesPrevNext/Pages.ByTitle.Next-pages-300-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ PagesPrevNext/Pages.ByTitle.Next-pages-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ ResourceChainPostProcess-8 + + 803k ± 1% + + 817k ± 1% + + ~ + + (p=0.114 n=4+4) +
+ ReplaceShortcodeTokens-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ BuildSite/Edit_Bundle_with_image-8 + + 3.99k ± 0% + + 4.03k ± 0% + + +0.93% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Bundle_with_JSON_file-8 + + 3.99k ± 0% + + 4.03k ± 0% + + +0.93% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Tags_and_categories-8 + + 241k ± 0% + + 244k ± 0% + + +0.97% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Canonify_URLs-8 + + 364k ± 0% + + 366k ± 0% + + +0.39% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Deep_content_tree-8 + + 264k ± 0% + + 268k ± 0% + + +1.60% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Many_HTML_templates-8 + + 90.3k ± 0% + + 91.1k ± 0% + + +0.90% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_Page_collections-8 + + 153k ± 0% + + 156k ± 0% + + +1.37% + + (p=0.029 n=4+4) +
+ BuildSite/Edit_List_terms-8 + + 30.4k ± 0% + + 30.5k ± 0% + + +0.53% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Bundle_with_image-8 + + 23.2k ± 0% + + 23.2k ± 0% + + ~ + + (p=1.000 n=4+4) +
+ BuildSite/Regular_Bundle_with_JSON_file-8 + + 23.3k ± 0% + + 23.3k ± 0% + + −0.01% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Tags_and_categories-8 + + 284k ± 0% + + 287k ± 0% + + +1.05% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Canonify_URLs-8 + + 387k ± 0% + + 388k ± 0% + + +0.20% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Deep_content_tree-8 + + 307k ± 0% + + 309k ± 0% + + +0.63% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Many_HTML_templates-8 + + 129k ± 0% + + 130k ± 0% + + +0.54% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_Page_collections-8 + + 199k ± 0% + + 200k ± 0% + + +0.55% + + (p=0.029 n=4+4) +
+ BuildSite/Regular_List_terms-8 + + 53.5k ± 0% + + 53.6k ± 0% + + +0.11% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/identity +
+ IdentityManager/Add-8 + + 2.00 ± 0% + + 1.00 ± 0% + + −50.00% + + (p=0.029 n=4+4) +
+ IdentityManager/Search-8 + + 15.0 ± 0% + + 11.0 ± 0% + + −26.67% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/langs/i18n +
+ I18nTranslate/all-present-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ I18nTranslate/present-in-default-8 + + 5.00 ± 0% + + 5.00 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/present-in-current-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ I18nTranslate/missing-8 + + 5.00 ± 0% + + 5.00 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/file-missing-8 + + 12.0 ± 0% + + 12.0 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/context-provided-8 + + 5.00 ± 0% + + 5.00 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/readingTime-one-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/readingTime-many-8 + + 9.00 ± 0% + + 9.00 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/same-id-and-translation-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ I18nTranslate/same-id-and-translation-default-8 + + 5.00 ± 0% + + 5.00 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/unknown-language-code-8 + + 14.0 ± 0% + + 14.0 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/known-language-missing-plural-8 + + 8.00 ± 0% + + 8.00 ± 0% + + ~ + + (all equal) +
+ I18nTranslate/dotted-bare-key-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ I18nTranslate/lang-with-hyphen-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/markup/goldmark +
+ SanitizeAnchorName-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SanitizeAnchorNameAsciiOnly-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ SanitizeAnchorNameBlackfriday-8 + + 6.00 ± 0% + + 6.00 ± 0% + + ~ + + (all equal) +
+ SanitizeAnchorNameString-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/metrics +
+ HowSimilar-8 + + 19.0 ± 0% + + 19.0 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/output +
+ Layout-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ LayoutUncached-8 + + 112 ± 0% + + 112 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/parser/metadecoders +
+ StringifyMapKeysStringsOnlyInterfaceMaps-8 + + 6.00 ± 0% + + 6.00 ± 0% + + ~ + + (all equal) +
+ StringifyMapKeysStringsOnlyStringMaps-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ StringifyMapKeysIntegers-8 + + 6.00 ± 0% + + 6.00 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/parser/pageparser +
+ ShortcodeLexer-8 + + 916 ± 0% + + 916 ± 0% + + ~ + + (all equal) +
+ Parse-8 + + 34.0 ± 0% + + 34.0 ± 0% + + ~ + + (all equal) +
+ ParseWithEmoji-8 + + 16.0 ± 0% + + 16.0 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/publisher +
+ ClassCollectorWriter-8 + + 149 ± 0% + + 143 ± 0% + + −4.03% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/related +
+ RelatedNewIndex/singles-8 + + 199 ± 0% + + 199 ± 0% + + ~ + + (all equal) +
+ RelatedNewIndex/all-8 + + 200 ± 0% + + 200 ± 0% + + ~ + + (all equal) +
+ RelatedMatchesIn-8 + + 196 ± 5% + + 196 ± 5% + + ~ + + (p=1.000 n=4+4) +
+ github.com/gohugoio/hugo/resources +
+ ImageExif/Cold_cache-8 + + 1.27k ± 0% + + 1.27k ± 0% + + +0.16% + + (p=0.029 n=4+4) +
+ ImageExif/Cold_cache,_10-8 + + 1.43k ± 0% + + 1.36k ± 0% + + −4.88% + + (p=0.029 n=4+4) +
+ ImageExif/Warm_cache-8 + + 351 ± 0% + + 327 ± 0% + + −6.84% + + (p=0.029 n=4+4) +
+ ResizeParallel-8 + + 48.0 ± 0% + + 55.0 ± 0% + + +14.58% + + (p=0.029 n=4+4) +
+ ResourcesMatch-8 + + 2.75 ±27% + + 2.75 ±27% + + ~ + + (p=1.000 n=4+4) +
+ ResourcesMatchA100-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ AssignMetadata-8 + + 120 ± 0% + + 80 ± 0% + + −33.33% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/images/exif +
+ DecodeExif-8 + + 1.20k ± 0% + + 1.20k ± 0% + + +0.50% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/page +
+ PageCache-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/Shuffled-100-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/Shuffled-500-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/Shuffled-1000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/Shuffled-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByWeight-100-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByWeight-500-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByWeight-1000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByWeight-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByWeight.Reverse-100-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByWeight.Reverse-500-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByWeight.Reverse-1000-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByWeight.Reverse-5000-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByDate-100-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByDate-500-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByDate-1000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByDate-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByPublishDate-100-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByPublishDate-500-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByPublishDate-1000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByPublishDate-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByTitle-100-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByTitle-500-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByTitle-1000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByTitle-5000-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ SearchPage/ByTitle_Linear-100-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByTitle_Linear-500-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByTitle_Linear-1000-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SearchPage/ByTitle_Linear-5000-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ SortByWeightAndReverse-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ PermalinkExpand-8 + + 13.0 ± 0% + + 10.0 ± 0% + + −23.08% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/resources/resource_transformers/postcss +
+ ImportResolver-8 + + 195 ± 0% + + 186 ± 0% + + −4.62% + + (p=0.029 n=4+4) +
+ github.com/gohugoio/hugo/tpl/internal/go_templates/htmltemplate +
+ CSSEscaper-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ CSSEscaperNoSpecials-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ DecodeCSS-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ DecodeCSSNoSpecials-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ CSSValueFilter-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ CSSValueFilterOk-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ EscapedExecute-8 + + 18.0 ± 0% + + 18.0 ± 0% + + ~ + + (all equal) +
+ HTMLNospaceEscaper-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ HTMLNospaceEscaperNoSpecials-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ StripTags-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ StripTagsNoSpecials-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithNum-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithStr-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithStrNoSpecials-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithObj-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ JSValEscaperWithObjNoSpecials-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ JSStrEscaperNoSpecials-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ JSStrEscaper-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ JSRegexpEscaperNoSpecials-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ JSRegexpEscaper-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ TemplateSpecialTags-8 + + 191 ± 0% + + 191 ± 0% + + ~ + + (all equal) +
+ URLEscaper-8 + + 4.00 ± 0% + + 4.00 ± 0% + + ~ + + (all equal) +
+ URLEscaperNoSpecials-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ URLNormalizer-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ URLNormalizerNoSpecials-8 + + 2.00 ± 0% + + 2.00 ± 0% + + ~ + + (all equal) +
+ SrcsetFilter-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ SrcsetFilterNoSpecials-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/tpl/internal/go_templates/texttemplate/parse +
+ ParseLarge-8 + + 80.0k ± 0% + + 80.0k ± 0% + + ~ + + (p=1.000 n=4+4) +
+ VariableString-8 + + 3.00 ± 0% + + 3.00 ± 0% + + ~ + + (all equal) +
+ ListString-8 + + 31.0 ± 0% + + 31.0 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/tpl/tplimpl +
+ Partial-8 + + 37.0 ± 0% + + 37.0 ± 0% + + ~ + + (all equal) +
+ PartialCached-8 + + 0.00 + + 0.00 + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/tpl/transform +
+ UnmarshalString-8 + + 6.00 ± 0% + + 5.00 ± 0% + + −16.67% + + (p=0.029 n=4+4) +
+ UnmarshalResource-8 + + 1.00 ± 0% + + 1.00 ± 0% + + ~ + + (all equal) +
+ github.com/gohugoio/hugo/transform/urlreplacers +
+ AbsURL-8 + + 16.0 ± 0% + + 16.0 ± 0% + + ~ + + (all equal) +
+ AbsURLSrcset-8 + + 23.0 ± 0% + + 23.0 ± 0% + + ~ + + (all equal) +
+ XMLAbsURLSrcset-8 + + 21.0 ± 0% + + 21.0 ± 0% + + ~ + + (all equal) +
+ XMLAbsURL-8 + + 8.00 ± 0% + + 8.00 ± 0% + + ~ + + (all equal) +
+   +
diff --git a/content/en/showcase/godot-tutorials/bio.md b/content/en/showcase/godot-tutorials/bio.md new file mode 100644 index 000000000..92fccadf6 --- /dev/null +++ b/content/en/showcase/godot-tutorials/bio.md @@ -0,0 +1,9 @@ + +[Godot Tutorials](https://godottutorials.com) aims to teach beginners how to get up and running with basic game programming and game development skills. + +The website is built with the **Hugo Framework** alongside aws+cloudfront+lambda. + +The site is built by: + +* [Godot Tutorials](https://godottutorials.com) + diff --git a/content/en/showcase/godot-tutorials/featured.png b/content/en/showcase/godot-tutorials/featured.png new file mode 100644 index 000000000..fef13b996 Binary files /dev/null and b/content/en/showcase/godot-tutorials/featured.png differ diff --git a/content/en/showcase/godot-tutorials/index.md b/content/en/showcase/godot-tutorials/index.md new file mode 100644 index 000000000..e33e413e1 --- /dev/null +++ b/content/en/showcase/godot-tutorials/index.md @@ -0,0 +1,25 @@ +--- + +title: Godot Tutorials +date: 2021-01-07 + +description: "Teaching game development skills with love." + +# The URL to the site on the internet. +siteURL: https://godottutorials.com + +# Add credit to the article author. Leave blank or remove if not needed/wanted. +byline: "[Godot Tutorials](https://godottutorials.com), Web Developer & Game Programmer" + +--- + + +[Godot Tutorials](https://godottutorials.com) started as a way to teach beginners game programming and game development. +As I created videos, I ran into a problem; if I made a mistake with a Youtube video, it was difficult to correct errors. + +I discovered that blogging episodes and having articles that teach on top of my videos is a fantastic solution to my problem. + +As I researched blogging platforms, I came across two solutions; however, I chose [Hugo](https://gohugo.io) because it's built with markdown in mind and simplified my workflow. + +In a sense, with [Hugo](https://gohugo.io) programmed the right way, I can focus **more time on planning, creating, and editing** +my videos and **less time maintaining and fixing** my website. \ No newline at end of file diff --git a/content/en/templates/menu-templates.md b/content/en/templates/menu-templates.md index b39fe42a9..8893d7b5a 100644 --- a/content/en/templates/menu-templates.md +++ b/content/en/templates/menu-templates.md @@ -160,3 +160,23 @@ Here's an example: {{ end }} ``` + +## Using .Params in Menus + +User-defined content on menu items are accessible via `.Params`. + +Here's an example: + +``` + +``` + +{{% note %}} +With Menu-level .Params they can easily exist on one menu item but not another. It's recommended to access them gracefully using the [with function](/functions/with). +{{% /note %}} \ No newline at end of file diff --git a/content/en/templates/taxonomy-templates.md b/content/en/templates/taxonomy-templates.md index 3f93052d9..b04a2e43f 100644 --- a/content/en/templates/taxonomy-templates.md +++ b/content/en/templates/taxonomy-templates.md @@ -124,8 +124,6 @@ Taxonomies can be ordered by either alphabetical key or by the number of content ### Order Alphabetically Example -In Hugo 0.55 and later you can do: - ```go-html-template ``` -Before that you would have to do something like: - -```go-html-template - -``` - - ## Order Content within Taxonomies @@ -220,8 +202,6 @@ Because we are leveraging the front matter system to define taxonomies for conte ### Example: List Tags in a Single Page Template -{{< new-in "0.65.0" >}} - ```go-html-template ``` -Before Hugo 0.65.0 you needed to do something like this: - -```go-html-template -{{ $taxo := "tags" }} - -``` - If you want to list taxonomies inline, you will have to take care of optional plural endings in the title (if multiple taxonomies), as well as commas. Let's say we have a taxonomy "directors" such as `directors: [ "Joel Coen", "Ethan Coen" ]` in the TOML-format front matter. To list such taxonomies, use the following: @@ -310,8 +276,6 @@ The following example displays all terms in a site's tags taxonomy: ### Example: List All Site Tags {#example-list-all-site-tags} -In Hugo 0.55 and later you can simply do: - ```go-html-template ``` -Before that you would do something like this: - -{{< todo >}}Clean up rest of the taxonomy examples re Hugo 0.55.{{< /todo >}} - -```go-html-template - -``` - ### Example: List All Taxonomies, Terms, and Assigned Content This example will list all taxonomies and their terms, as well as all the content assigned to each of the terms. diff --git a/content/en/tools/editors.md b/content/en/tools/editors.md index f0d82d65d..4db907489 100644 --- a/content/en/tools/editors.md +++ b/content/en/tools/editors.md @@ -29,6 +29,8 @@ The Hugo community uses a wide range of preferred tools and has developed plug-i * [Hugofy](https://marketplace.visualstudio.com/items?itemName=akmittal.hugofy). Hugofy is a plugin for Visual Studio Code to "make life easier" when developing with Hugo. The source code can be found [here](https://github.com/akmittal/hugofy-vscode). * [Hugo Helper](https://marketplace.visualstudio.com/items?itemName=rusnasonov.vscode-hugo). Hugo Helper is a plugin for Visual Studio Code that has some useful commands for Hugo. The source code can be found [here](https://github.com/rusnasonov/vscode-hugo). * [Hugo Language and Syntax Support](https://marketplace.visualstudio.com/items?itemName=budparr.language-hugo-vscode). Hugo Language and Syntax Support is a Visual Studio Code plugin for Hugo syntax highlighting and snippets. The source code can be found [here](https://github.com/budparr/language-hugo-vscode). +* [Hugo Themer](https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-hugo-themer). Hugo Themer is an extension to help you while developing themes. It allows you to easily navigate through your theme files. +* [Front Matter](https://marketplace.visualstudio.com/items?itemName=eliostruyf.vscode-front-matter). Once you go for a static site, you need to think about how you are going to manage your articles. Front matter is a tool that helps you maintaining the metadata/front matter of your articles like: creation date, modified date, slug, tile, SEO check, and many more... ## Emacs diff --git a/content/en/variables/page.md b/content/en/variables/page.md index a98edde54..8bad66d4f 100644 --- a/content/en/variables/page.md +++ b/content/en/variables/page.md @@ -118,7 +118,7 @@ See also `.ExpiryDate`, `.Date`, `.PublishDate`, and [`.GitInfo`][gitinfo]. : the Page content stripped of HTML tags and presented as a string. .PlainWords -: the Page content stripped of HTML as a `[]string` using Go's [`strings.Fields`](https://golang.org/pkg/strings/#Fields) to split `.Plain` into a slice. +: the slice of strings that results from splitting .Plain into words, as defined in Go's [strings.Fields](https://golang.org/pkg/strings/#Fields). .Prev : Points down to the previous [regular page](/variables/site/#site-pages) (sorted by Hugo's [default sort](/templates/lists#default-weight-date-linktitle-filepath)). Example: `{{if .Prev}}{{.Prev.Permalink}}{{end}}`. Calling `.Prev` from the last page returns `nil`. diff --git a/data/docs.json b/data/docs.json index 7ef0b939b..70aee718e 100644 --- a/data/docs.json +++ b/data/docs.json @@ -122,6 +122,7 @@ "bashrc", "ebuild", "eclass", + "env", "exheres-0", "exlib", "ksh", @@ -974,6 +975,12 @@ "prolog" ] }, + { + "Name": "PromQL", + "Aliases": [ + "promql" + ] + }, { "Name": "Protocol Buffer", "Aliases": [ @@ -1188,6 +1195,13 @@ "sml" ] }, + { + "Name": "Stylus", + "Aliases": [ + "styl", + "stylus" + ] + }, { "Name": "Swift", "Aliases": [ diff --git a/netlify.toml b/netlify.toml index 913d7965b..21649e987 100644 --- a/netlify.toml +++ b/netlify.toml @@ -3,7 +3,7 @@ publish = "public" command = "hugo --gc --minify" [context.production.environment] -HUGO_VERSION = "0.78.2" +HUGO_VERSION = "0.80.0" HUGO_ENV = "production" HUGO_ENABLEGITINFO = "true" @@ -11,20 +11,20 @@ HUGO_ENABLEGITINFO = "true" command = "hugo --gc --minify --enableGitInfo" [context.split1.environment] -HUGO_VERSION = "0.78.2" +HUGO_VERSION = "0.80.0" HUGO_ENV = "production" [context.deploy-preview] command = "hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL" [context.deploy-preview.environment] -HUGO_VERSION = "0.78.2" +HUGO_VERSION = "0.80.0" [context.branch-deploy] command = "hugo --gc --minify -b $DEPLOY_PRIME_URL" [context.branch-deploy.environment] -HUGO_VERSION = "0.78.2" +HUGO_VERSION = "0.80.0" [context.next.environment] HUGO_ENABLEGITINFO = "true" diff --git a/resources/_gen/images/news/0.79.0-relnotes/featured_hud3f5563b9eabb2fd9dcbcee84e72fe2d_75235_480x0_resize_catmullrom_2.png b/resources/_gen/images/news/0.79.0-relnotes/featured_hud3f5563b9eabb2fd9dcbcee84e72fe2d_75235_480x0_resize_catmullrom_2.png new file mode 100644 index 000000000..2dd944e97 Binary files /dev/null and b/resources/_gen/images/news/0.79.0-relnotes/featured_hud3f5563b9eabb2fd9dcbcee84e72fe2d_75235_480x0_resize_catmullrom_2.png differ diff --git a/resources/_gen/images/news/0.79.0-relnotes/featured_hud3f5563b9eabb2fd9dcbcee84e72fe2d_75235_640x0_resize_catmullrom_2.png b/resources/_gen/images/news/0.79.0-relnotes/featured_hud3f5563b9eabb2fd9dcbcee84e72fe2d_75235_640x0_resize_catmullrom_2.png new file mode 100644 index 000000000..5b2d51a23 Binary files /dev/null and b/resources/_gen/images/news/0.79.0-relnotes/featured_hud3f5563b9eabb2fd9dcbcee84e72fe2d_75235_640x0_resize_catmullrom_2.png differ diff --git a/resources/_gen/images/news/0.80.0-relnotes/featured_hu79434c84cc6c2c78f7828eb64a40630a_162027_480x0_resize_catmullrom_2.png b/resources/_gen/images/news/0.80.0-relnotes/featured_hu79434c84cc6c2c78f7828eb64a40630a_162027_480x0_resize_catmullrom_2.png new file mode 100644 index 000000000..9f1f270e4 Binary files /dev/null and b/resources/_gen/images/news/0.80.0-relnotes/featured_hu79434c84cc6c2c78f7828eb64a40630a_162027_480x0_resize_catmullrom_2.png differ diff --git a/resources/_gen/images/news/0.80.0-relnotes/featured_hu79434c84cc6c2c78f7828eb64a40630a_162027_640x0_resize_catmullrom_2.png b/resources/_gen/images/news/0.80.0-relnotes/featured_hu79434c84cc6c2c78f7828eb64a40630a_162027_640x0_resize_catmullrom_2.png new file mode 100644 index 000000000..20b712b44 Binary files /dev/null and b/resources/_gen/images/news/0.80.0-relnotes/featured_hu79434c84cc6c2c78f7828eb64a40630a_162027_640x0_resize_catmullrom_2.png differ diff --git a/resources/_gen/images/news/hugo-macos-intel-vs-arm/featured_hu3f81ebb7eadaa5c67f592034ca4c1896_299333_480x0_resize_catmullrom_2.png b/resources/_gen/images/news/hugo-macos-intel-vs-arm/featured_hu3f81ebb7eadaa5c67f592034ca4c1896_299333_480x0_resize_catmullrom_2.png new file mode 100644 index 000000000..d783eba09 Binary files /dev/null and b/resources/_gen/images/news/hugo-macos-intel-vs-arm/featured_hu3f81ebb7eadaa5c67f592034ca4c1896_299333_480x0_resize_catmullrom_2.png differ diff --git a/resources/_gen/images/news/hugo-macos-intel-vs-arm/featured_hu3f81ebb7eadaa5c67f592034ca4c1896_299333_640x0_resize_catmullrom_2.png b/resources/_gen/images/news/hugo-macos-intel-vs-arm/featured_hu3f81ebb7eadaa5c67f592034ca4c1896_299333_640x0_resize_catmullrom_2.png new file mode 100644 index 000000000..595c6dd32 Binary files /dev/null and b/resources/_gen/images/news/hugo-macos-intel-vs-arm/featured_hu3f81ebb7eadaa5c67f592034ca4c1896_299333_640x0_resize_catmullrom_2.png differ