21 KiB
aliases | date | menu | title | weight | ||||||
---|---|---|---|---|---|---|---|---|---|---|
|
2013-07-01 |
|
Release Notes | 10 |
0.15.0 ???
hugo server
now builds ~30%+ faster by rendering to memory instead of diskhugo server
will watch by default now.- Have Jekyll site, but dreaming of porting it to Hugo? This release introduces a new
hugo import jekyll
command that makes this easier than ever. 1469 - We now use a custom-built
LazyFileReader
for reading file contents, which means we don't read media files in/content
into memory anymore -- and file reading is now performed in parallel on multicore PCs. 1181 - Hugo is now built with
Go 1.5
which, among many other improvements, have fixed the last known data race in Hugo. [917] (https://github.com/spf13/hugo/issues/917) - Hugo now supports dynamic reloading of the config file when watching.
- Lots of fixes and improvements in the template funcs:
- The new
dict
function that could be used to pass maps into a template.1463 - The new
pluralize
andsingularize
template funcs. - The new
base64Decode
andbase64Encode
template funcs. - The
sort
template func now accepts field/key chaining arguments and pointer values. 1330 - Several fixes for
slicestr
andsubstr
, most importantly, they now have fullutf-8
-support. 1190 1333 1347 - The new
last
template function allows the user to select the lastN
items of a slice. 1148 - The new
after
func allows the user to select the items after theNth
item. [1200] (https://github.com/spf13/hugo/pull/1200) - Add
time.Time
type support to thewhere
,ge
,gt
,le
, andlt
template functions. - It is now possible to use constructs like
where Values ".Param.key" nil
to filter pages that doesn't have a particular parameter. 1232 getJSON
/getCSV
: Add retry on invalid content. 1166- The new
readDir
func lists local files. 1204
- The new
- The new
Param
convenience method onPage
andNode
can be used to get the most specific parameter value for a given key. 1462 - Several new Blackfriday options are added:
Scratch
now have built-inmap
support.- Some fields and methods were deprecated in
0.14
. These are now removed, so the error message isn't as friendly if you still use the old values. So please change:getJson
togetJSON
,getCsv
togetCSV
,safeHtml
tosafeHTML
,safeCss
tosafeCSS
,safeUrl
tosafeURL
,Url
toURL
,UrlPath
toURLPath
,BaseUrl
toBaseURL
,Recent
toPages
.
- We now fall back to
link title
for the default page sort. 1299 - Fix data races in page sorting and page reversal. These operations are now also cached. 1293
- Amber templates now work! In addition, the integration has been upgraded so they can now call Hugo's custom functions.
- Paginator now also supports page groups. 1274
page.HasMenuCurrent()
andnode.HasMenuCurrent()
now work correctly in multi-level nested menus.- Several new information elements have been added to
Page
andNode
: sense. 1266RawContent
: Raw Markdown as a string. One use case may be of embedding remarkjs.com slides.- The new
IsHome
tells the truth about whether you're on the home page or not.
- Hugo now supports GitHub-flavoured markdown code fences for highlighting for
md
-files (Blackfriday rendered markdown) andmmark
files (MMark rendered markdown). [362] (https://github.com/spf13/hugo/issues/362)1258 - Ace templates:
- Hugo now removes superfluous p-tags around shortcodes. 1148
- Some notable new configuration options:
- Support
Fish and Chips
style section titles. Previously, this would end up asFish And Chips
. Now, the first character is made toupper, but the rest are preserved as-is. 1176 - A built-in template for Google Analytics. 1505
0.14.0 May 25, 2015
The v0.14.0 Hugo release brings of the most demanded features to Hugo. The foundation of Hugo is stabilizing nicely and a lot of polish has been added. We’ve expanded support for additional content types with support for AsciiDoc, Restructured Text, HTML and Markdown. Some of these types depend on external libraries as there does not currently exist native support in Go. We’ve tried to make the experience as seamless as possible. Look for more improvements here in upcoming releases.
A lot of work has been done to improve the user experience, with extra polish to the Windows experience. Hugo errors are more helpful overall and Hugo now can detect if it’s being run in Windows Explorer and provide additional instructions to run it via the command prompt.
The Hugo community continues to grow. Hugo has over 4000 stars on github, 165 contributors, 35 themes and 1000s of happy users. It is now the 5th most popular static site generator (by Stars) and has the 3rd largest contributor community.
This release represents over 240 contributions by 36 contributors to the main Hugo codebase.
Big shout out to @bep who led the development of Hugo this release, @anthonyfok, @eparis, @SchumacherFM, @RickCogley & @mdhender for their significant contributions and @tatsushid for his continuous improvements to the templates. Also a big thanks to all the theme creators. 11 new themes have been added since last release and the hugoThemes repo now has previews of all of them.
Hugo also depends on a lot of other great projects. A big thanks to all of our dependencies including: cobra, viper, blackfriday, pflag, HugoThemes, BurntSushi, goYaml, and the Go standard library.
New features
- Support for all file types in content directory.
- If dedicated file type handler isn’t found it will be copied to the destination.
- Add
AsciiDoc
support using external helpers. - Add experimental support for
Mmark
markdown processor - Bash autocomplete support via
genautocomplete
command - Add section menu support for a [Section Menu for "the Lazy Blogger"]({{< relref "extras/menus.md#section-menu-for-the-lazy-blogger" >}})
- Add support for
Ace
base templates - Adding
RelativeURLs = true
to site config will now make all the relative URLs relative to the content root. - New template functions:
getenv
- The string functions
substr
andslicestr
*seq
, a sequence generator very similar to its Gnu counterpart absURL
andrelURL
, both of which takes theBaseURL
setting into account
Improvements
- Highlighting with
Pygments
is now cached to disk -- expect a major speed boost if you use it! - More Pygments highlighting options, including
line numbers
- Show help information to Windows users who try to double click on
hugo.exe
. - Add
bind
flag tohugo server
to set the interface to which the server will bind - Add support for
canonifyurls
insrcset
- Add shortcode support for HTML (content) files
- Allow the same
shortcode
to be used with or without inline content - Configurable RSS output filename
Bugfixes
- Fix panic with paginator and zero pages in result set.
- Fix crossrefs on Windows.
- Fix
eq
andne
template functions when used with a raw number combined with the result ofadd
,sub
etc. - Fix paginator with uglyurls
- Fix #998, supporting UTF8 characters in Permalinks.
Notices
- To get variable and function names in line with the rest of the Go community,
a set of variable and function names has been deprecated: These will still
work in 0.14, but will be removed in 0.15. What to do should be obvious by
the build log;
getJson
togetJSON
,getCsv
togetCSV
,safeHtml
tosafeHTML
,safeCss
tosafeCSS
,safeUrl
tosafeURL
,Url
toURL
,UrlPath
toURLPath
,BaseUrl
toBaseURL
,Recent
toPages
,Indexes
toTaxonomies
.
0.13.0 Feb 21, 2015
The v0.13.0 release is the largest Hugo release to date. The release introduced some long sought after features (pagination, sequencing, data loading, tons of template improvements) as well as major internal improvements. In addition to the code changes, the Hugo community has grown significantly and now has over 3000 stars on github, 134 contributors, 24 themes and 1000s of happy users.
This release represents 448 contributions by 65 contributors
A special shout out to @bep and @anthonyfok for their new role as Hugo maintainers and their tremendous contributions this release.
New major features
- Support for data files in YAML,
JSON, or TOML
located in the
data
directory (#885) - Support for dynamic content by loading JSON & CSV from remote sources via GetJson and GetCsv in short codes or other layout files (#748)
- Pagination support for home page, sections and taxonomies (#750)
- Universal sequencing support
- A new, generic Next/Prev functionality is added to all lists of pages (sections, taxonomies, etc.)
- Add in-section Next/Prev content pointers
Scratch
-- a "scratchpad" for your node- and page-scoped variables- Cross Reference support to easily link documents together with the ref and relref shortcodes.
- Ace template engine support (#541)
- A new shortcode token of
{{</* */>}}
(raw HTML) alongside the existing{{%/* */%}}
(Markdown) - A top level
Hugo
variable (on Page & Node) is added with various build information - Several new ways to order and group content:
ByPublishDate
GroupByPublishDate(format, order)
GroupByParam(key, order)
GroupByParamDate(key, format, order)
- Hugo has undergone a major refactoring, with a new handler system and a generic file system. This sounds and is technical, but will pave the way for new features and make Hugo even speedier
Notable enhancements to existing features
- The shortcode handling is rewritten for speed and better error messages.
- Several improvements to the template functions:
where
is now even more powerful and accepts SQL-like syntax with the operators==
,eq
;!=
,<>
,ne
;>=
,ge
;>
,gt
;<=
,le
;<
,lt
;in
,not in
where
template function now also accepts dot chaining key argument (e.g."Params.foo.bar"
)
- New template functions:
apply
chomp
delimit
sort
markdownify
in
andintersect
trim
replace
dateFormat
- Several configurable improvements related to Markdown
rendering:
- Configuration of footnote rendering
- Optional support for smart angled quotes, e.g.
"Hugo"
→ «Hugo» - Enable descriptive header IDs
- URLs in XML output is now correctly canonified (#725, #728, and part of #789)
Other improvements
- Internal change to use byte buffer pool significantly lowering memory usage and providing measurable performance improvements overall
- Changes to docs:
- A new Troubleshooting section is added
- It's now searchable through Google Custom Search (#753)
- Some new great tutorials:
hugo new
now copies the content in addition to the front matter- Improved unit test coverage
- Fixed a lot of Windows-related path issues
- Improved error messages for template and rendering errors
- Enabled soft LiveReload of CSS and images (#490)
- Various fixes in RSS feed generation (#789)
HasMenuCurrent
andIsMenuCurrent
is now supported on Nodes- A bunch of bug fixes
0.12.0 Sept 1, 2014
A lot has happened since Hugo v0.11.0 was released. Most of the work has been focused on polishing the theme engine and adding critical functionality to the templates.
This release represents over 90 code commits from 28 different contributors.
- 10 new themes created by the community
- Fully themable Partials
- 404 template support in themes
- Shortcode support in themes
- Views support in themes
- Inner shortcode content now treated as Markdown
- Support for header ids in Markdown (# Header {#myid})
- Where template function to filter lists of content, taxonomies, etc.
- GroupBy & GroupByDate methods to group pages
- Taxonomy pages list now sortable, filterable, limitable & groupable
- General cleanup to taxonomies & documentation to make it more clear and consistent
- Showcase returned and has been expanded
- Pretty links now always have trailing slashes
- BaseUrl can now include a subdirectory
- Better feedback about draft & future post rendering
- A variety of improvements to the website
0.11.0 May 28, 2014
This release represents over 110 code commits from 29 different contributors.
- Considerably faster... about 3 - 4x faster on average
- LiveReload. Hugo will automatically reload the browser when the build is complete
- Theme engine w/Theme Repository
- Menu system with support for active page
- Builders to quickly create a new site, content or theme
- XML sitemap generation
- Integrated Disqus support
- Streamlined template organization
- Brand new docs site
- Support for publishDate which allows for posts to be dated in the future
- More sort options
- Logging support
- Much better error handling
- More informative verbose output
- Renamed Indexes > Taxonomies
- Renamed Chrome > Partials
0.10.0 March 1, 2014
This release represents over 110 code commits from 29 different contributors.
- Syntax highlighting powered by pygments (slow)
- Ability to sort content many more ways
- Automatic table of contents generation
- Support for Unicode URLs, aliases and indexes
- Configurable per-section permalink pattern support
- Support for paired shortcodes
- Shipping with some shortcodes (highlight & figure)
- Adding canonify option to keep urls relative
- A bunch of additional template functions
- Watching very large sites now works on Mac
- RSS generation improved. Limited to 50 items by default, can limit further in template
- Boolean params now supported in frontmatter
- Launched website showcase. Show off your own hugo site!
- A bunch of bug fixes
0.9.0 November 15, 2013
This release represents over 220 code commits from 22 different contributors.
- New command based interface similar to git (
hugo server -s ./
) - Amber template support
- Aliases (redirects)
- Support for top level pages (in addition to homepage)
- Complete overhaul of the documentation site
- Full Windows support
- Better index support including ordering by content weight
- Add params to site config, available in .Site.Params from templates
- Friendlier json support
- Support for html & xml content (with frontmatter support)
- Support for summary content divider (
<!--more-->
) - HTML in summary (when using divider)
- Added "Minutes to Read" functionality
- Support for a custom 404 page
- Cleanup of how content organization is handled
- Loads of unit and performance tests
- Integration with travis ci
- Static directory now watched and copied on any addition or modification
- Support for relative permalinks
- Fixed watching being triggered multiple times for the same event
- Watch now ignores temp files (as created by Vim)
- Configurable number of posts on homepage
- Front matter supports multiple types (int, string, date, float)
- Indexes can now use a default template
- Addition of truncated bool to content to determine if should show 'more' link
- Support for linkTitles
- Better handling of most errors with directions on how to resolve
- Support for more date / time formats
- Support for go 1.2
- Support for
first
in templates
0.8.0 August 2, 2013
This release represents over 65 code commits from 6 different contributors.
- Added support for pretty urls (filename/index.html vs filename.html)
- Hugo supports a destination directory
- Will efficiently sync content in static to destination directory
- Cleaned up options.. now with support for short and long options
- Added support for TOML
- Added support for YAML
- Added support for Previous & Next
- Added support for indexes for the indexes
- Better Windows compatibility
- Support for series
- Adding verbose output
- Loads of bugfixes
0.7.0 July 4, 2013
- Hugo now includes a simple server
- First public release
0.6.0 July 2, 2013
- Hugo includes an example documentation site which it builds
0.5.0 June 25, 2013
- Hugo is quite usable and able to build spf13.com