mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Merge commit '3c0036805d64fdd8290f1c4a31371780ff3ea365'
This commit is contained in:
@@ -9,9 +9,9 @@ images:
|
||||
|
||||
---
|
||||
|
||||
|
||||
The main driving force behind these patch releases in the new year has been getting a good story with [portable links](https://github.com/bep/portable-hugo-links/) between GitHub and Hugo, using the new render hooks introduced in [Hugo 0.62.0](https://gohugo.io/news/0.62.0-relnotes/). And all was mostly well until a Hugo user asked about anchor links. Which is, when you look into it, a slightly sad Markdown story. They have been [talking about anchors in Markdown](https://talk.commonmark.org/t/anchors-in-markdown/247) over at the CommonMark forum for the last six years, but it has come to nothing. The current situation is that some Markdown engines support the `{#anchorName}` attribute syntax (Hugo's Goldmark does, GitHub does not) and for those that support auto-generation of IDs, the implementation often varies. And this makes for poor portability.
|
||||
|
||||
This is a bug-fix release with a couple of important fixes.
|
||||
To improve this, Hugo has now reverse-engineered GitHub's implementation and made that the default strategy for generation or header IDs. We understand that this isn't everyone's cup of tea, so you can [configure the behaviour](https://gohugo.io/getting-started/configuration-markup#goldmark) to be one of `github`, `github-ascii` (some client-libraries have Unicode issues) or `blackfriday` (which will match how it behaved before Hugo 0.60).
|
||||
|
||||
* hugolib: Fix relative .Page.GetPage from bundle [196a9df5](https://github.com/gohugoio/hugo/commit/196a9df585c4744e3280f37c1c24e469fce14b8c) [@bep](https://github.com/bep) [#6705](https://github.com/gohugoio/hugo/issues/6705)
|
||||
* markup/goldmark: Adjust auto ID space handling [9b6e6146](https://github.com/gohugoio/hugo/commit/9b6e61464b09ffe3423fb8d7c72bddb7a9ed5b98) [@bep](https://github.com/bep) [#6710](https://github.com/gohugoio/hugo/issues/6710)
|
||||
|
BIN
docs/content/en/news/0.63.0-relnotes/featured-063.png
Normal file
BIN
docs/content/en/news/0.63.0-relnotes/featured-063.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 207 KiB |
@@ -1,12 +1,14 @@
|
||||
|
||||
---
|
||||
date: 2020-01-23
|
||||
title: "0.63.0"
|
||||
description: "0.63.0"
|
||||
title: "Improved base templates, and faster!"
|
||||
description: "In Hugo 0.63 we have improved the base template lookup logic, and this simplification also made Hugo faster …"
|
||||
categories: ["Releases"]
|
||||
---
|
||||
|
||||
Hugo `0.53` is, in general, **considerably faster and more memory effective** (see the site-building benchmarks below comparing it to `v0.52`). Not that we are particularly concerned about Hugo's build speed. We leave that to others. But we would hate if it got slower, so we have a comprehensive benchmark suite. And when we needed to simplify the template handling code to solve a concurrency issue, it also became more effective. And as a bonus, we also finally got the [base template lookup order](https://gohugo.io/templates/base/#base-template-lookup-order) that you really, really wanted!
|
||||
**Note:** There is already a [patch release](/news/0.63.1-relnotes/) with some fixes.
|
||||
|
||||
Hugo `0.63` is, in general, **considerably faster and more memory effective** (see the site-building benchmarks below comparing it to `v0.62`). Not that we are particularly concerned about Hugo's build speed. We leave that to others. But we would hate if it got slower, so we have a comprehensive benchmark suite. And when we needed to simplify the template handling code to solve a concurrency issue, it also became more effective. And as a bonus, we also finally got the [base template lookup order](https://gohugo.io/templates/base/#base-template-lookup-order) that you really, really wanted!
|
||||
|
||||
```bash
|
||||
name old time/op new time/op delta
|
||||
@@ -56,6 +58,7 @@ Hugo now has:
|
||||
* `.Type` on-page now returns an empty string if not set in the front matter or if `.Section` returns empty. See [#6760](https://github.com/gohugoio/hugo/issues/6760).
|
||||
* Baseof template (e.g. `baseof.html`) lookup order is completely revised/expanded. See [base template lookup order](https://gohugo.io/templates/base/#base-template-lookup-order). We now do template resolution at execution time following the same rules as the template it applies to (e.g. `_default/single.html`). This is an obvious improvement and your site should work as before.
|
||||
* Shortcode params now supports params with raw string literals (strings surrounded with \`\`) that supports newlines.
|
||||
* Note: In a base template (e.g. `baseof.html`), the first template block must be a `define`.
|
||||
|
||||
## Enhancements
|
||||
|
||||
|
@@ -8,13 +8,10 @@ images:
|
||||
- images/blog/hugo-bug-poster.png
|
||||
|
||||
---
|
||||
|
||||
|
||||
|
||||
This is a bug-fix release with a couple of important fixes.
|
||||
|
||||
* deps: Make the build flags shared between sites [0df7bd62](https://github.com/gohugoio/hugo/commit/0df7bd62df460a49544845d5332f33b2020b48a1) [@bep](https://github.com/bep) [#6789](https://github.com/gohugoio/hugo/issues/6789)
|
||||
* Fix baseof with regular define regression [f441f675](https://github.com/gohugoio/hugo/commit/f441f675126ef1123d9f94429872dd683b40e011) [@bep](https://github.com/bep) [#6790](https://github.com/gohugoio/hugo/issues/6790)
|
||||
|
||||
|
||||
* Revert to minify [v2.61](https://github.com/gohugoio/hugo/commit/7ed22e9fb6a5b74c52ae6054b843b8c64e83f4b6)
|
||||
|
||||
|
@@ -15,6 +15,6 @@ This is a bug-fix release with a couple of important fixes.
|
||||
|
||||
* And now finally fix the 404 templates [74b6c4e5](https://github.com/gohugoio/hugo/commit/74b6c4e5ff5ee16f0e6b352a26c1e58b90a25dc6) [@bep](https://github.com/bep) [#6795](https://github.com/gohugoio/hugo/issues/6795)
|
||||
* Fix 404 with base template regression [8df5d76e](https://github.com/gohugoio/hugo/commit/8df5d76e708238563185bac84809b34a4d395734) [@bep](https://github.com/bep) [#6795](https://github.com/gohugoio/hugo/issues/6795)
|
||||
|
||||
* Revert to .Type = "page" when empty [#6805](https://github.com/gohugoio/hugo/issues/6805)
|
||||
|
||||
|
||||
|
BIN
docs/content/en/news/0.64.0-relnotes/hugo-64-poster-featured.png
Normal file
BIN
docs/content/en/news/0.64.0-relnotes/hugo-64-poster-featured.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
@@ -1,12 +1,12 @@
|
||||
|
||||
---
|
||||
date: 2020-02-04
|
||||
title: "0.64.0"
|
||||
description: "0.64.0"
|
||||
title: "Mostly bugfixes …"
|
||||
description: "Hugo 0.64.0 is the version you really really want …"
|
||||
categories: ["Releases"]
|
||||
---
|
||||
|
||||
Hugo **0.64.0** is mostly a bugfix-release, but well worth the download. The main reason this release comes so soon after the previous is my (me being [@bep](https://github.com/bep)) ongoing work on getting solid support for third-party libraries in [Hugo Modules](https://gohugo.io/hugo-modules/). In particular, this release makes the Hugo server's live-reload work with [Turbolinks](https://github.com/bep/hugo-alpine-test/blob/27927832630be588eab0be2197cc8c0cb5725540/config.toml#L11) and similar. Also worth mentioning is that `hugo mod get -u` (without any path) now correctly updates every module imported in `config.toml` even with Go 1.13.
|
||||
Hugo **0.64.0** is mostly a bugfix-release, but well worth the download. The main reason this release comes so soon after the previous is my (me being [@bep](https://github.com/bep)) ongoing work on getting solid support for third-party libraries in [Hugo Modules](https://gohugo.io/hugo-modules/). In particular, this release makes the Hugo server's live-reload work with [Turbolinks](https://github.com/bep/hugo-alpine-test/blob/27927832630be588eab0be2197cc8c0cb5725540/config.toml#L11) and similar. Also worth mentioning is that `hugo mod get -u` (without any path) now correctly updates every module imported in `config.toml` even with Go 1.13.
|
||||
|
||||
This release represents **16 contributions by 2 contributors** to the main Hugo code base.
|
||||
Many have also been busy writing and fixing the documentation in [hugoDocs](https://github.com/gohugoio/hugoDocs),
|
||||
|
Reference in New Issue
Block a user