brevno-suite/hugo
8 years agohugolib: Make template error messages more verbose
Bjørn Erik Pedersen [Mon, 26 Dec 2016 13:52:31 +0000 (14:52 +0100)]
hugolib: Make template error messages more verbose

Fixes #2820

8 years agohelpers: Add patch version
Bjørn Erik Pedersen [Mon, 26 Dec 2016 13:03:50 +0000 (14:03 +0100)]
helpers: Add patch version

Fixes #2832

8 years agovendor: Update Afero
Bjørn Erik Pedersen [Mon, 26 Dec 2016 09:53:52 +0000 (10:53 +0100)]
vendor: Update Afero

Fixes #2833

8 years agovendor: Temp roll back to an older Afero
Bjørn Erik Pedersen [Sun, 25 Dec 2016 14:20:29 +0000 (15:20 +0100)]
vendor: Temp roll back to an older Afero

See #2833

8 years agotpl: Update dateFormat test expectations for epoch values
Bjørn Erik Pedersen [Sun, 25 Dec 2016 13:53:34 +0000 (14:53 +0100)]
tpl: Update dateFormat test expectations for epoch values

As `Cast` now supports `int` inputs.

8 years agovendor: Update dependencies
Bjørn Erik Pedersen [Sun, 25 Dec 2016 13:53:24 +0000 (14:53 +0100)]
vendor: Update dependencies

8 years agotpl: Fix crash when using imageConfig
Tristan Rice [Sun, 25 Dec 2016 12:43:50 +0000 (04:43 -0800)]
tpl: Fix crash when using imageConfig

defaultImageConfigCache is now initialized statically instead of relying on it
being initialized in the reset function.

Fixes #2806

8 years agohelpers: Remove "no theme set" warning
Cameron Moore [Fri, 23 Dec 2016 04:44:35 +0000 (22:44 -0600)]
helpers: Remove "no theme set" warning

Fixes #2821

8 years agotpl: Update getenv to accept interface{} params
Cameron Moore [Fri, 23 Dec 2016 04:05:59 +0000 (22:05 -0600)]
tpl: Update getenv to accept interface{} params

Updates #2822

8 years agotpl: Update title to accept interface{} params
Cameron Moore [Fri, 23 Dec 2016 04:01:00 +0000 (22:01 -0600)]
tpl: Update title to accept interface{} params

Updates #2822

8 years agotpl: Update upper to accept interface{} params
Cameron Moore [Fri, 23 Dec 2016 03:54:08 +0000 (21:54 -0600)]
tpl: Update upper to accept interface{} params

Updates #2822

8 years agotpl: Update lower to accept interface{} params
Cameron Moore [Thu, 22 Dec 2016 23:39:38 +0000 (17:39 -0600)]
tpl: Update lower to accept interface{} params

Updates #2822

8 years agotpl: Update hasPrefix to accept interface{} params
Cameron Moore [Thu, 22 Dec 2016 23:29:31 +0000 (17:29 -0600)]
tpl: Update hasPrefix to accept interface{} params

Updates #2822

8 years agoUpdate Travis go versions
Cameron Moore [Fri, 23 Dec 2016 04:19:00 +0000 (22:19 -0600)]
Update Travis go versions

8 years agodocs: Convert code in multilingual.md to TOML
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.

8 years agodocs: Add neavey.net to the showcase.
patrick [Wed, 21 Dec 2016 21:34:46 +0000 (21:34 +0000)]
docs: Add neavey.net to the showcase.

8 years agodocs: Fix typo in templates/blocks
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.

8 years agodocs: Add details about binary names for setup on Windows
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

8 years agocommand: Add `themesDir` command argument to specify themes directory
avi [Thu, 22 Dec 2016 07:39:58 +0000 (13:09 +0530)]
command: Add `themesDir` command argument to specify themes directory

8 years agodocs: Update christianmendoza.me in the showcase
Christian Mendoza [Sun, 16 Oct 2016 17:46:10 +0000 (13:46 -0400)]
docs: Update christianmendoza.me in the showcase

8 years agohugolib: Add a test assertion for IsTranslated
Bjørn Erik Pedersen [Wed, 21 Dec 2016 09:17:05 +0000 (10:17 +0100)]
hugolib: Add a test assertion for IsTranslated

See #2812

8 years agodocs: Regenerate commands doc
Bjørn Erik Pedersen [Tue, 20 Dec 2016 08:39:12 +0000 (09:39 +0100)]
docs: Regenerate commands doc

8 years agoBump to 0.19-DEV
Bjørn Erik Pedersen [Mon, 19 Dec 2016 22:14:10 +0000 (23:14 +0100)]
Bump to 0.19-DEV

8 years agoAdd GoBuilds to .gitignore
Bjørn Erik Pedersen [Mon, 19 Dec 2016 16:12:11 +0000 (17:12 +0100)]
Add GoBuilds to .gitignore

8 years agodocs: Add new alias feature to release docs v0.18
Bjørn Erik Pedersen [Mon, 19 Dec 2016 14:37:01 +0000 (15:37 +0100)]
docs: Add new alias feature to release docs

8 years agoBump to 0.18 release version
Bjørn Erik Pedersen [Mon, 19 Dec 2016 14:35:20 +0000 (15:35 +0100)]
Bump to 0.18 release version

8 years agodocs: Add 0.18 release notes
Bjørn Erik Pedersen [Mon, 19 Dec 2016 13:42:01 +0000 (14:42 +0100)]
docs: Add 0.18 release notes

8 years agovendor: Update go-toml
Bjørn Erik Pedersen [Fri, 16 Dec 2016 19:18:20 +0000 (20:18 +0100)]
vendor: Update go-toml

Fixes #2800

8 years agodocs: Fix broken link to Content Types
Ashutosh Gangwar [Fri, 16 Dec 2016 10:10:14 +0000 (15:40 +0530)]
docs: Fix broken link to Content Types

8 years agodocs: Update layouts path name
Brian Shumate [Fri, 16 Dec 2016 00:09:51 +0000 (19:09 -0500)]
docs: Update layouts path name

8 years agodocs: Improve documentation for block templates
Bjørn Erik Pedersen [Thu, 15 Dec 2016 21:02:21 +0000 (22:02 +0100)]
docs: Improve documentation for block templates

Hopefully.

Fixes #2363

8 years agohugolib: Enable override of theme base template only
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

8 years agodocs: Clarify single page template search path
Cameron Moore [Thu, 15 Dec 2016 17:06:25 +0000 (11:06 -0600)]
docs: Clarify single page template search path

Fixes #2791

8 years agodocs: Fix pipe examples
Cameron Moore [Thu, 15 Dec 2016 16:56:52 +0000 (10:56 -0600)]
docs: Fix pipe examples

Fixes #2787

8 years agodocs: Fix Ref and RelRef syntax
Cameron Moore [Thu, 15 Dec 2016 16:39:29 +0000 (10:39 -0600)]
docs: Fix Ref and RelRef syntax

Fixes #2793

8 years agodocs: Document partialCached func
Cameron Moore [Wed, 14 Dec 2016 02:37:34 +0000 (20:37 -0600)]
docs: Document partialCached func

Fixes #2779

8 years agodocs: Add .Site.RegularPages docs
Cameron Moore [Sun, 11 Dec 2016 23:44:14 +0000 (17:44 -0600)]
docs: Add .Site.RegularPages docs

Fixes #2775

8 years agodocs: Update GitInfo usage docs
Cameron Moore [Mon, 12 Dec 2016 02:29:07 +0000 (20:29 -0600)]
docs: Update GitInfo usage docs

8 years agodocs: Cleanup Extras menu ordering
Cameron Moore [Mon, 12 Dec 2016 00:55:36 +0000 (18:55 -0600)]
docs: Cleanup Extras menu ordering

8 years agodocs: Add Extras > GitInfo
Cameron Moore [Mon, 12 Dec 2016 00:40:45 +0000 (18:40 -0600)]
docs: Add Extras > GitInfo

Fixes #2670

8 years agocreate: Allow empty dates in archetype in new
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.

8 years agodocs: Fix querify example
madhead [Wed, 14 Dec 2016 10:01:11 +0000 (05:01 -0500)]
docs: Fix querify example

8 years agotpl: Add a querify test case that is actually and URL
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

8 years agoFix menu URL for node type pages
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

8 years agodocs: Clarify usage of archetypes provided by themes
Eugene Brodsky [Sat, 10 Dec 2016 06:59:42 +0000 (01:59 -0500)]
docs: Clarify usage of archetypes provided by themes

8 years agodocs: Update File variables
Cameron Moore [Fri, 9 Dec 2016 22:27:20 +0000 (16:27 -0600)]
docs: Update File variables

8 years agodocs: Fix prev/next links in content section
Cipto Hadi [Fri, 9 Dec 2016 01:31:50 +0000 (08:31 +0700)]
docs: Fix prev/next links in content section

8 years agohugolib: Fix comment
Bjørn Erik Pedersen [Tue, 6 Dec 2016 08:57:05 +0000 (09:57 +0100)]
hugolib: Fix comment

8 years agohugolib: Respect disableRSS
Bjørn Erik Pedersen [Tue, 6 Dec 2016 08:32:14 +0000 (09:32 +0100)]
hugolib: Respect disableRSS

Fixes #2764

8 years agotpl: Avoid repeating the same test case in TestMD5 and TesSHA*
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*

8 years agodocs: Fix linebreaks in templates/variables.md
digitalcraftsman [Sun, 4 Dec 2016 17:20:56 +0000 (18:20 +0100)]
docs: Fix linebreaks in templates/variables.md

8 years agotpl: Add sha256 template function
digitalcraftsman [Sun, 4 Dec 2016 12:35:31 +0000 (13:35 +0100)]
tpl: Add sha256 template function

Fixes #2742

8 years agodocs: Update description of querify
digitalcraftsman [Sat, 3 Dec 2016 19:23:41 +0000 (20:23 +0100)]
docs: Update description of querify

8 years agodocs: Document querify template func
digitalcraftsman [Sat, 3 Dec 2016 19:12:12 +0000 (20:12 +0100)]
docs: Document querify template func

Closes #2733

8 years agohugolib: Add regular content page count in publish summary
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

8 years agohugolib: Remove superfluous assignment
Bjørn Erik Pedersen [Fri, 2 Dec 2016 15:09:18 +0000 (16:09 +0100)]
hugolib: Remove superfluous assignment

8 years agohugolib: Make RawContent raw again
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

8 years agocommands: Add noChmod option to disable perm sync
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

8 years agovendor: Update fsync
Bjørn Erik Pedersen [Wed, 30 Nov 2016 07:32:49 +0000 (08:32 +0100)]
vendor: Update fsync

8 years agocreate: Run all the test variants in TestNewContent
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

8 years agohugolib: Fix rendered empty msg
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 `\\`.

8 years agocreate: Simplify archetype logic
Bjørn Erik Pedersen [Tue, 29 Nov 2016 19:32:26 +0000 (20:32 +0100)]
create: Simplify archetype logic

See ##2750

8 years agocreate: Fix archetype title and date handling
Bjørn Erik Pedersen [Tue, 29 Nov 2016 19:18:09 +0000 (20:18 +0100)]
create: Fix archetype title and date handling

Fixes #2750

8 years agovendor: Update go-toml
Bjørn Erik Pedersen [Mon, 28 Nov 2016 15:10:16 +0000 (16:10 +0100)]
vendor: Update go-toml

See #2745

8 years agomakefile: Add test-cover-html
Bjørn Erik Pedersen [Sun, 27 Nov 2016 22:21:10 +0000 (23:21 +0100)]
makefile: Add test-cover-html

8 years agohugolib: Create the permalink once only
Bjørn Erik Pedersen [Sun, 27 Nov 2016 18:25:28 +0000 (19:25 +0100)]
hugolib: Create the permalink once only

8 years agotpl: Fix params case issue with nested template funcs
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

8 years agohugolib: Fix regressions with uglyURLs
Bjørn Erik Pedersen [Sat, 26 Nov 2016 14:50:32 +0000 (15:50 +0100)]
hugolib: Fix regressions with uglyURLs

Fixes #2734

8 years agohugolib: Avoid repeated Viper loads of sectionPagesMenu
Bjørn Erik Pedersen [Wed, 23 Nov 2016 21:06:15 +0000 (22:06 +0100)]
hugolib: Avoid repeated Viper loads of sectionPagesMenu

See #2728

8 years agohugolib: Add shortcode for Instagram
Victor Kropp [Sun, 13 Nov 2016 23:04:28 +0000 (00:04 +0100)]
hugolib: Add shortcode for Instagram

8 years agodocs: Set correct default archetype directory in overview
digitalcraftsman [Wed, 23 Nov 2016 18:53:24 +0000 (19:53 +0100)]
docs: Set correct default archetype directory in overview

Fixes #2719.

8 years agoexamples: Update blog example
bogem [Wed, 23 Nov 2016 09:30:57 +0000 (10:30 +0100)]
examples: Update blog example

Use RSSLink instead of deprecated RSSlink

8 years agoexamples: Update multilingual example
bogem [Mon, 21 Nov 2016 15:35:52 +0000 (16:35 +0100)]
examples: Update multilingual example

Use new i18n concept

Fixes #2417

8 years agocommands: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:55:51 +0000 (18:55 +0100)]
commands: Simplify

8 years agohelpers: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:54:57 +0000 (18:54 +0100)]
helpers: Simplify

8 years agotpl: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:53:50 +0000 (18:53 +0100)]
tpl: Simplify

8 years agotarget: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:46:32 +0000 (18:46 +0100)]
target: Simplify

8 years agotransform: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:42:47 +0000 (18:42 +0100)]
transform: Simplify

8 years agohugolib: Simplify
Bjørn Erik Pedersen [Wed, 23 Nov 2016 17:28:14 +0000 (18:28 +0100)]
hugolib: Simplify

8 years agoRevise the deprecation strategy
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

8 years agohubolib: Simplify map range
Bjørn Erik Pedersen [Wed, 23 Nov 2016 15:46:16 +0000 (16:46 +0100)]
hubolib: Simplify map range

8 years agoRemove ShowPlan
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.

8 years agovendor: Update go-toml
Bjørn Erik Pedersen [Wed, 23 Nov 2016 15:05:40 +0000 (16:05 +0100)]
vendor: Update go-toml

8 years agovendor: remove afero/sftp deps
Cameron Moore [Wed, 23 Nov 2016 13:44:09 +0000 (07:44 -0600)]
vendor: remove afero/sftp deps

8 years agoFix alignment of go gets in Dockerfile
Evan Purkhiser [Wed, 23 Nov 2016 09:39:01 +0000 (01:39 -0800)]
Fix alignment of go gets in Dockerfile

8 years agohelpers: Fix typo in language.Get documentation
bogem [Wed, 23 Nov 2016 09:35:02 +0000 (10:35 +0100)]
helpers: Fix typo in language.Get documentation

8 years agohugolib: Add missing paginator test case
Bjørn Erik Pedersen [Wed, 23 Nov 2016 09:44:35 +0000 (10:44 +0100)]
hugolib: Add missing paginator test case

8 years agotpl: Add some missing test cases
Bjørn Erik Pedersen [Wed, 23 Nov 2016 09:37:09 +0000 (10:37 +0100)]
tpl: Add some missing test cases

8 years agotpl: Fix spelling in test
Bjørn Erik Pedersen [Wed, 23 Nov 2016 08:17:47 +0000 (09:17 +0100)]
tpl: Fix spelling in test

8 years agotpl: Drop an else block in checkCondition
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

8 years agohugolib: Omit type from declaration of var lang
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

8 years agohugolib: Camelcase ALL_CAPS vars and const in tests
bogem [Mon, 21 Nov 2016 22:02:19 +0000 (23:02 +0100)]
hugolib: Camelcase ALL_CAPS vars and const in tests

See #2014

8 years agohugolib, source, tpl: Fix docs
bogem [Mon, 21 Nov 2016 22:01:42 +0000 (23:01 +0100)]
hugolib, source, tpl: Fix docs

See #2014

8 years agohelpers: Rename WalkRootTooShortError to ErrWalkRootTooShort
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

8 years agohelpers: Add documentation to some Language methods
bogem [Mon, 21 Nov 2016 21:59:33 +0000 (22:59 +0100)]
helpers: Add documentation to some Language methods

See #2014

8 years agohelpers: Use iterate operator by int in Emojify
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

8 years agocommands, hugolib: Unify case of config variable names
bogem [Fri, 18 Nov 2016 22:21:45 +0000 (23:21 +0100)]
commands, hugolib: Unify case of config variable names

8 years agocommands, hugolib, parser, tpl: Use errors.New instead of fmt.Errorf
bogem [Fri, 18 Nov 2016 21:54:57 +0000 (22:54 +0100)]
commands, hugolib, parser, tpl: Use errors.New instead of fmt.Errorf

8 years agocommands, hugolib, source, target, tpl: Get rid of some fmt statements
bogem [Fri, 18 Nov 2016 21:38:41 +0000 (22:38 +0100)]
commands, hugolib, source, target, tpl: Get rid of some fmt statements

8 years agoall: Use jww instead of fmt for printing
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.