e161ea09d Add one more Chinese file to workaround reflect: Zero(nil) b595b3a21 Add more Chinese translation 56e4e95d9 Use lang.Merge to "fill in the gaps" for untranslated pages ef079406c Merge commit '650fac3a4e7d256f4505402ab44cfc3c804b8dea' 650fac3a4 Squashed 'themes/gohugoioTheme/' changes from a1768ebb..f31a3dc8 322eff899 Add Chinese language for menus d90b886e0 Fix Markdown table syntax in previous commit 737f3dfca Update the leaf bundle vs branch bundle table 09fa1bc4e Clarify that `.Now` is obsolete 879ea3f6a Make release notes somewhat more consistent 0113e2051 Move 0.40.2-relnotes into content/en/news 77578f5bf Move content/ into new contentDir content/en/ 4dcf7c709 Fix "reflect: Zero(nil)" error in showcase 63dd25505 Release 0.40.2 2076c0d56 releaser: Prepare repository for 0.41-DEV 070fe565e releaser: Add release notes to /docs for release of 0.40.2 4ce52e913 releaser: Bump versions for release of 0.40.2 41907c487 Fix typos in syntax-highlighting.md 91753ef3d Add missing backtick b77274301 Remove duplicate release notes (0.27, 0.27.1, 0.35) 6e00da316 Remove obsolete content/release-notes/ directory 00a6d8c02 Change en dash back to `--` in 0.38.2-relnotes 51b32dc00 Update archetypes.md d0e5c2307 Release 0.40.1 4538a6d5b releaser: Prepare repository for 0.41-DEV 91b391d70 releaser: Add release notes to /docs for release of 0.40.1 e0979d143 releaser: Bump versions for release of 0.40.1 7983967c2 Clean images fe3fdd77d Polish showcase for Flesland Flis e6dde3989 Showcase - Flesland Flis AS by Absoluttweb 73aa62290 Revive @spf13's special Hugo font add67b335 Release Hugo 0.40 c0a26e5a6 Merge branch 'temp40' beeabaaae releaser: Prepare repository for 0.41-DEV e67d5e985 releaser: Add release notes to /docs for release of 0.40 6cdd95273 releaser: Bump versions for release of 0.40 bee21fb9b Revive the other Hugo logos too 4f45e8fe1 Fix the link type attribute for RSS in examples 8c67dc89a Fix example in delimit doc e7f6c00d5 Revive the logo used on the forum 82b0cd26e Merge commit 'a215abf70e018f4bf40d6c09d8bd148d8684b33d' 119c8ca58 Merge commit 'd2ec1a06df8ab6b17ad05cb008d5701b40327d47' db4683bd2 Improve .Get docs 05260b886 .Get function: fix syntax signature git-subtree-dir: docs git-subtree-split: e161ea09d33e3199f4998e4d2e9068d5a850f042
11 KiB
date | categories | description | link | title | draft | author | aliases | ||
---|---|---|---|---|---|---|---|---|---|
2017-05-22T17:53:58-04:00 |
|
Hugo 0.21 brings full support for shortcodes per Output Format, the last vital piece of that puzzle | Hugo 0.21 | false | bep |
|
Hugo 0.21
brings full support for shortcodes per Output Format (#3220), the last vital piece of that puzzle. This is especially useful for Google AMP
with its many custom media tags.
This release represents 126 contributions by 29 contributors to the main Hugo code base. Since last main release Hugo has gained 850 stars and 7 additional themes.
Hugo now has:
- 17156+ stars
- 457+ contributors
- 163+ themes
@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @moorereason, @bogem, and @munnerz 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.
Other Highlights
On a more technical side, @moorereason and @bep have introduced namespaces for Hugo's many template funcs (#3042 ). There are so many now, and adding more into that big pile would be a sure path toward losing control. Now they are nicely categorised into namespaces with its own tests and examples, with an API that the documentation site can use to make sure it is correct and up-to-date.
Notes
- The deprecated
.Extension
,.Now
and.TargetPath
will nowERROR
544f0a63 @bep - The config settings and flags
disable404
,disableRSS
,disableSitemap
,disableRobotsTXT
are now deprecated. UsedisableKinds
. 5794a265 @bep #3345
Enhancements
Templates
- Log a WARNING on wrong usage of
IsSet
38661c17 @moorereason #3092 - Add support for ellipsed paginator navigator, making paginators with lots of pages more compact b6ea492b @bep #3466
- Add support for interfaces to
intersect
f1c29b01 @moorereason #1952 - Add
NumFmt
function 93b3b138 @moorereason #1444 - Add template function namespaces #3418 #3042 @moorereason @bep
- Add translation links to the default sitemap template 90d3fbf1 @rayjolt #2569
- Allow text partials in HTML templates and the other way around 1cf29200 @bep #3273
Output
- Refactor site rendering with an "output format context". In this release, this is used for shortcode handling only, but this paves the way for future niceness 1e4d082c @bep #3397 2bcbf104 @bep #3220
Core
- Handle
shortcode
perOutput Format
af72db80 @bep #3220 - Improve shortcode error message 58d9cbd3 @bep
- Avoid
index.md
in/index/index.html
fea4fd86 @bep #3396 - Make missing
GitInfo
aWARNING
5ad2f176 @bep #3376 - Prevent decoding
pageParam
in common cases e98f885b @bogem - Ignore non-source files on partial rebuild b5b6e81c @xofyarg #3325
- Log
WARNING
only on unknown/data
files ab692e73 @bep #3361 - Avoid processing the same notify event twice 3b677594 @bep
- Only show
rssURI
deprecationWARNING
if it is actually set cfd3af8e @bep #3319
Docs
- Add documentation on slug translation 635b3bb4 @xavib
- Replace
cdn.mathjax.org
withcdnjs.cloudflare.com
4b637ac0 @takuti - Add notes about some output format behaviour 162d3a58 @jpatters
- Add
txtpen
as alternative commenting service 7cdc244a @rickyhan
Other
- Embed
Page
inWeightedPage
ebf677a5 @bep #3435 - Improve the detection of untranslated strings a40d1f6e @bogem #2607
- Make first letter of the Hugo commands flags' usage lowercase f0f69d03 @bogem
- Import
Octopress
image tag inJekyll importer
5f3ad1c3 @buynov
Fixes
Templates
Output
- Fix output format mixup in example 10287263 @bep #3481
- Fix base theme vs project base template logic 077005e5 @bep #3323
Core
- Render
404
in default language only 154e18dd @mitchchn #3075 - Fix
RSSLink
vsRSS
Output Format
e682fcc6 @bep #3450 - Add default config for
ignoreFiles
, making that option work when running in server mode 42f4ce15 @chaseadamsio - Fix output formats override when no outputs definition given 6e2f2dd8 @bep #3447
- Fix handling of zero-length files 0e87b18b @bep #3355
- Must recreate
Paginator
on live-reload 45c74526 @bep #3315
Docs
- Fix incorrect path in
templates/list
27e88154 @MunifTanjim - Fixed incorrect specification of directory structure a28fbca6 @TejasQ
- Fix
bash
command intutorials/github-pages-blog
c9976155 @hansott - Fix
.Data.Pages
range in example b5e32eb6 @hxlnt