Age | Commit message (Collapse) | Author |
|
Closes #109
|
|
|
|
|
|
|
|
|
|
|
|
since the release notes were moved to GitHub:
https://gohugo.io/news/no-more-releasenotes-here/
|
|
|
|
|
|
Fixes #9577
|
|
Updates #7765
|
|
You can now create custom hook templates for code blocks, either one for all (`render-codeblock.html`) or for a given code language (e.g. `render-codeblock-go.html`).
We also used this new hook to add support for diagrams in Hugo:
* Goat (Go ASCII Tool) is built-in and enabled by default; just create a fenced code block with the language `goat` and start draw your Ascii diagrams.
* Another popular alternative for diagrams in Markdown, Mermaid (supported by GitHub), can also be implemented with a simple template. See the Hugo documentation for more information.
Updates #7765
Closes #9538
Fixes #9553
Fixes #8520
Fixes #6702
Fixes #9558
|
|
|
|
Introduces the Crop method for image processing which implements gift.CropToSize. Also allows a smartCrop without resizing, and updates the documentation.
Fixes #9499
|
|
|
|
See #8949
|
|
|
|
Closes #1598
|
|
Prior to this change, it was not possible to link to headings. For
example, this link wasn't functional:
functions/lang/#langformatnumber
|
|
|
|
Fixes #8820
|
|
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster:
```
BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op
BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op
```
Fixes #8633
Fixes #8618
Fixes #8630
Updates #8591
Closes #6680
Closes #5192
|
|
|
|
|
|
|
|
|
|
|
|
This is an improvement over the `readfiles` shortcode in that it allows to insert content files that contain shortcodes themselves.
This new shortcode is used to fix a regression introduced in https://github.com/gohugoio/hugoDocs/pull/1442 (`new-in` shortcode was not rendered as intended).
|
|
Closes #1437
|
|
Closes #1374
|
|
* remove trailing space after "terms" in page-kinds shortcode
* use % style shortcode to render page-kinds markdown table
|
|
|
|
|
|
|
|
And we have taken great measures to limit potential site breakage:
* For `disableKinds` and `outputs` we try to map from old to new values if possible, if not we print an ERROR that can be toggled off if not relevant.
* The layout lookup is mostly compatible with more options for the new `term` kind.
That leaves:
* Where queries in site.Pages using taxonomy/taxonomyTerm Kind values as filter.
* Other places where these kind value are used in the templates (classes etc.)
Fixes #6911
Fixes #7395
|
|
This commit adds the fast and CommonMark compliant Goldmark as the new default markdown handler in Hugo.
If you want to continue using BlackFriday as the default for md/markdown extensions, you can use this configuration:
```toml
[markup]
defaultMarkdownHandler="blackfriday"
```
Fixes #5963
Fixes #1778
Fixes #6355
|
|
|
|
|
|
|
|
|
|
The image processing examples are rendered within containers with a
'nested-img' parent CSS class, which by default makes images responsive
by resizing them to the size of their containers.
That doesn't work well for the examples as the small images end up
stretched.
Since there can be other images in the same 'nested-img' context, we
keep that class in the parent and set the example images width to auto,
such that they will render with their actual size.
On small screens, larger images will still be sized down via the
max-width property.
Fixes #812
|
|
Took the easy approach.
Fixes #783
|
|
|
|
|
|
|
|
|
|
|
|
Ref: https://github.com/gohugoio/hugoDocs/issues/6
|
|
Fixes #11
|
|
|