You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We no longer limit the number of pages passed to the RSS Output Format. We have moved that limit to the internal RSS template, and you can do so yourself using the Config.Services.RSS.Limit in your custom template.
We no longer add XML headers to Output Formats that output XML (<?xml version="1.0" encoding="utf-8" standalone="yes" ?>). This header is moved to the templates. If you have custom RSS or sitemap templates you may want to add the XML declaration to these. Since they, by default, is handled by Go's HTML template package, you must do something like this to make sure it's preserved: {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
More honest build times reported (Total in 1234 ms). We now do all initialization in the Build step, so you may get a higher time reported if you, as an example, have --enableGitInfo enabled, which now is included in the reported time.
The taxonomy nodes now have a .Page accessor which makes it much simpler to get a proper .Title etc. see Add WeightedPages.Page #5719.
Taxonomy terms lists (Page of KindtaxonomyTerm) without any date(s) set (e.g. from front matter) will now pick the latest dates from the child pages. This is in line with how other branch nodes work in Hugo.
--stepAnalysis is removed. If you want to really understand the latency in your project in Hugo, try the new --trace flag and pass that file to the many tools that read Go Trace files. There are also some newly hidden flags in --profile-cpu, --profile-men, --profile-mutex, hidden because they are considered to be only of interest to developers.
We now support context-relative (language) URLs in front matter, meaning that in most cases url: /en/mypage can be replaced with the more portable url: mypage. See Allow "relative" URL in front matter #5704
The text was updated successfully, but these errors were encountered:
{{ %
as the outer-most shortcode delimiter means "pass the inner content to the content renderer" (e.g. Blackfriday); the old behavior can be had, see Add a way to tell that you want "legacy behaviour" from inside a template #5763RSS
Output Format. We have moved that limit to the internalRSS
template, and you can do so yourself using theConfig.Services.RSS.Limit
in your custom template.<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
). This header is moved to the templates. If you have custom RSS or sitemap templates you may want to add the XML declaration to these. Since they, by default, is handled by Go's HTML template package, you must do something like this to make sure it's preserved:{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
Total in 1234 ms
). We now do all initialization in theBuild
step, so you may get a higher time reported if you, as an example, have--enableGitInfo
enabled, which now is included in the reported time..Page
accessor which makes it much simpler to get a proper.Title
etc. see Add WeightedPages.Page #5719.with
andif
now work properly for zero and interface types, see tpl/tplimpl: Fix template truth logic #5739Page
ofKind
taxonomyTerm
) without any date(s) set (e.g. from front matter) will now pick the latest dates from the child pages. This is in line with how other branch nodes work in Hugo.Permalinkable
, is added to Output Format and enabled that by default forHTML
andAMP
types. See Allow output formats to be permalinked #5706--stepAnalysis
is removed. If you want to really understand the latency in your project in Hugo, try the new--trace
flag and pass that file to the many tools that read Go Trace files. There are also some newly hidden flags in--profile-cpu
,--profile-men
,--profile-mutex
, hidden because they are considered to be only of interest to developers.Page
-relative aliases, e.g. aliases that do not start with a/
, see Allow page-relative alias in front matter #5757url: /en/mypage
can be replaced with the more portableurl: mypage
. See Allow "relative" URL in front matter #5704The text was updated successfully, but these errors were encountered: