git-subtree-dir: docs git-subtree-split: fdea5430f89dfd849d39212abdf5ace0a4763e5a
7.7 KiB
date: 2018-04-02 title: "Hugo 0.38: The Easter Egg Edition" description: "Hugo 0.38: Date and slug from filenames, multiple content dirs, config from themes, language merge func …" categories: ["Releases"]
Hugo 0.38
is an Easter egg filled with good stuff. We now support fetching date and slug from the content filename, making the move from Jekyll even easier. And you can now set contentDir
per language with intelligent merging, and themes can now provide configuration ... Also worth mentioning is several improvements in the Chroma highlighter, most notable support for Go templates.
We are working hard to get the documentation up-to-date with the new features, but you can also see them in action with the full source at hugotest.bep.is.
This release represents 39 contributions by 4 contributors to the main Hugo code base. @bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @anthonyfok, @felicianotech, and @paulcmal for their ongoing contributions.
And a big thanks to @digitalcraftsman for his relentless work on keeping the themes site in pristine condition and to @kaushalmodi for his great work on the documentation site.
Also, a shoutout to @regisphilibert for his work on the new Code Toggle Shortcode on the Hugo docs site, which we will put to good use to improve all the configuration samples.
Many have also been busy writing and fixing the documentation in hugoDocs, which has received 55 contributions by 18 contributors. A special thanks to @kaushalmodi, @bep, @xa0082249956, and @paulcmal for their work on the documentation site.
Hugo now has:
- 24547+ stars
- 447+ contributors
- 213+ themes
Notes
- Hugo now allows partial redefinition
outputs
in your site configuration. This is what most people would expect, but it is still a change in behaviour. For details, see #4487 - Before this release, Hugo flattened URLs of processed images in sub-folders. This worked fine but was not intentional. See #4502.
Enhancements
- Allow themes to define output formats, media types and params e9c7b620 @bep #4490
- Allow partial redefinition of the
ouputs
config f8dc47ee @bep #4487 - Add a way to merge pages by language ffaec4ca @bep #4463
- Extract
date
andslug
from filename 68bf1511 @bep #285#3310#3762#4340 - Add
Delete
method to delete key fromScratch
e46ab29b @paulcmal - Simplify Prev/Next 79dd7cb3 @bep
- List Chroma lexers 2c54f1ad @bep #4554
- Add support for a
contentDir
set per language eb42774e @bep #4523#4552#4553 - Update Chroma 7a634898 @bep #4549
- Add
.Site.IsServer
1823c053 @felicianotech #4478 - Move to Ubuntu Trusty image 511d5d3b @anthonyfok
- Bump some deprecations b6798ee8 @bep
- Update Chroma to get
Go template support
904a3d9d @bep #4515 - Recover from error in server f0052b6d @bep #4516
- Spring test cleaning, take 2 da880157 @bep
- Add docs for
lang.Merge
70005364 @bep - Remove archetype title/date warning ac12d51e @bep #4504
- Add docs on the new front matter configuration 0dbf79c2 @bep #4495
- Refactor the GitInfo into the date handlers ce6e4310 @bep #4495
- Do not print build total when
--quiet
is set 50a03a5a @bep #4456