Cameron Moore [Fri, 23 Dec 2016 04:01:00 +0000 (22:01 -0600)]
tpl: Update title to accept interface{} params
Updates #2822
Cameron Moore [Fri, 23 Dec 2016 03:54:08 +0000 (21:54 -0600)]
tpl: Update upper to accept interface{} params
Updates #2822
Cameron Moore [Thu, 22 Dec 2016 23:39:38 +0000 (17:39 -0600)]
tpl: Update lower to accept interface{} params
Updates #2822
Cameron Moore [Thu, 22 Dec 2016 23:29:31 +0000 (17:29 -0600)]
tpl: Update hasPrefix to accept interface{} params
Updates #2822
Cameron Moore [Fri, 23 Dec 2016 04:19:00 +0000 (22:19 -0600)]
Update Travis go versions
Asif Mehedi [Thu, 22 Dec 2016 16:19:10 +0000 (22:19 +0600)]
docs: Convert code in multilingual.md to TOML
There was a mix of TOML and YAML in the first example config.
patrick [Wed, 21 Dec 2016 21:34:46 +0000 (21:34 +0000)]
docs: Add neavey.net to the showcase.
Emily Huynh [Thu, 22 Dec 2016 16:05:48 +0000 (10:05 -0600)]
docs: Fix typo in templates/blocks
Fixed typo in templates/blocks.md in the docs.
Akilan Elango [Thu, 22 Dec 2016 16:03:33 +0000 (21:33 +0530)]
docs: Add details about binary names for setup on Windows
The tutorial for installing on windows didn't mention the exact name of the
hugo executable in windows which is generally hugo_<hugo-version>_windows_<arch>.exe.
The tutorial mentioned the windows executable's name as hugo.exe, which
can be confusing sometimes. So extra information has been added to
rename the executable to hugo.exe which would be easy to use.
Fixes #2656
avi [Thu, 22 Dec 2016 07:39:58 +0000 (13:09 +0530)]
command: Add `themesDir` command argument to specify themes directory
Christian Mendoza [Sun, 16 Oct 2016 17:46:10 +0000 (13:46 -0400)]
docs: Update christianmendoza.me in the showcase
Bjørn Erik Pedersen [Wed, 21 Dec 2016 09:17:05 +0000 (10:17 +0100)]
hugolib: Add a test assertion for IsTranslated
See #2812
Bjørn Erik Pedersen [Tue, 20 Dec 2016 08:39:12 +0000 (09:39 +0100)]
docs: Regenerate commands doc
Bjørn Erik Pedersen [Mon, 19 Dec 2016 22:14:10 +0000 (23:14 +0100)]
Bump to 0.19-DEV
Bjørn Erik Pedersen [Mon, 19 Dec 2016 16:12:11 +0000 (17:12 +0100)]
Add GoBuilds to .gitignore
Bjørn Erik Pedersen [Mon, 19 Dec 2016 14:37:01 +0000 (15:37 +0100)]
docs: Add new alias feature to release docs
Bjørn Erik Pedersen [Mon, 19 Dec 2016 14:35:20 +0000 (15:35 +0100)]
Bump to 0.18 release version
Bjørn Erik Pedersen [Mon, 19 Dec 2016 13:42:01 +0000 (14:42 +0100)]
docs: Add 0.18 release notes
Bjørn Erik Pedersen [Fri, 16 Dec 2016 19:18:20 +0000 (20:18 +0100)]
vendor: Update go-toml
Fixes #2800
Ashutosh Gangwar [Fri, 16 Dec 2016 10:10:14 +0000 (15:40 +0530)]
docs: Fix broken link to Content Types
Brian Shumate [Fri, 16 Dec 2016 00:09:51 +0000 (19:09 -0500)]
docs: Update layouts path name
Bjørn Erik Pedersen [Thu, 15 Dec 2016 21:02:21 +0000 (22:02 +0100)]
docs: Improve documentation for block templates
Hopefully.
Fixes #2363
Bjørn Erik Pedersen [Wed, 14 Dec 2016 19:12:03 +0000 (20:12 +0100)]
hugolib: Enable override of theme base template only
This commit fixes the base template lookup order to match the behaviour of regular templates.
```
1. <current-path>/<template-name>-baseof.<suffix>, e.g. list-baseof.<suffix>.
2. <current-path>/baseof.<suffix>
3. _default/<template-name>-baseof.<suffix>, e.g. list-baseof.<suffix>.
4. _default/baseof.<suffix>
For each of the steps above, it will first look in the project, then, if theme is set,
in the theme's layouts folder.
```
Fixes #2783
Cameron Moore [Thu, 15 Dec 2016 17:06:25 +0000 (11:06 -0600)]
docs: Clarify single page template search path
Fixes #2791
Cameron Moore [Thu, 15 Dec 2016 16:56:52 +0000 (10:56 -0600)]
docs: Fix pipe examples
Fixes #2787
Cameron Moore [Thu, 15 Dec 2016 16:39:29 +0000 (10:39 -0600)]
docs: Fix Ref and RelRef syntax
Fixes #2793
Cameron Moore [Wed, 14 Dec 2016 02:37:34 +0000 (20:37 -0600)]
docs: Document partialCached func
Fixes #2779
Cameron Moore [Sun, 11 Dec 2016 23:44:14 +0000 (17:44 -0600)]
docs: Add .Site.RegularPages docs
Fixes #2775
Cameron Moore [Mon, 12 Dec 2016 02:29:07 +0000 (20:29 -0600)]
docs: Update GitInfo usage docs
Cameron Moore [Mon, 12 Dec 2016 00:55:36 +0000 (18:55 -0600)]
docs: Cleanup Extras menu ordering
Cameron Moore [Mon, 12 Dec 2016 00:40:45 +0000 (18:40 -0600)]
docs: Add Extras > GitInfo
Fixes #2670
Bjørn Erik Pedersen [Thu, 15 Dec 2016 08:27:30 +0000 (09:27 +0100)]
create: Allow empty dates in archetype in new
To make it behave the same as Hugo 0.17.
madhead [Wed, 14 Dec 2016 10:01:11 +0000 (05:01 -0500)]
docs: Fix querify example
Bjørn Erik Pedersen [Mon, 12 Dec 2016 23:15:21 +0000 (00:15 +0100)]
tpl: Add a querify test case that is actually and URL
See #2780
Bjørn Erik Pedersen [Sun, 11 Dec 2016 12:01:11 +0000 (13:01 +0100)]
Fix menu URL for node type pages
By delaying the menu assembly.
Fixes #2770
Eugene Brodsky [Sat, 10 Dec 2016 06:59:42 +0000 (01:59 -0500)]
docs: Clarify usage of archetypes provided by themes
Cameron Moore [Fri, 9 Dec 2016 22:27:20 +0000 (16:27 -0600)]
docs: Update File variables
Cipto Hadi [Fri, 9 Dec 2016 01:31:50 +0000 (08:31 +0700)]
docs: Fix prev/next links in content section
Bjørn Erik Pedersen [Tue, 6 Dec 2016 08:57:05 +0000 (09:57 +0100)]
hugolib: Fix comment
Bjørn Erik Pedersen [Tue, 6 Dec 2016 08:32:14 +0000 (09:32 +0100)]
hugolib: Respect disableRSS
Fixes #2764
Bjørn Erik Pedersen [Sun, 4 Dec 2016 23:27:49 +0000 (00:27 +0100)]
tpl: Avoid repeating the same test case in TestMD5 and TesSHA*
digitalcraftsman [Sun, 4 Dec 2016 17:20:56 +0000 (18:20 +0100)]
docs: Fix linebreaks in templates/variables.md
digitalcraftsman [Sun, 4 Dec 2016 12:35:31 +0000 (13:35 +0100)]
tpl: Add sha256 template function
Fixes #2742
digitalcraftsman [Sat, 3 Dec 2016 19:23:41 +0000 (20:23 +0100)]
docs: Update description of querify
digitalcraftsman [Sat, 3 Dec 2016 19:12:12 +0000 (20:12 +0100)]
docs: Document querify template func
Closes #2733
Bjørn Erik Pedersen [Sat, 3 Dec 2016 16:42:45 +0000 (17:42 +0100)]
hugolib: Add regular content page count in publish summary
Fixes #2759
Bjørn Erik Pedersen [Fri, 2 Dec 2016 15:09:18 +0000 (16:09 +0100)]
hugolib: Remove superfluous assignment
Bjørn Erik Pedersen [Thu, 1 Dec 2016 09:21:49 +0000 (10:21 +0100)]
hugolib: Make RawContent raw again
This was a regression introduced in Hugo 0.17.
Fixes #2601
Cameron Moore [Wed, 30 Nov 2016 04:52:52 +0000 (22:52 -0600)]
commands: Add noChmod option to disable perm sync
Includes updates to docs.
Fixes #2749
Bjørn Erik Pedersen [Wed, 30 Nov 2016 07:32:49 +0000 (08:32 +0100)]
vendor: Update fsync
Bjørn Erik Pedersen [Wed, 30 Nov 2016 07:29:08 +0000 (08:29 +0100)]
create: Run all the test variants in TestNewContent
See #2750
Chase Adams [Tue, 29 Nov 2016 23:03:47 +0000 (15:03 -0800)]
hugolib: Fix rendered empty msg
Changes `%q` to `%s`. `%q` was safely escaping the `\` in windows so that it was printing `\\`.
Bjørn Erik Pedersen [Tue, 29 Nov 2016 19:32:26 +0000 (20:32 +0100)]
create: Simplify archetype logic
See ##2750
Bjørn Erik Pedersen [Tue, 29 Nov 2016 19:18:09 +0000 (20:18 +0100)]
create: Fix archetype title and date handling
Fixes #2750
Bjørn Erik Pedersen [Mon, 28 Nov 2016 15:10:16 +0000 (16:10 +0100)]
vendor: Update go-toml
See #2745
Bjørn Erik Pedersen [Sun, 27 Nov 2016 22:21:10 +0000 (23:21 +0100)]
makefile: Add test-cover-html
Bjørn Erik Pedersen [Sun, 27 Nov 2016 18:25:28 +0000 (19:25 +0100)]
hugolib: Create the permalink once only
Bjørn Erik Pedersen [Sun, 27 Nov 2016 17:01:43 +0000 (18:01 +0100)]
tpl: Fix params case issue with nested template funcs
Fixes #2740
Bjørn Erik Pedersen [Sat, 26 Nov 2016 14:50:32 +0000 (15:50 +0100)]
hugolib: Fix regressions with uglyURLs
Fixes #2734
Bjørn Erik Pedersen [Wed, 23 Nov 2016 21:06:15 +0000 (22:06 +0100)]
hugolib: Avoid repeated Viper loads of sectionPagesMenu
See #2728
Victor Kropp [Sun, 13 Nov 2016 23:04:28 +0000 (00:04 +0100)]
hugolib: Add shortcode for Instagram
digitalcraftsman [Wed, 23 Nov 2016 18:53:24 +0000 (19:53 +0100)]
docs: Set correct default archetype directory in overview
Fixes #2719.
bogem [Wed, 23 Nov 2016 09:30:57 +0000 (10:30 +0100)]
examples: Update blog example
Use RSSLink instead of deprecated RSSlink
bogem [Mon, 21 Nov 2016 15:35:52 +0000 (16:35 +0100)]
examples: Update multilingual example
Use new i18n concept
Fixes #2417
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:55:51 +0000 (18:55 +0100)]
commands: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:54:57 +0000 (18:54 +0100)]
helpers: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:53:50 +0000 (18:53 +0100)]
tpl: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:46:32 +0000 (18:46 +0100)]
target: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:42:47 +0000 (18:42 +0100)]
transform: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:28:14 +0000 (18:28 +0100)]
hugolib: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 16:26:13 +0000 (17:26 +0100)]
Revise the deprecation strategy
Git users and theme authors two Hugo releases to fix:
1. With a visible warning
2. Then with an ERROR that exits with -1
Fixes #2726
Bjørn Erik Pedersen [Wed, 23 Nov 2016 15:46:16 +0000 (16:46 +0100)]
hubolib: Simplify map range
Bjørn Erik Pedersen [Wed, 23 Nov 2016 15:35:49 +0000 (16:35 +0100)]
Remove ShowPlan
It is out of sync with reality, has some disabled tests, and the cost
of getting it up-to-date is too high to be worth it.
Bjørn Erik Pedersen [Wed, 23 Nov 2016 15:05:40 +0000 (16:05 +0100)]
vendor: Update go-toml
Cameron Moore [Wed, 23 Nov 2016 13:44:09 +0000 (07:44 -0600)]
vendor: remove afero/sftp deps
Evan Purkhiser [Wed, 23 Nov 2016 09:39:01 +0000 (01:39 -0800)]
Fix alignment of go gets in Dockerfile
bogem [Wed, 23 Nov 2016 09:35:02 +0000 (10:35 +0100)]
helpers: Fix typo in language.Get documentation
Bjørn Erik Pedersen [Wed, 23 Nov 2016 09:44:35 +0000 (10:44 +0100)]
hugolib: Add missing paginator test case
Bjørn Erik Pedersen [Wed, 23 Nov 2016 09:37:09 +0000 (10:37 +0100)]
tpl: Add some missing test cases
Bjørn Erik Pedersen [Wed, 23 Nov 2016 08:17:47 +0000 (09:17 +0100)]
tpl: Fix spelling in test
bogem [Mon, 21 Nov 2016 22:04:59 +0000 (23:04 +0100)]
tpl: Drop an else block in checkCondition
Fix golint warning: tpl/template_funcs.go:853:10: if block ends with a
return statement, so drop this else and outdent its block
See #2014
bogem [Mon, 21 Nov 2016 22:02:52 +0000 (23:02 +0100)]
hugolib: Omit type from declaration of var lang
Fix golint warning: hugolib/site.go:922:13: should omit type
*helpers.Language from declaration of var lang; it will be inferred from
the right-hand side
See #2014
bogem [Mon, 21 Nov 2016 22:02:19 +0000 (23:02 +0100)]
hugolib: Camelcase ALL_CAPS vars and const in tests
See #2014
bogem [Mon, 21 Nov 2016 22:01:42 +0000 (23:01 +0100)]
hugolib, source, tpl: Fix docs
See #2014
bogem [Mon, 21 Nov 2016 22:00:44 +0000 (23:00 +0100)]
helpers: Rename WalkRootTooShortError to ErrWalkRootTooShort
Fix golint warning: helpers/path.go:473:5: error var
WalkRootTooShortError should have name of the form ErrFoo
See #2014
bogem [Mon, 21 Nov 2016 21:59:33 +0000 (22:59 +0100)]
helpers: Add documentation to some Language methods
See #2014
bogem [Mon, 21 Nov 2016 21:57:38 +0000 (22:57 +0100)]
helpers: Use iterate operator by int in Emojify
Fix golint warning: helpers/emoji.go:56:4: should replace start += 1
with start++
See #2014
bogem [Fri, 18 Nov 2016 22:21:45 +0000 (23:21 +0100)]
commands, hugolib: Unify case of config variable names
bogem [Fri, 18 Nov 2016 21:54:57 +0000 (22:54 +0100)]
commands, hugolib, parser, tpl: Use errors.New instead of fmt.Errorf
bogem [Fri, 18 Nov 2016 21:38:41 +0000 (22:38 +0100)]
commands, hugolib, source, target, tpl: Get rid of some fmt statements
bogem [Tue, 22 Nov 2016 17:47:20 +0000 (18:47 +0100)]
all: Use jww instead of fmt for printing
This is an attempt to unify method for printing.
Bjørn Erik Pedersen [Mon, 24 Oct 2016 20:29:48 +0000 (22:29 +0200)]
Fix case issues with Params
There are currently several Params and case related issues floating around in Hugo.
This is very confusing for users and one of the most common support questions on the forum.
And while there have been done some great leg work in Viper etc., this is of limited value since this and similar doesn't work:
`Params.myCamelCasedParam`
Hugo has control over all the template method invocations, and can take care of all the lower-casing of the map lookup keys.
But that doesn't help with direct template lookups of type `Site.Params.TWITTER_CONFIG.USER_ID`.
This commit solves that by doing some carefully crafted modifications of the templates' AST -- lowercasing the params keys.
This is low-level work, but it's not like the template API wil change -- and this is important enough to defend such "bit fiddling".
Tests are added for all the template engines: Go templates, Ace and Amber.
Fixes #2615
Fixes #1129
Fixes #2590
Bjørn Erik Pedersen [Mon, 21 Nov 2016 16:12:42 +0000 (17:12 +0100)]
docs: Add Pages to variables section
And some other minor doc fixes.
Closes #2297
Closes #2649
Bjørn Erik Pedersen [Mon, 21 Nov 2016 12:51:41 +0000 (13:51 +0100)]
node to page: Re-add translations sort of regular pages
Was removed by mistake.
Updates #2297
Bjørn Erik Pedersen [Mon, 21 Nov 2016 12:23:19 +0000 (13:23 +0100)]
docs: Add release notes about node to page
Updates #2297
Bjørn Erik Pedersen [Mon, 21 Nov 2016 12:02:02 +0000 (13:02 +0100)]
docs: Add sections on node now being a page
Updates #2297
Bjørn Erik Pedersen [Mon, 21 Nov 2016 09:35:57 +0000 (10:35 +0100)]
node to page: Fix site pages sort
Updates #2297
Bjørn Erik Pedersen [Mon, 21 Nov 2016 09:11:34 +0000 (10:11 +0100)]
node to page: Fixe index page translation issues
Updates #2297
Bjørn Erik Pedersen [Sun, 20 Nov 2016 22:00:57 +0000 (23:00 +0100)]
docs: Revise docs to reflect that Node is gone
Updates #2297
Bjørn Erik Pedersen [Sun, 20 Nov 2016 18:36:24 +0000 (19:36 +0100)]
docs: Make the tools content page a section page
Because it is the right solution and it the avoids naming conflict with section vs page.
Updates #2297