Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Changelog:
v0.93.2
This is a bug-fix release with a couple of important fixes.
tpl/os: Revert readDir in theme behaviour
markup/goldmark: Escape image alt attribute
v0.93.1
This is a bug-fix release with a couple of important fixes.
tpl/transform: Fix it when template.HTML is passes as option to Hightlight
tpl/partials: Fix partialCached deadlock regression
tpl/collections: Fix apply when function have Context as first arg
v0.93.0
Markdown diagrams and code block render hooks. Now it's possible
create custom templates for Markdown code blocks, either for all or
just for specific programming languages. This can also be used to
render diagrams from Markdown code blocks. We provide GoAT (Go ASCII
Tool) natively from Hugo, but you can also add your own template to
get Mermaid support. The implementation of GoAT is a Go
implementation by @blampe of markdeep.mini.js' diagrams. See the
diagram documentation for details.
Also new in this release are:
The new CLI flag --printUnusedTemplates which prints templates not being invoked during the build.
The new method $image.Crop allows images to be cropped without being resized (thanks @johnsvenn for the implementation).
Notes
We have renamed some command line flags for consistency:
--i18n-warnings to printI18nWarnings, --path-warnings, --print-men
to --printPathWarnings, --printMemoryUsage.
Finally remove deprecated Page methods
Changes
docs: Regenerate docs helper
markup/highlight: Ignore HL_lines_parsed in the gen docs
cod: Regen CLI docs
tpl/diagrams: Rename the SVG accessor to Wrapped
markup/highlight: Rework the return value from HighlightCodeblock
tpl/transform: Add CanHighlight
Rename Codeowners() to CodeOwners()
tpl/diagrams: Rename Body to Inner
CodeblockContext method renames
build(deps): bump github.com/tdewolff/minify/v2 from 2.9.29 to 2.10.0
markup/goldmark: Adjust test for Windows
markup/goldmark: Improve attributes vs options
markup/goldmark: Add Position to CodeblockContext
markup/goldmark: Unify some code block tests
Remove the trailing new line in .Code
markup/goldmark: Rename extension struct
build(deps): bump github.com/gobuffalo/flect from 0.2.3 to 0.2.4
markup/goldmark: Use Ordinal to create default lineanchors
build(deps): bump github.com/gorilla/websocket from 1.4.2 to 1.5.0
build(deps): bump github.com/sanity-io/litter from 1.5.1 to 1.5.2
Move the Goat template to the correct place
build(deps): bump google.golang.org/api from 0.63.0 to 0.70.0
Update error message about failed menus in config.toml
build(deps): bump github.com/getkin/kin-openapi from 0.85.0 to 0.90.0
Add test for line anchor attributes with code fences
build(deps): bump github.com/evanw/esbuild from 0.14.22 to 0.14.23
Add Markdown diagrams and render hooks for code blocks
build(deps): bump github.com/aws/aws-sdk-go from 1.41.14 to 1.43.5
build(deps): bump github.com/google/go-cmp from 0.5.6 to 0.5.7
Add support for CODEOWNERS
Remove Viper as a dependency
helpers: Allow hyphens in UnicodeSanitize
Change disqus_config to window.disqus_config
deps: Update github.com/spf13/cobra v1.2.1 => v1.3.0
Add page.Store
Allow images to be cropped without being resized
commands: Fix server panic regression
markup/goldmark: Add BenchmarkCodeblocks
deps: Update github.com/gohugoio/localescompressed v0.14.0 => v0.15.0
deps: Update github.com/yuin/goldmark v1.4.4 => v1.4.7
modules: Add modules.Workspace config for Go 1.18
Update stale.yml
Update stale.yml
github: Configure stale to be run manually
tpl/partials: Fix recently introduced deadlock in partials cache
tpl/partials: Add some more partials to BenchmarkIncludeCached
deps: Update github.com/evanw/esbuild v0.14.11 => v0.14.22
tpl/partials: Make sure a cached partial is invoked only once
build(deps): bump github.com/rogpeppe/go-internal from 1.8.0 to 1.8.1
build(deps): bump github.com/magefile/mage from 1.11.0 to 1.12.1
markup/goldmark: Exclude event attributes from markdown render hook
markup/goldmark: Fix mangling of headers/links in render hooks
markup/goldmark: Add a render hook benchmark
Fix BenchmarkCascadeTarget
metrics: Add cached count tracking
tpl: Remove TODO comment
Add --printUnusedTemplates
deps: Update github.com/tdewolff/minify/v2 v2.9.22 => v2.9.29
commands: Rename --i18n-warnings to printI18nWarnings
commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
deps: Update github.com/alecthomas/chroma v0.9.4 => v0.10.0
Finally remove deprecated Page methods
tpl: Use go:embed to load internal templates
releaser: Prepare repository for 0.93.0-DEV
releaser: Bump versions for release of 0.92.2
releaser: Add release notes for 0.92.2
Add HUGO_ENV to the os/exec environment
Simplify some integration tests
Fix validation of Page Kind in cascade target map
Add another cascade benchmark
commands: Fix server deadlock on config error
Exclude event attributes when rendering markdown
Remove the "check" command
Update the application/javascript media type
tpl/templates: Fix templates.Exist issue with base templates
Add a migration test helper
babel: Port integration tests to their own package
js: Port integration tests to its own package
postcss: Move integration test to its own package
minifier: Port integration tests to its package
templates: Port integration test to its package
tocss: Port integration tests to their package
openapi3: Port integration test into correct
Add a new integration test framework
Validate comparison operator argument count
Remove hugo gen autocomplete
deps: Update github.com/pelletier/go-toml/v2 to v2.0.0-beta.6
Fix erroneous warning with .Page.RenderString on a page without a backing file
Fix typo in panicOnWarning message
releaser: Prepare repository for 0.93.0-DEV
releaser: Bump versions for release of 0.92.1
releaser: Add release notes for 0.92.1
Make the RenderString content provider fix more general
Fix .RenderString issue in .Translations
general: Fix issue causing log threads to hang indefinitely when print() panics
Fix duplicate mount sources
tpl/collections: Fix apply with namespaced template funcs
common: Remove unused code
common/paths: Remove unused code
helpers: Remove unused code
Do not render hl_style as an HTML attribute
build(deps): bump github.com/spf13/viper from 1.8.1 to 1.10.1
Fixing typos
Fix typo in warning message
github: Clean up the issue templates a little
github: Add lock-threads step
releaser: Prepare repository for 0.93.0-DEV
v0.92.2
This is a bug-fix release with a couple of important fixes.
Add HUGO_ENV to the os/exec environment
Simplify some integration tests
Fix validation of Page Kind in cascade target map
Add another cascade benchmark
commands: Fix server deadlock on config error
Exclude event attributes when rendering markdown
Remove the "check" command
Update the application/javascript media type
tpl/templates: Fix templates.Exist issue with base templates
Add a migration test helper
babel: Port integration tests to their own package
js: Port integration tests to its own package
postcss: Move integration test to its own package
minifier: Port integration tests to its package
templates: Port integration test to its package
tocss: Port integration tests to their package
openapi3: Port integration test into correct package
Add a new integration test framework
Validate comparison operator argument count
Remove hugo gen autocomplete
deps: Update github.com/pelletier/go-toml/v2 to v2.0.0-beta.6
Fix erroneous warning with .Page.RenderString on a page without a backing file
Fix typo in panicOnWarning message
releaser: Prepare repository for 0.93.0-DEV
v0.92.1
This is a bug-fix release with a couple of important fixes.
Make the RenderString content provider fix more general
Fix .RenderString issue in .Translations
general: Fix issue causing log threads to hang indefinitely when print() panics
Fix duplicate mount sources
tpl/collections: Fix apply with namespaced template funcs
common: Remove unused code
common/paths: Remove unused code
helpers: Remove unused code
Do not render hl_style as an HTML attribute
build(deps): bump github.com/spf13/viper from 1.8.1 to 1.10.1
Fixing typos
Fix typo in warning message
github: Clean up the issue templates a little
github: Add lock-threads step
v0.92.0
docs: Regenerate docshelper
Only create LazyContentProvider for the non-rendering Site
Fix missing page data for alternative formats
docs: Add dependency table to maintainance page
deps: Upgrade github.com/evanw/esbuild v0.14.8 => v0.14.11
Add hugo.Deps
hugolib: Fix livereload problem with files including NFC characters in MacOs
docs. Regen CLI docs
commands: Fix CLI help text for hugo new
Update to Go 1.17.6
create: Correctly pass newContentEditor flags
Add --panicOnWarning flag
github: Increase stale days
docs: Regenerate CLI docs
docs: Regenerate docshelper
Remove mmark
Misc depreation updates
Make the deprecated Page/File methods (from Hugo 0.55) ERROR
github: Add add stale GitHub action
Fix surprise OutputFormat.Rel overwriting
hugolib: Make an RST test optional
deps: Upgrade github.com/niklasfasching/go-org v1.5.0 => v1.6.0
Update stale.yml
releaser: Prepare repository for 0.92.0-DEV
releaser: Bump versions for release of 0.91.2
releaser: Add release notes for 0.91.2
Revert "config/security: Add HOME to default exec env var whitelist"
Make sure we always create the /public folder
Fix "stuck on build" in error situations in content processing
deps: Run "go mod tidy"
deps: Upgrade github.com/evanw/esbuild v0.14.7 => v0.14.8
releaser: Prepare repository for 0.92.0-DEV
releaser: Bump versions for release of 0.91.1
releaser: Add release notes for 0.91.1
media: Also consider extension in FromContent
media: Add missing BMP and GIF to the default MediaTypes list
media: Add PDF MIME type
deps: Update github.com/evanw/esbuild v0.14.5 => v0.14.7
config/security: Add HOME to default exec env var whitelist
modules: Set GOCACHE env var
releaser: Prepare repository for 0.92.0-DEV
v0.91.2
This is a bug-fix release with a couple of important fixes.
Revert "config/security: Add HOME to default exec env var whitelist"
Make sure we always create the /public folder
Fix "stuck on build" in error situations in content processing
deps: Run "go mod tidy"
deps: Upgrade github.com/evanw/esbuild v0.14.7 => v0.14.8
v0.91.1
This is a bug-fix release with a couple of important fixes.
media: Also consider extension in FromContent
media: Add missing BMP and GIF to the default MediaTypes list
media: Add PDF MIME type
deps: Update github.com/evanw/esbuild v0.14.5 => v0.14.7
config/security: Add HOME to default exec env var whitelist
modules: Set GOCACHE env var
v0.91.0
docs: Regen docs helper
tpl/resources: Add empty method mapping for GetRemote
Always use content to resolve content type in resources.GetRemote
Add resources.GetRemote
Allow for return partials with falsy arguments
deps: Upgrade github.com/evanw/esbuild v0.14.2 => v0.14.5
don't use path.Join, because it cleans the final path
Add some basic security policies with sensible defaults
Simplify Babel test assertions
Improve handling of remote image/jpeg resources
Fix Dockerfile
Remove debug statement
Fix deprecation notice
releaser: Prepare repository for 0.91.0-DEV
releaser: Bump versions for release of 0.90.1
releaser: Add release notes for 0.90.1
Remove the retries on error in remote resources.Get
Allow user to handle/ignore errors in resources.Get
Make resource.Get return nil on 404 not found
Update to Go 1.17.5
Update to Go 1.17.4 and remove timeout in resources.Get
v0.90.1
Remove the retries on error in remote resources.Get
Allow user to handle/ignore errors in resources.Get
Make resource.Get return nil on 404 not found
Update to Go 1.17.5
Update to Go 1.17.4 and remove timeout in resources.Get
v0.90.0
Add custom font support to images.Text
images: Fix cache busting of image text filter
build(deps): bump github.com/getkin/kin-openapi from 0.80.0 to 0.85.0
images: Text filter that draws text with the given options
tpl/transform: Optional options for highlight func
deps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note)
releaser: Add "note" to Note regexp
build(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3
releaser: Rework and simplify to use GitHub only for release notes
build(deps): bump google.golang.org/api from 0.51.0 to 0.61.0
media: Add rss suffix for application/rss+xml
parser: Add a test case in format resolution
lazy: Reset error in Reset
Implement XML data support
Validate private use language tags
resources: Add timeout to the HTTP request in Get
Add a remote retry for resources.Get
Make resources.Get use a file cache for remote resources
Remove empty href element from pagination template
Check for empty deployment targets and matchers
resources: Adjust the remote Get cache so it does not get evicted on restarts
Add remote support to resources.Get
Add deprecation warning to google_news template
helpers: Make UniqueStringsReuse allocation free
releaser: Prepare repository for 0.90.0-DEV
releaser: Add release notes to /docs for release of 0.89.4
releaser: Bump versions for release of 0.89.4
releaser: Add release notes for 0.89.4
Fix content dir resolution when main project is a Hugo Module
releaser: Prepare repository for 0.90.0-DEV
releaser: Add release notes to /docs for release of 0.89.3
releaser: Bump versions for release of 0.89.3
releaser: Add release notes for 0.89.3
Improve error when we cannot determine content directory in "hugo new"
deps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4
commands: Make sure pollInterval is always set
create: Improve archetype directory discovery and tests
create: Add a log statement when archetype is a directory
create: Always print "Content ... created"
commands: Fix missing file locking in server partial render
modules: Improve error message
releaser: Prepare repository for 0.90.0-DEV
releaser: Add release notes to /docs for release of 0.89.2
releaser: Bump versions for release of 0.89.2
releaser: Add release notes for 0.89.2
Fix path resolution in hugo new
deps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3
releaser: Prepare repository for 0.90.0-DEV
releaser: Add release notes to /docs for release of 0.89.1
releaser: Bump versions for release of 0.89.1
releaser: Add release notes for 0.89.1
Revert "releaser: Fat MacOS binaries"
create: Make sure the build lock is released before we open editor
readme: Update dependency list
releaser: Add "note" to Note regexp
releaser: Rework and simplify to use GitHub only for release notes
releaser: Simplify the release process
releaser: Remove unused code
docs: Regenerate docs helper
v0.89.4
This is a bug-fix release with one important fix for people using
hugo new to create new content:
Fix content dir resolution when main project is a Hugo Module
v0.89.3
This is a bug-fix release with a couple of important fixes.
Improve error when we cannot determine content directory in "hugo new"
deps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4
commands: Make sure pollInterval is always set
create: Improve archetype directory discovery and tests
create: Add a log statement when archetype is a directory
create: Always print "Content ... created"
commands: Fix missing file locking in server partial render
modules: Improve error message
v0.89.2
This is a bug-fix release with a couple of important fixes.
Fix path resolution in hugo new
deps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3
v0.89.1
This is a bug-fix release with a couple of important fixes.
Revert "fat macOS binaries"
create: Make sure the build lock is released before we open editor
readme: Update dependency list
v0.89.0
Notes
Hugo now writes an empty file named .hugo_build.lock to the root
of the project when building (also when doing hugo new mypost.md
and other commands that requires a build). We recommend you just
leave this file alone. Put it in .gitignore or similar if you
don't want the file in your source repository. We have updated to
ESBuild v0.13.12. The release notes for v0.13.0 mentions a
potential breaking change. We now only build AMD64 release
binaries (see this issue) for the Unix OSes (e.g. NetBSD). If you
need, say, a binary for ARM64, you need to build it yourself. We
now build only one release binary/archive for MacOS (see this
issue) that works on both Intel and the new Arm M1 systems.
.File.ContentBaseName now returns the owning directory name for
all bundles (branch an leaf). This is a bug fix, but worth
mentioning. See this issue. We have updated the Twitter shortcode
to use Twitter's new API.
Enhancements/Templates
Use configured location when date passed to Format is string
Add path.Clean
Other
Regen CLI docs f503b639 @bep
Make ContentBaseName() return the directory for branch bundles
Update Twitter shortcode oEmbed endpoint
bump github.com/evanw/esbuild from 0.13.10 to 0.13.12
bump github.com/yuin/goldmark from 1.4.1 to 1.4.2
bump github.com/aws/aws-sdk-go from 1.40.8 to 1.41.14
bump github.com/getkin/kin-openapi from 0.79.0 to 0.80.0
bump github.com/evanw/esbuild from 0.13.8 to 0.13.10
Rename excepted filenames for image golden testdata
bump github.com/frankban/quicktest from 1.13.1 to 1.14.0
Validate the target path in hugo new
Set zone of datetime from from go-toml
Added nodesource apt repository to snap package
Set HUGO_ENABLEGITINFO=false override in Set_in_string
Add includeFiles and excludeFiles to mount configuration
bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2
Always preserve the original transform error
Add hyperlink to the banner
bump github.com/getkin/kin-openapi from 0.78.0 to 0.79.0
github.com/evanw/esbuild v0.13.5 => v0.13.8
Return error on no content dirs
Add a cross process build lock and use it in the archetype content builder
github.com/alecthomas/chroma v0.9.2 => v0.9.4
Reimplement archetypes
bump github.com/tdewolff/minify/v2 from 2.9.21 to 2.9.22
Update github.com/evanw/esbuild v0.13.5
bump github.com/mattn/go-isatty from 0.0.13 to 0.0.14
bump github.com/getkin/kin-openapi from 0.75.0 to 0.78.0
Allow multiple plugins in the PostCSS options map
Create path.Clean documentation
Skip a test assertion on CI
Remove tracking image
Revert "Remove credit from release notes"
Pass minification errors to the user
Clarify "precision" in currency format functions
bump github.com/evanw/esbuild from 0.12.24 to 0.12.29
Use default math/rand.Source for concurrency safety
Make the error handling for the mod commands more lenient
Add some help text to the 'unknown revision' error
Update github.com/yuin/goldmark v1.4.0 => v1.4.1
Fixes/Templates
Fix time.Format with Go layouts
Other
Fix description of lang.FormatNumberCustom
Fix typo in error message
Fix panic when specifying multiple excludeFiles directives
Fix file permissions in new archetype implementation
Fix the "page picker" logic in --navigateToChanged
Fix a typo on OpenBSD
Fix value of useResourceCacheWhen in TestResourceChainPostCSS
v0.88.1
This is a bug-fix release with one important fix.
Bump down again to Go 1.16.7 for the release builds
v0.88.0
Notes
We have fixed a bug with the import order in js.Build for the case
./foo when both ./foo.js and ./foo/index.js exists. This is in
line with how both Node and ESBuild's native import resolver does
it. We discovered this trying to build AlpineJS v3 from source
mounted in /assets.
Enhancements/Templates
Handle nil values in time.AsTime"
Handle nil values in time.AsTime
Other
Run go mod tidy
Don't fail on template errors on go mod graph etc.
bump github.com/getkin/kin-openapi from 0.74.0 to 0.75.0
bump github.com/frankban/quicktest from 1.13.0 to 1.13.1
bump github.com/evanw/esbuild from 0.12.22 to 0.12.24
Avoid failing with "module not found" for hugo mod init and similar
Update to Go 1.17
Remove Pygments from snapcraft.yml
bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0"
Add tabindex when code is not highlighted
bump github.com/evanw/esbuild from 0.12.17 to 0.12.22
bump golang.org/x/text from 0.3.6 to 0.3.7
bump github.com/fsnotify/fsnotify from 1.4.9 to 1.5.0
Prevent minifier from removing quoutes around post-processed attributes
Avoid too many watch file handles causing the server to fail to start"
Remove some pygments references
Avoid too many watch file handles causing the server to fail to start
bump github.com/getkin/kin-openapi from 0.68.0 to 0.74.0
Update github.com/spf13/cast v1.4.0 => v1.4.1
Import time/tzdata on Windows
Indent TOML tables
Fixes/Other
Fix import order for ./foo when both ./foo.js and ./foo/index.js exists
Fix it so disableKinds etc. does not get merged in from theme
Fix lang.FormatPercent description
|
|
|
|
|
|
|
|
|
|
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Not committed (merge conflicts):
www/nghttp2/distinfo
Unfetchable distfiles (almost certainly fetched conditionally...):
./www/nginx-devel/distinfo array-var-nginx-module-0.05.tar.gz
./www/nginx-devel/distinfo echo-nginx-module-0.62.tar.gz
./www/nginx-devel/distinfo encrypted-session-nginx-module-0.08.tar.gz
./www/nginx-devel/distinfo form-input-nginx-module-0.12.tar.gz
./www/nginx-devel/distinfo headers-more-nginx-module-0.33.tar.gz
./www/nginx-devel/distinfo lua-nginx-module-0.10.19.tar.gz
./www/nginx-devel/distinfo naxsi-1.3.tar.gz
./www/nginx-devel/distinfo nginx-dav-ext-module-3.0.0.tar.gz
./www/nginx-devel/distinfo nginx-rtmp-module-1.2.2.tar.gz
./www/nginx-devel/distinfo nginx_http_push_module-1.2.10.tar.gz
./www/nginx-devel/distinfo ngx_cache_purge-2.5.1.tar.gz
./www/nginx-devel/distinfo ngx_devel_kit-0.3.1.tar.gz
./www/nginx-devel/distinfo ngx_http_geoip2_module-3.3.tar.gz
./www/nginx-devel/distinfo njs-0.5.0.tar.gz
./www/nginx-devel/distinfo set-misc-nginx-module-0.32.tar.gz
./www/nginx/distinfo array-var-nginx-module-0.05.tar.gz
./www/nginx/distinfo echo-nginx-module-0.62.tar.gz
./www/nginx/distinfo encrypted-session-nginx-module-0.08.tar.gz
./www/nginx/distinfo form-input-nginx-module-0.12.tar.gz
./www/nginx/distinfo headers-more-nginx-module-0.33.tar.gz
./www/nginx/distinfo lua-nginx-module-0.10.19.tar.gz
./www/nginx/distinfo naxsi-1.3.tar.gz
./www/nginx/distinfo nginx-dav-ext-module-3.0.0.tar.gz
./www/nginx/distinfo nginx-rtmp-module-1.2.2.tar.gz
./www/nginx/distinfo nginx_http_push_module-1.2.10.tar.gz
./www/nginx/distinfo ngx_cache_purge-2.5.1.tar.gz
./www/nginx/distinfo ngx_devel_kit-0.3.1.tar.gz
./www/nginx/distinfo ngx_http_geoip2_module-3.3.tar.gz
./www/nginx/distinfo njs-0.5.0.tar.gz
./www/nginx/distinfo set-misc-nginx-module-0.32.tar.gz
|
|
|
|
|
|
|
|
Hugo 0.87 brings two long sought-after features: Default time zone support (per
language if needed) for dates without zone offset or location info, and
localized time and dates and numbers (backed by CLDR).
|
|
|
|
|
|
v0.85.0
-------
Hugo 0.85.0 is on the smaller side of releases, but the main new thing it
brings should be important to those who need it: Poll based watching for file
system changes.
Hugo uses Fsnotify to provide native file system notifications. This is still
the default, but there may situations where this isn't working. The file may
not support it (e.g. NFS), or you get the "too many open files" error and
cannot or do not want to increase the ulimit. Enable polling by passing the
--poll flag with an interval:
hugo server --poll 700ms
You van even do "long polling" by passing a long interval:
hugo server --poll 24h
v0.84.0
-------
This release brings several configuration fixes and improvements that will be
especially useful for themes.
Deep merge of theme Params
One of the most common complaint from Hugo theme owners/users has been about
the configuration handling. Hugo has up until now only performed a shallow
merge of theme params into the configuration.
With that, given this example from a theme configuration:
[params]
[params.colours]
blue="#337DFF"
green="#68FF33"
red="#FF3358"
If you would like to use the above theme, but want a different shade of red,
you earlier had to copy the entire block, even the colours you're totally happy
with. This was painful even the simplest setup.
Now you can just override the params keys you want to change, e.g.:
[params]
[params.colours]
red="#fc0f03"
For more information, and especially about the way you can opt out of the above
behaviour, see Merge Configuration from Themes.
Themes now support the config directory
Now both the project and themes/modules can store its configuration in both the
top level config file (e.g. config.toml) or in the config directory. See
Configuration Directory.
HTTP headers in getJSON/getCSV
getJSON now supports custom HTTP headers. This has been a big limitation in
Hugo, especially considering the Authorization header.
New erroridf template func
Sometime, especially when creating themes, it is useful to be able to let the
user decide if an error situation is critical enough to fail the build. The new
erroridf produces ERROR log statements that can be toggled off:
{{ erroridf "some-custom-id" "Some error message." }}
Will log:
ERROR: Some error message.
If you feel that this should not be logged as an ERROR, you can ignore it by adding this to your site config:
ignoreErrors = ["some-custom-id"]
|
|
|
|
v0.83.1
This is a bug-fix release with one important fix.
langs/i18n: Fix warning regression in i18n ececd1b1 @bep #8492
v0.83.0
Templates
Remove the FuzzMarkdownify func for now 5656a908 @bep
Output
Make the shortcode template lookup for output formats stable 0d86a32d @bep #7774
Only output mediaType once in docshelper JSON 7b4ade56 @bep #8379
Other
Regenerate docs helper a9b52b41 @bep
Regenerate CLI docs b073a1c9 @bep
Remove all dates from gendoc 4227cc1b @bep
Update getkin/kin-openapi v0.60.0 => v0.61. 3cc4fdd6 @bep
Update github.com/evanw/esbuild v0.11.14 => v0.11.16 78c1a6a7 @bep
Remove .Site.Authors from embedded templates f6745ad3 @jmooring #4458
Don't treat a NotFound response for Delete as a fatal error. f523e9f0 @vangent
Switch to deb packages of nodejs and python3-pygments 63cd05ce @anthonyfok
Install bin/node from node/14/stable 902535ef @anthonyfok
bump github.com/getkin/kin-openapi from 0.55.0 to 0.60.0 70aebba0 @dependabot[bot]
bump github.com/evanw/esbuild from 0.11.13 to 0.11.14 3e3b7d44 @dependabot[bot]
Update to Chroma v0.9.1 048418ba @caarlos0
Improve plural handling of floats eebde0c2 @bep #8464
bump github.com/evanw/esbuild from 0.11.12 to 0.11.13 65c502cc @dependabot[bot]
Revise the plural implementation 537c905e @bep #8454#7822
Update to "base: core20" 243951eb @anthonyfok
bump github.com/frankban/quicktest from 1.11.3 to 1.12.0 fe2ee028 @dependabot[bot]
bump google.golang.org/api from 0.44.0 to 0.45.0 316d65cd @dependabot[bot]
bump github.com/aws/aws-sdk-go from 1.37.11 to 1.38.23 b95229ab @dependabot[bot]
Correct function name in comment 0551df09 @xhit
Upgraded github.com/evanw/esbuild v0.11.0 => v0.11.12 057e5a22 @bep
Regen docs helper fd96f65a @bep
bump github.com/tdewolff/minify/v2 from 2.9.15 to 2.9.16 d3a64708 @dependabot[bot]
bump golang.org/x/text from 0.3.5 to 0.3.6 3b56244f @dependabot[bot]
Remove some unreachable code f5d3d635 @bep
bump github.com/getkin/kin-openapi from 0.39.0 to 0.55.0 0d3c42da @dependabot[bot]
Some performance tweaks for the HTML elements collector ef34dd8f @bep
Exclude comment and doctype elements from writeStats bc80022e @dirkolbrich #8396#8417
Merge branch 'release-0.82.1' 2bb9496c @bep
bump github.com/yuin/goldmark from 1.3.2 to 1.3.5 3ddffd06 @jmooring #8377
Remove duplicate references from release notes 6fc52d18 @jmooring #8360
bump github.com/spf13/afero from 1.5.1 to 1.6.0 73c3ae81 @dependabot[bot]
bump github.com/pelletier/go-toml from 1.8.1 to 1.9.0 7ca118fd @dependabot[bot]
Add webp image encoding support 33d5f805 @bep #5924
bump google.golang.org/api from 0.40.0 to 0.44.0 509d39fa @dependabot[bot]
bump github.com/nicksnyder/go-i18n/v2 from 2.1.1 to 2.1.2 7725c41d @dependabot[bot]
bump github.com/rogpeppe/go-internal from 1.6.2 to 1.8.0 5d36d801 @dependabot[bot]
Remove extraneous space from figure shortcode 9b34d42b @jmooring #8401
bump github.com/magefile/mage from 1.10.0 to 1.11.0 c2d8f87c @dependabot[bot]
bump github.com/google/go-cmp from 0.5.4 to 0.5.5 cbc24661 @dependabot[bot]
Disable broken pretty relative links feature fa432b17 @niklasfasching
Update go-org to v1.5.0 0cd55c66 @niklasfasching
bump github.com/jdkato/prose from 1.2.0 to 1.2.1 0d5cf256 @dependabot[bot]
bump github.com/spf13/cobra from 1.1.1 to 1.1.3 36527576 @dependabot[bot]
Add complete dependency list in "hugo env -v" 9b83f45b @bep #8400
Add hugo.IsExtended 7fdd2b95 @bep #8399
Also test minified HTML in the element collector 3d5dbdcb @bep #7567
Skip script, pre and textarea content when looking for HTML elements 8a308944 @bep #7567
Add slice syntax to sections permalinks config 2dc222ce @bep #8363
Upgrade github.com/evanw/esbuild v0.9.6 => v0.11.0 4d22ad58 @bep
Fixes
Templates
Fix where on type mismatches e4dc9a82 @bep #8353
Output
Regression in media type suffix lookup 6e9d2bf0 @bep #8406
Regression in media type suffix lookup e73f7a77 @bep #8406
Other
Fix multiple unknown language codes 7eb80a9e @bep #7838
Fix permalinks pattern detection for some of the sections variants c13d3687 @bep #8363
Fix Params case handling in where with slices of structs (e.g. Pages) bca40cf0 @bep #7009
Fix typo in docshelper.go 7c7974b7 @jmooring #8380
Try to fix the fuzz build 5e2f1289 @bep
v0.82.1
This is a bug-fix release with one important fix.
Regression in media type suffix lookup 6e9d2bf0 @bep #8406
v0.82.0
Enhancements
Templates
Add method mappings for strings.Contains, strings.ContainsAny 7f853003 @bep
Output
Make Type comparable ba1d0051 @bep #8317#8324
Add a basic benchmark 4d24e2a3 @bep
Other
Regenerate docs helper 86b4fd35 @bep
Regen CLI docs 195d108d @bep
Simplify some config loading code df8bb881 @bep
Update github.com/evanw/esbuild v0.9.0 => v0.9.6 57d8d208 @bep
Apply OS env overrides twice fc06e850 @bep
Attributes for code fences should be placed after the lang indicator only b725253f @bep #8313
Bump github.com/tdewolff/minify/v2 v2.9.15 35dedf15 @bep #8332
More explicit support link to discourse 137d2dab @davidsneighbour
Update to esbuild v0.9.0 1b1dcf58 @bep
Allow more spacing characters in strings 0a2ab3f8 @moorereason #8079#8079
Rename a test 35bfb662 @bep
Add a debug helper 6d21559f @bep
Add support for Google Analytics v4 ba16a14c @djatwood
Bump go.mod to Go 1.16 782c79ae @bep #8294
#8210 Upgrade golang version for Dockerfile 5afcae7e @systemkern
Update CONTRIBUTING.md 60469f42 @bep
Handle attribute lists in code fences aed7df62 @bep #8278
Allow markdown attribute lists to be used in title render hooks cd0c5d7e @bep #8270
bump github.com/kyokomi/emoji/v2 from 2.2.7 to 2.2.8 88a85dce @dependabot[bot]
Fixes
Output
Fix output format handling for render hooks 18074d0c @bep #8176
Other
Fix OS env override for nested config param only available in theme 7ed56c69 @bep #8346
Fix new theme command description 24c716ca @rootkea
Fix handling of utf8 runes in nullString() f6612d8b @moorereason
Fixes #7698. 01dd7c16 @gzagatti
Fix autocomplete docs c8f45d1d @bep
v0.81.0
Make the build green again fe77f743 @bep
Regenerate internal templates c6080655 @bep
Update date logic of opengraph and schema internal templates ffd9dac4 @djatwood
Synch Go templates fork with Go 1.16dev cf3e077d @bep
Exclude pages without Permalink from sitemap 4867cd1d @Jaza
Add default user-agent header for getJSON requests 35def0ae @peacecwz
remove 1mb limit for readFile. ee9c1367 @avdva
Do not return errors in substr for out-of-bounds cases 8a26ab0b @moorereason #8113
Add missing test scenario for strings.Substr 788e50ad @moorereason
Regen CLI docs 9e99950c @bep
Regen docs helper 1b364b00 @bep
Run go mod tidy 88b93a09 @bep
Add arm64 to Darwinextended build and add vendorInfo 29fb456c @bep #8003
Update Travis, GitHub, CircleCI and Snap to Go 1.16 (only) 718fba7d @bep
Pull in latest Go 1.16 template source e77b2e3a @bep
Add breaking tests for "map read and map write in templates" b5485aea @bep #7293
Pull in latest Go template source ccb822eb @bep
Expand template newline testcase to commands 21e9eb18 @bep
Add a test case for Go 1.16 template action newlines ae57ba6a @bep
Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13 66beac99 @bep #8258
bump github.com/frankban/quicktest from 1.11.2 to 1.11.3 968dd7a7 @dependabot[bot]
bump github.com/getkin/kin-openapi from 0.32.0 to 0.39.0 38f29e81 @dependabot[bot]
bump github.com/aws/aws-sdk-go from 1.36.33 to 1.37.11 cd87813a @dependabot[bot]
bump github.com/sanity-io/litter from 1.3.0 to 1.5.0 4e815b06 @dependabot[bot]
bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5 652a59d3 @dependabot[bot]
Update to esbuild v0.8.46 84f0ec7f @bep
Add config option modules.vendorClosest bdfbcf6f @bep #8235#8242
bump google.golang.org/api from 0.26.0 to 0.40.0 a9b0fea6 @dependabot[bot]
Change version string format and add VendorInfo to help with issue triaging e8df0977 @anthonyfok
Allow absolute paths for any modules resolved via project replacement 3a5ee0d2 @bep #8240
Throw an error running hugo mod vendor on mountless module 4ffaeaf1 @bep
Add PowerShell completion support 5f621df2 @anthonyfok #8122
Refer to mage instead of make in comment regarding commitHash 7118f89c @anthonyfok
Add attributes support for blocks (tables etc.) 2681633d @bep #7548
Update to Goldmark v1.3.2 1b247282 @bep #8143
Update to Dart Sass Protocol beta6 441b11be @bep
Write to stdout by default d36fd5b3 @benmezger
Remove powershell support a7c515e1 @benmezger
Add zsh, fish and powershell completion support 216b00f3 @benmezger #4296
Enable NPM tests on Windows 14494379 @bep #8196
Update to esbuild v0.8.39 440fdb0e @bep #8189
Trim whitespace in elements written to hugo_stats.json b2a48dce @pmatiash #7958
bump github.com/aws/aws-sdk-go from 1.35.0 to 1.36.33 2f9dadae @dependabot[bot]
Remove mention of a file size limit for readFile ed3071b7 @avdva
Add Inject config option 32b86076 @bep #8164
Add Shims option e19a046c @bep #8165
bump github.com/spf13/afero from 1.4.1 to 1.5.1 07ad283f @eclipseo
Add external source map support to js.Build and Babel 2c8b5d91 @richtera #8132
Run go mod tidy 4d2b6fc4 @bep
Update go-org to v1.4.0 212e5e55 @niklasfasching
Adjust log level 4fdec67b @bep
Add temporary patch to fix template data race 9650e568 @bep #7293
Fix race condition in text template baseof 241b7483 @moorereason
Fix metrics hint tracking 0004a733 @moorereason #8125
Fix potential path issue on Windows b60e9279 @bep
Fix some humanize issues bf55afd7 @susiwen8 #7912
Fix handling of legacy attribute config e6dd3128 @bep #7548
Support translation files with suffix *.yml 92c6c404 @bep #8212
Fix nilpointer in js.Build error handling a1fe552f @bep #8162
|
|
|
|
|
|
Changelog:
0.80.0
Enhancements
Templates
* Regenerate templates a2d146ec @bep
* tpl/internal/go_templates: Revert formatting 718e09ed @bep
* Add title parameter to YouTube shortcode 4fc918e0 @azenk
Output
* Add missing OutputStyle option 428b0b32 @bep
Other
* Allow Dart Sass transformations to be cached on disk ffbf5e45 @bep
* Dart Sass only supports expanded and compressed 48994ea7 @bep
* Update emoji import paths and version 1f7e9f73 @moorereason
* Add Dart Sass support cea15740 @bep #7380#8102
* GroupByParamDate now supports datetimes f9f77978 @zerok
* Skip para test when not on CI a9718f44 @bep #6963
* Update SECURITY.md f802bb23 @bep
* Improve LookPath 10ae7c32 @bep
* create a SECURITY.md ae2d1bd5 @davidsneighbour #8074
* Show more detail on failed time test 8103188b @moorereason #6963
* Add images.Overlay filter 3ba147e7 @bep #8057#4595#6731
* Bump github.com/spf13/cobra from 0.15.0 to 0.20.0 c84ad8db @anthonyfok
* configure proper link to discourse.gohugo.io (#8020) 4e0acb89
@davidsneighbour
* Format code with gofumpt d90e37e0 @bep
* bump github.com/evanw/esbuild from 0.8.15 to 0.8.17 32471b57 @dependabot
[bot]
* Use --baseURL path for live-reload URL 0ad378b0 @sth #6595
* bump github.com/getkin/kin-openapi from 0.31.0 to 0.32.0 907d9e92
@dependabot[bot]
Fixes
Templates
* Fix series detection in opengraph d2d493ab @Humberd
* Fix substr when length parameter is zero 5862fd2a @moorereason #7993
* Refactor and fix substr logic 64789fb5 @moorereason #7993
Other
* Fix Resource.ResourceType so it always returns MIME's main type 81975f84
@bep #8052
* hugolib/paths: Fix typo ce96895d @mayocream
* Fix minor typos 04b89857 @phil-davis
* Fix BenchmarkMergeByLanguage 21fa1e86 @bep #7914
* Fix RelURL and AbsURL when path starts with language aebfe156
@ivan-meridianbanc-com
0.79.1:
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 was affected.
The origin of this issue comes from Go, see golang/go#38736
We have fixed this in Hugo by using a patched version of exec.LookPath from
https://github.com/cli/safeexec (thanks to @mislav for the implementation).
Thanks to @Ry0taK for the bug report.
0.79.0:
Hugo 0.79.0 is a small, but useful release. You can now set custom .Params in
your menu configuration, and you can now also override deeply nested
snake_cased configuration variables with OS environment variables. Other than
that we have refreshed all the core upstream dependencies. A special thanks to
@alecthomas (some new Chroma lexers and fixes) and @evanw (ESBuild).
This release represents 33 contributions by 8 contributors to the main Hugo
code base. @bep leads the Hugo development with a significant amount of
contributions, but also a big shoutout @AdamKorcz, and @davidejones for their
ongoing contributions. And a big thanks to @digitalcraftsman for his relentless
work on keeping the themes site in pristine condition and to @davidsneighbour,
@coliff and @kaushalmodi for all the great work on the documentation site.
Many have also been busy writing and fixing the documentation in hugoDocs,
which has received 13 contributions by 11 contributors. A special thanks to
@Valac01, @bep, @mhansen, and @chanjarster for their work on the documentation
site.
Enhancements
Templates
* Add more layout lookup tests 34061706 @moorereason #7964
Other
* bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 17e0bbe8 @dependabot[bot]
* Allow setting the delimiter used for setting config via OS env, e.g. HUGO_
7e223b3b @bep #7829
* Update to github.com/evanw/esbuild 0.8.11 to 0.8.14 8a6e7060 @bep #7986
* bump github.com/google/go-cmp from 0.5.2 to 0.5.3 6f7633df @dependabot[bot]
* Remove unneeded meta tag from blog example a546059a @coliff
* bump github.com/getkin/kin-openapi from 0.30.0 to 0.31.0 b5d906e3
@dependabot[bot]
* Regen docshelper fd70bdaf @bep
* Add menu params 8f5c9a74 @davidejones #7951
* Preserve url set in frontmatter without sanitizing e4fcb672 @satotake #6007
* Add file deleted by accident 18c13adc @bep #7972
* Regenerate docshelper" 20a35374 @bep #7972
* Regenerate docshelper caf16c20 @bep
* Update to Chroma v0.8.2 b298c06e @bep #7970
* bump github.com/evanw/esbuild from 0.8.8 to 0.8.11 55e290af @dependabot
[bot]
* bump github.com/getkin/kin-openapi from 0.26.0 to 0.30.0 506a190a
@dependabot[bot]
* bump github.com/evanw/esbuild from 0.8.6 to 0.8.8 fc81de64 @dependabot[bot]
* Let ESBuild handle all imports from node_modules 78f227b6 @bep #7948
* bump github.com/evanw/esbuild from 0.8.5 to 0.8.6 5e03f644 @dependabot[bot]
* bump github.com/evanw/esbuild from 0.8.4 to 0.8.5 a92ef20f @dependabot[bot]
* bump github.com/getkin/kin-openapi from 0.22.1 to 0.26.0 0d54a844
@dependabot[bot]
* Update GH docs to say "main" as default branch 943f3c93 @maco
* Updated year in header 4f20bf29 @AdamKorcz
* Added first fuzzer 4c613d5d @AdamKorcz
* bump github.com/frankban/quicktest from 1.11.1 to 1.11.2 82a182e5
@dependabot[bot]
* bump golang.org/x/text from 0.3.3 to 0.3.4 dfc662b2 @dependabot[bot]
* bump github.com/evanw/esbuild from 0.8.3 to 0.8.4 2f0917cc @dependabot[bot]
* Disable NPM test on Travis on Windows 3437174c @bep
* Install nodejs on Windows f66302ca @bep
* Remove external source map option 944150ba @bep #7932
Fixes
Other
* Fix memory usage in writeStats d162bbd7 @bep #7945
* Fix server rebuild issue with partials referenced from render hooks
e442cf30 @bep #7990
* Misc fixes bf2837a3 @bep #7924#7923
|
|
|
|
Switch to go-modules and tidy up.
There have been 59 releases and nearly 3,000 lines of changelog since 0.55.6,
so apologies, but if you want a changelog you'll need to browse:
https://github.com/gohugoio/hugo/releases
to see what changed as it's impractical to list them here.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pkglint -Wall -F --only aligned --only indent -r
Manually excluded phraseanet since pkglint got the indentation wrong.
|
|
|
|
ok wiz@ for PMC
|
|
|
|
|
|
|
|
Changelog:
This is a bug-fix release with one important fix. There have been
reports about infrequent paginator crashes when running the Hugo
server since 0.55.0. The reason have been narrowed down to that of
parallel rebuilds. This isn't a new thing, but the changes in 0.55.0
made it extra important to serialize the page initialization. This
release fixes that by protecting the Build method with a lock when
running in server mode. 95ce2a40 @bep #5885#5968
|
|
Changelog:
0.55.0
This is a bug-fix release with a couple of important fixes.
Enhancements
Templates
Provide more detailed errors in Where f76e5011 @moorereason
Other
Regenerate docs helper cee181c3 @bep
Update blackfriday to v1.5.2 1cbb501b @dbirks
Fixes
Templates
Fix nil compare in eq/ne for interface values 66b143a0 @bep #5905
Fix hugo package name and add godocs 4f93f8c6 @moorereason
Output
Fix permalink in sitemap etc. when multiple permalinkable output formats 6b76841b @bep #5910
Core
Fix PrevInSection/NextInSection for nested sections bcbed4eb @bep #5883
Other
Fix concurrent initialization order 009076e5 @bep #5901
0.55.4
This is a bug-fix release with a couple of important fixes.
Enhancements
Core
Avoid recloning of shortcode templates 69a56420 @bep #5890
No links for bundled pages 0775c98e @bep #5882
Other
Avoid rebuilding the Translations map for every lookup 4756ec3c @bep #5892
Init mem profile at the end 4c3c5120 @bep
Fixes
Core
Fix shortcode version=1 logic 33c73811 @bep #5831
0.55.3
This is a bug-fix release with a couple of important fixes.
Enhancements
Templates
Return error on invalid input in in 7fbfedf0 @bep #5875
Make Pages etc. work with the in func 06f56fc9 @bep #5875
Make Pages etc. work in uniq d7a67dcb @bep #5852
Core
Add some OutputFormats.Get tests 7aeeb60d @bep #5877
Add some integration tests for in/uniq using Pages 6c80acbd @bep #5875#5852
Other
Regenerate docs helper 75b16e30 @bep
Replace IsDraft with Draft in list command 3e421bd4 @bep #5873
Fixes
Output
Fix links for non-HTML output formats c7dd66bf @bep #5877
Fix menu URL when multiple permalinkable output formats ea529c84 @bep #5849
0.55.2
This is a bug-fix release with a couple of important fixes.
Enhancements
Templates
Handle late transformation of templates 2957795f @bep #5865
Core
Add more tests for Permalinkable 35f41834 @bep #5849
Fixes
Core
Fix Pages reinitialization on rebuilds 9b17cbb6 @bep #5833
Fix shortcode namespace issue 56550d1e @bep #5863
Fix false WARNINGs in lang prefix check 7881b096 @bep #5860
Fix bundle resource publishing when multiple output formats 49d0a826 @bep #5858
Fix panic for unused taxonomy content files b799b12f @bep #5847
Fix dates for sections with dates in front matter 70148672 @bep #5854
Other
Fix WeightedPages in union etc. f2795d4d @bep #5850
0.55.1
This is a bug-fix release with a couple of important fixes.
Notes
Replace deprecated .GetParam usage 27a8049d @bep #5834
Enhancements
Core
Add a test for parent's resources in shortcode 8d7607ae @bep #5833
Other
Remove the space in . RelPermalink 7966c0b5 @yihui
Fixes
Core
Fix simple menu config 9e9a1f92 @bep
Other
Fix 4d425a86 @bep
Fix paginator refresh on server change f7375c49 @bep #5838
Fix .RSSLinke deprecation message 3b86b4a9 @bep #4427
0.55.0
Hugo 0.55 is the early Easter Egg Edition with lots of great improvements
and fixes. The original motivation for this release was to prepare for
Issue #5074, but the structural changes needed for that paved the way for
lots of others. Please study the list of changes below, and especially
the Notes section, but some headlines include:
|
|
|
|
|
|
|
|
Changelog:
Enhancements
Templates
Adjust tests ddc6d4e3 @bep #5643
Prevent getJSON and getCSV fetch failure from aborting build 6a2bfcbe @anthonyfok #5643
Core
Expand TestPageWithEmoji to cover '+', '-' and '_' too 2a9060a8 @anthonyfok #5635
Restore 0.48 slash handling in taxonomies 40ffb048 @bep #5571
Other
Use official semver even for main releases fab41f42 @bep #5639
Add test for --configDir 59d87044 @bep #5662
Ignore unknown config files in config dir 3244cb3b @bep #5646
Store supported config formats in a variable d9282cf9 @tryzniak
Bump to Go 1.11.5 8ed2a1ca @bep #5654
Update Afero e8596139 @bep #5650
Accept hyphen and plus sign in emoji detection 3038464e @anthonyfok #5635
Support numeric sort in ByParam 26f75edb @tryzniak #5305
Make hugo server -t work again db3c49d0 @tryzniak #5569#5061#4868
Add configFile(s) back to the watch list after RENAME event too e3cb8e6c @anthonyfok #5205
Remove historical rssURI config 55251aa8 @mywaiting
Use subtests with server_test.go 843fcd19 @tryzniak
Move resource interfaces into its own package ce8a09a4 @bep
Move resource processors into sub-packages 669ada43 @bep
Update _index.md 50745122 @vrMarc
Update go.sum 0584432b @bep
Update Chroma cc351958 @bep #4993
Make docshelper run again c24f3ae2 @bep #5568
Fixes
Templates
Fix reflect 9e4f9e0b @moorereason #5564
Other
Fix some inline shortcode issues c52045bb @bep #5645#5653
Fix OpenGraph image fallback to site params 526b5b1c @statik
Fix Params case handling in the new site global e1a66c73 @bep #5615
cache/namedmemcache: Fix data race 3f3187de @bep
|
|
|
|
The main new features in this release are:
* You can now split your configuration into directories per environment.
Hugo did support multiple configuration files before this release, but
it was hard to manage for bigger sites, especially those with multiple
languages. With this we have also formalized the concept of an
environment; the defaults are production (when running hugo) or
development (when running hugo server) but you can create any
environment you like. We will update the documentation, but all the
details are in this issue. Also, see this PR for how the refactored
configuration for the Hugo website looks like.
* transform.Unmarshal (see
the documentation is a new and powerful template function that can
turn Resource objects or strings with JSON, TOML, YAML or CSV into
maps/arrays.
* Two new global variables in site and hugo. hugo gives you
version info etc. ({{ hugo.Version }}, {{ hugo.Environment }}), but
the site is probably more useful, as it allows you to access the
current site's variables (e.g. {{ site.RegularPages }}) without any
context (or ".").
This version is also the fastest to date. A site building benchmark
shows around 10% faster, but that depends on the site. The important
part here is that we're not getting slower. It's quite a challenge
to consistently add significant new functionality and simultaneously
improve performance. It's like not gaining weight during Christmas. We
also had a small performance boost in version 0.50. A user then reported
that his big and complicated site had a 30% reduction in build time.
This is important to us, one of the core features. It's in the slogan:
"The world's รข fastest framework for building websites."
|
|
|