Releases: gohugoio/hugo
v0.32.4
v0.32.3
Hugo 0.32
was a big and really cool release, and the Hugo Forum has been filled with questions from people wanting to upgrade their Hugo sites to be able to use the new image processing feature etc.
And with that we have discovered some issues, which this release should fix, mostly releated to multilingual sites:
- Fix multihost detection for sites without language definition 8969331f @bep #4221
- Fix hugo benchmark --renderToMemory 059e8458 @bep #4218
- Fix URLs for bundle resources in multihost mode ab82a27d @bep #4217
- Fix sub-folder baseURL handling for Page resources f25d8a9e @bep #4228
- Avoid processing and storing same image for each language 4b04db0f @bep #4231
- Resources.ByType should return Resources 97c1866e @bep #4234
- Report build time on config.toml change 6feb1387 @bep #4232#4224
- Fix handling of mixed-case taxonomy folders with content file 2d3189b2 @bep #4238
Automated with GoReleaser
Built with go version go1.9.2 linux/amd64
v0.32.2
This is a bug-fix release with one important fix.
- Handle publish of processed images to /public on fresh build with no image cache in /resources (as reported by one person in a Netlify build) 196da49c @bep #4213
Automated with GoReleaser
Built with go version go1.9.2 linux/amd64
v0.32.1
This fixes 2 bugs from the Hugo 0.32 release.
- Fix image processing from shortcodes in non-server mode. @bep #4202
- Fix broken
hugo --renderToMemory
. Note that this is only useful for benchmark testing, as there is no easy way to actually view the result. d36d71ed @bep #4212
Automated with GoReleaser
Built with go version go1.9.2 linux/amd64
v0.32
Hugo 0.32
features Page Bundles and Image Processing by @bep, which is very cool and useful on so many levels. Read about it in more detail in the Hugo documentation, but some of the highlights include:
- Automatic bundling of a content page with its resources. Resources can be anything: Images,
JSON
files ... and also other content pages. - A
Resource
will have itsRelPermalink
andPermalink
relative to the "owning page". This makes the complete article with both text and images portable (just send a ZIP file with a folder to your editor), and it can be previewed directly on GitHub. - Powerful and simple to use image processing with the new
.Resize
,.Fill
, and.Fit
methods on the newImage
resource. - Full support for symbolic links inside
/content
, both for regular files and directories.
The built-in benchmarks in Hugo show that this is also the fastest and most memory effective Hugo version to date. But note that the build time total reported in the console is now adjusted to be the real total, including the copy of static files. So, if it reports more milliseconds, it is still most likely faster ...
This release represents 30 contributions by 7 contributors to the main Hugo code base.
@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @betaveros, @chaseadamsio, and @kropp. And as always big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 17 contributions by 7 contributors. A special thanks to @bep, @felicianotech, @maiki, and @carlchengli for their work on the documentation site.
Hugo now has:
- 22061+ stars
- 454+ contributors
- 193+ themes
Today is New Year's Eve. It is the last day of 2017, a year that have seen a string of pearls of Hugo releases, making Hugo the top choice for website development:
- 0.32, December 2017: Page Bundles and Image Processing edition.
- 0.31, November 2017: The Language Multihost Edition! with one
baseURL
per language. - 0.30, October 2017: The Race Car Edition with the Fast Render Mode.
- 0.29, September 2017: Added Template Metrics.
- 0.28, September 2017: Blistering fast and native syntax highlighting from Chroma.
- 0.27, September 2017: Fast and flexible Related Content.
- 0.26, August 2017: The Language Style Edition with AP Style or Chicago Style Title Case and « French Guillemets ».
- 0.25, July 2017: The Kinder Surprise edition added, among other cool things,
hugo server --navigateToChanged
which navigates to the content page you start editing. - 0.24, June 2017: Was The Revival of the Archetypes! Now archetype files, i.e. the content file templates, can include template syntax with all of Hugo's functions and variables.
- 0.23, June 2017: Hugo moved to it's own GitHub organization, gohugoio.
- 0.22, June 2017: Added nested sections, a long sought after feature.
- 0.21, May 2017: Full support for shortcodes per output format (think AMP).
- 0.20, April 2017: Was all about Custom Output Formats.
- 0.19, February 2017: Native Emacs Org-mode content support and lots of internal upgrades.
Notes
- The build total in the console is now the ... total (i.e. it now includes both the copy of the static files and the Hugo build). So if your Hugo site seems to build slightly slower, it is in reality probably slightly faster than before this release.
- Images and other static resources in folders with "_index.md" will have its
RelPermalink
relative to its page. - Images and other static resources in or below "index.md" folders will have its
RelPermalink
relative to its page (respecting permalink settings etc.) - Content pages in or below "index.md" will not get their own
URL
, but will be part of the.Resources
collection of its page. .Site.Files
is deprecated.- Hugo no longer minfies CSS files inside
/content
. This was an undocumented "proof of concept feature". We may revisit the "assets handling" in a future release. Page.GetParam
does not lowercase your result anymore. If you really want to lowercase your params, do it with.GetParam "myparam" | lower
or similar.
Previously deprecated that will now ERROR
:
disable404
: UsedisableKinds=["404"]
disableRSS
: UsedisableKinds=["RSS"]
disableSitemap
: UsedisableKinds=["sitemap"]
disableRobotsTXT
: UsedisableKinds=["robotsTXT"]
Enhancements
- Add
.Title
and.Page
toMenuEntry
9df3736f @rmetzler #2784 - Add
Pandoc
support e69da7a4 @betaveros #234 - Implement Page bundling and image handling 3cdf19e9 @bep #3651#3158#1014#2021#1240#3757
- Make
chomp
return the type it receives 22cd89ad @kropp #2187 - Reuse the
BlackFriday
config instance when possible db4b7a5c @bep - Remove the goroutines from the shortcode lexer 24369410 @bep
- Improve site benchmarks 051fa343 @bep
- Update
Chroma
tov0.2.0
79892101 @bep #4087 - Update
goorgeous
tov1.1.0
7f2ae3ef @chaseadamsio - Add test for homepage content for all rendering engines 407c2402 @bep #4166
- Add output formats definition to benchmarks a2d81ce9 @bep
Fixes
Templates
- Do not unescape input to
highlight
c067f345 @bep #4179 - Properly close image file in
imageConfig
6d79beb5 @bep - Fix
opengraph
video range template 23f69efb @drlogout #4136 - Fix
humanize
for multi-byte runes e7652180 @bep #4133
Other
- Fix broken live reload without a server port. 25114986 @sainaen #4141
- Make sure all language homes are always re-rendered in fast render mode 72903be5 @bep #4125
- Do not
tolower
result from Page.GetParam 1c114d53 @bep #4187
Automated with GoReleaser
Built with go version go1.9.2 linux/amd64
v0.31.1
v0.31
Hugo 0.31
is the Language Multihost Edition!
The Multihost feature is sponsored by eSolia, @rickcogley's company.
Multihost means that you can have a baseURL
per language, for example, https://no.example.com
and https://en.example.com
. This is seamlessly integrated, and the built-in web server with live reload and navigateToChanged
etc. just works. A related enhancement in this release is the support for as many static dirs as you need, with intelligent language overrides, forming a big union file system. Add to that several other language related fixes and enhancements, it is safe to say that this is the version you want for multilingual Hugo sites!
This release represents 44 contributions by 7 contributors to the main Hugo code base.
@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @kaushalmodi, @natefinch, and @betaveros for their ongoing contributions.
And as always a big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 13 contributions by 9 contributors. A special thanks to @oncletom, @kaushalmodi, @XhmikosR, and @digitalcraftsman for their work on the documentation site.
Hugo now has:
- 21105+ stars
- 455+ contributors
- 184+ themes
Notes
- For mapping of translated content, Hugo now considers the full path of the content file, which makes it possible with translation of duplicate content filenames such as
index.md
. A specific translation key can be specified with the newtranslationKey
front matter variable. See #2699.
Enhancements
Language related
- Support unknown language codes 23ba779f @bep #3564
- Fix
.IsTranslated
with identical filenames b3daa1f4 @bep #2699 - Fall back to unstranslated base template 0a81a6b4 @bep #3893
- Add support for multiple static dirs 60dfb9a6 @bep #36#4027
- Add multilingual multihost support 2e046576 @bep #4027
Templates
- Refactor
Mod
withcast
76dc811c @artem-sidorenko - Add support for height argument to figure shortcode 488631fe @kaushalmodi #4014
Core
- Use ms precision for static change logging bb048d81 @bep
- Update Chroma to get the latest SASS lexer b32ffed6 @bep #4069
- Bump to Go 1.9.2 9299a16c @bep #4064
- Update Travis and snapcraft to Go 1.9.2 77cbd001 @bep #4064
- Handle Taxonomy permalinks d9a78b61 @betaveros #1208
Other
- Support Fast Render mode with sub-path in baseURL 31641033 @bep #3981
- Simplify Site benchmarks c3c10f2c @bep
- Replace
make
withmage
to build Hugo #3969 - Convert to
dep
as dependency/vendor manager for Hugo #3988 - Pre-allocate some slices a9be687b @bep
Fixes
Templates
- Make sure only one instance of a cached partial is rendered #4086
Other
- Fix broken shortcodes for
Ace
andAmber
503ca6de @bep #4051 - Fix error handling in
mage
build c9c19d79 @natefinch - Fix
hugo -w
fa53b13c @bep #3980
Automated with GoReleaser
Built with go version go1.9.2 linux/amd64
v0.30.2
v0.30.1
This is a bug-fix release with two important fixes.
- Fix hugo -w fa53b13c @bep #3980
- Revert sitemap template change to make the Google validator happy 5109ed520 @bep #3978
Hugo now has:
- 20285+ stars
- 454+ contributors
- 180+ themes
Automated with GoReleaser
Built with go version go1.9.1 linux/amd64
v0.30
Hugo 0.30
is the Race Car Edition. Hugo is already very very fast, but much wants more. So we added Fast Render Mode. It is hard to explain, so start the Hugo development server with hugo server
and start editing. Live reloads just got so much faster! The "how and what" is discussed at length in other places, but the short version is that we now re-render only the parts of the site that you are working on.
The second performance-related feature is a follow-up to the Template Metrics added in Hugo 0.29
. Now, if you add the flag --templateMetricsHints
, we will calculate a score for how your partials can be cached (with the partialCached
template func).
This release also more or less makes the really fast Chroma highlighter a complete alternative to Pygments. Most noteable is the new table linenos
support (7c30e2cb @bep #3915), which makes copy-and-paste code blocks much easier.
This release represents 31 contributions by 10 contributors to the main Hugo code base.
@bep leads the Hugo development with a significant amount of contribution, but also a big shoutout to @moorereason, @digitalcraftsman, and @bmon for their ongoing contributions.
And as always a big thanks to @digitalcraftsman for his relentless work on keeping the documentation and the themes site in pristine condition.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 26 contributions by 15 contributors. A special thanks to @bep, @digitalcraftsman, @moorereason, and @kaushalmodi for their work on the documentation site.
Hugo now has:
- 20195+ stars
- 454+ contributors
- 180+ themes
Notes
- Running
hugo server
will now run with the new "Fast Render Mode" default on. To turn it off, runhugo server --disableFastRender
or setdisableFastRender=true
in your site config. - There have been several fixes and enhancements in the Chroma highlighter. One is that it now creates Pygments compatible CSS classes, which means that you may want to re-generate the stylesheet. See the Syntax Highlighting Doc.
Enhancements
Performance
- Only re-render the view(s) you're working on 60bd332c @bep #3962
- Detect
partialCached
candidates 5800a20a @bep - Move metrics output to the end of the site build b277cb33 @moorereason
Templates
- Output
xmlns:xhtml
only if there are translations available 0859d9df @jamieconnolly - Add
errorf
template function 4fc67fe4 @bmon #3817 - Add
os.FileExists
template function 28188789 @digitalcraftsman #3839 - Add
float
template function 57adc539 @x3ro #3307 - Rework the partial test and benchmarks e2e8bcbe @bep
Other
- Change
SummaryLength
to be configurable (#3924) 8717a60c @bmon #3734 - Replace
make
withmage
in CircleCI build fe71cb6f @bep #3969 - Add table
linenos
support for Chroma highlighter 7c30e2cb @bep #3915 - Replace
make
withmage
8d2580f0 @bep #3937 - Create
magefile
fromMakefile
384a6ac4 @natefinch - Clean up lint in various packages 47fdfd51 @moorereason