Bjørn Erik Pedersen
dd2ab2820e
Correct the strings.Contains syntax in failing test
2015-12-18 16:19:00 +01:00
Bjørn Erik Pedersen
31035f8ad1
Fix remote test on Go 1.4
2015-12-18 16:05:24 +01:00
Bjørn Erik Pedersen
89f8fa586c
Set the request Host on http test server
...
Needed for the remote tests to pass on Go 1.6.
See #1470
2015-12-18 15:52:17 +01:00
Bjørn Erik Pedersen
9edc58a03a
Fix failing template related tests in Go 1.6
...
Fixes #1470
2015-12-18 15:28:43 +01:00
Bjørn Erik Pedersen
8cea428802
Fix data race in non-renderable pages
...
Fixes #1601
2015-12-18 11:24:35 +01:00
Bjørn Erik Pedersen
0c01fef321
Fix 2 data races in TestPageCache
...
See #1601
2015-12-18 09:35:14 +01:00
digitalcraftsman
32da9b20bc
Docs: add hugo-lambda to tools section
2015-12-17 10:28:52 -07:00
Anthony Fok
3574304c68
Improve some random feedback messages
...
Also clean up a couple random comments.
2015-12-16 21:26:51 -07:00
Anthony Fok
9c39593dee
Move cobra.MousetrapHelpText to hugo_windows.go
...
Fix build error due to Cobra API change, see
spf13/cobra#195 : Compile mousetrap only on Windows
2015-12-16 21:26:47 -07:00
Anthony Fok
705104338e
Docs: Enhance contrast and increase font-weight
...
Also replace 'Courier New' with newer monospace fonts,
and make font in main text slightly smaller to better fit
smaller screen.
See #1678 .
2015-12-16 19:10:46 -07:00
Anthony Fok
868e4798d5
Fix formatting of "Installing on Windows" tutorial
2015-12-16 18:43:55 -07:00
Anthony Fok
67b4c52466
Regenerate the commands section of doc
...
Reason: The `--source` flag was added back to the `hugo new` commands
in commit c1e134f
.
See #1624 , #1589
2015-12-16 09:26:06 -07:00
Anthony Fok
c1e134f1c2
Add --source
flag back to hugo new
command
...
v0.15 had it, but I removed it inadvertently for 0.16-DEV
in commit 00d04774
in PR #1652 .
Also add directory bash-completion for `--source`
for `hugo convert`, `hugo list` and `hugo new`.
See #1624 , #1589
2015-12-16 00:00:05 -07:00
John Ku
41a3af1a29
Use absolute path when editing with editor
...
Fixes #1589
2015-12-16 00:00:05 -07:00
digitalcraftsman
78576019cf
Docs: reference Jekyll import command in tools section
2015-12-16 00:00:05 -07:00
digitalcraftsman
ebc187b480
Docs: add Contentful converter to tools section
2015-12-16 00:00:05 -07:00
Bjørn Erik Pedersen
d1bec54293
Do not fail on unknown Jekyll file
...
Fixes #1705
2015-12-14 15:30:58 +01:00
Anthony Fok
d5ebf64836
Remove/update outdated links in Press and Showcase
2015-12-13 05:57:18 -07:00
Bjørn Erik Pedersen
9569d116cb
Duplicate p.Description in Params map
...
Fixes #1484
2015-12-12 22:20:26 +01:00
Maxime Michel
38c5db98b5
Added a missing closing tag
2015-12-11 10:51:17 -07:00
Anthony Fok
f22d59bb19
Revise docs/content/tools/index.md (minor fixes)
2015-12-11 10:49:38 -07:00
Michael Holt
1469ce0edf
Remove Duplicate "Editor Plugins" Section
...
Editor Plugins was repeated a second time. with identical content
2015-12-11 10:36:21 -07:00
Cameron Moore
280b2f294e
Document PreserveTaxonomyNames
...
Fixes #1648
2015-12-11 10:17:26 -07:00
Anthony Fok
4a2623c899
Regenerate the commands section of doc
...
See #1624
2015-12-11 09:50:36 -07:00
Cameron Moore
768370a503
Docs: remove references to dynamic CMS products
...
There's no need to call out other projects here, especially when we might
mischaracterize what they do.
See #1688
2015-12-11 09:25:00 -07:00
Cameron Moore
9ae07c4f21
Docs: document Node.IsHome
2015-12-11 09:18:05 -07:00
Anthony Fok
8509727fe8
Add copyright header to that source files that don’t have one.
...
See #1646
2015-12-10 15:19:38 -07:00
Steve Francia
e29ede7055
Fix some of the "new site" tests
2015-12-08 17:38:48 -05:00
Steve Francia
b81fc1be4e
add more architectures to .goxc
2015-12-08 16:46:43 -05:00
Steve Francia
6042fc2b83
move some of the path helper utilities to afero
...
and provide wrappers in Hugo.
2015-12-08 16:46:43 -05:00
Steve Francia
de14ceecc9
Update "Join Chat" to "Dev Chat"
2015-12-08 15:10:53 -05:00
Bjørn Erik Pedersen
56d6c0be5a
Turn off failing new site test
...
Until @spf13 gets some free time in his busy calendar.
See #1680
2015-12-08 19:25:34 +01:00
Tatsushi Demachi
f3c74c9db4
Add boolean value comparison to where tpl function
...
`where` template function's internal condition check function doesn't
check boolean values and always returns `false` silently.
This adds missing boolean value comparison to the function.
`where Values ".Param.key" true` like clause can be used.
Only "=", "==", "eq", "!=", "<>", "ne" operators are allowed to be used
with a boolean value. If an other operator is passed with it, the
condition check function returns `false` like before.
2015-12-08 05:39:11 +09:00
Bjørn Erik Pedersen
e445c35d6a
Fix copyright headers in source files
...
Still need to add some missing headers and an AUTHORS file.
See #1646
2015-12-07 19:57:01 +01:00
Anthony Fok
f13db9328b
Sort and remove "" from "Available templates" list
2015-12-06 23:23:54 -07:00
gunnaraasen
d35d82060f
Remove transformation of menu URLs
...
Fixes #1239
2015-12-06 15:25:23 +01:00
inondle
f6fdfcd429
Added 'themes' as a default new site directory
...
Fixes #1507
2015-12-04 02:19:53 -07:00
Bjørn Erik Pedersen
6a519e692b
Update Travis config to Go 1.5.2
2015-12-04 02:09:03 +01:00
Anthony Fok
cd062623bd
Fix crash with "config", "check" and "benchmark"
...
The crash was introduced by commit 00d04774
in PR #1652
where access to NoTimes was attempted even though --noTimes
was not defined for the config, check and benchmark commands.
Special thanks to @bep for the heads-up!
See also #1624 - CLI UX: Flags shouldn't be global
2015-12-03 12:02:38 -07:00
Bjørn Erik Pedersen
69c28985ea
Fix broken Highlight test
2015-12-03 12:37:48 +01:00
Anthony Fok
c1b5a48f4e
Add sanity checks for hugo import jekyll
...
Also add `--force` flag copied from `hugo new site`.
Fixes #1625
2015-12-03 00:39:00 -07:00
Anthony Fok
00d04774f0
Change most global flags into local ones
...
This is to ensure that only the relevant command-line flags
for a certain Hugo subcommand is shown to the end user,
reducing clutter and improving user experience.
Fixes #1624 - CLI UX: Flags shouldn't be global
2015-12-03 00:36:38 -07:00
Anthony Fok
c9526f6e3f
Revise format for "Unable to locate Config file" error
2015-12-03 00:28:09 -07:00
Bjørn Erik Pedersen
df85e5a0aa
Switch to container-based Travis
2015-12-02 23:52:56 +01:00
Bjørn Erik Pedersen
be28d9d943
Fix some errors with format patterns
...
See #1502
2015-12-02 23:37:40 +01:00
Anthony Fok
f363faadab
Add a number sign "#" before a GitHub issue number
...
to make it more readily recognizable.
2015-12-02 13:11:24 -07:00
Cameron Moore
6812229bb8
Add gh shortcode to docs site
...
The `gh` shortcode has two modes: users and issues. For user mode, pass a list
of `@username` arguments. For the issues/PR mode, pass a list of issue or PR
numbers. PRs link to the "issues/" URL since Github redirects to the correct
URL.
Thanks to @ryanclarke for suggesting an improved template.
2015-12-02 12:18:04 -07:00
Anthony Fok
d48781badf
One more error fix in the server command
...
And some other small code clean-up.
See #1502
2015-12-02 11:56:36 -07:00
Bjørn Erik Pedersen
c5287e7817
Some more error fixes in commands
...
See #1502
2015-12-02 16:27:08 +01:00
Bjørn Erik Pedersen
3f0f7eed68
Improve error handling in commands
...
Cobra, the CLI commander in use in Hugo, has some long awaited improvements in the error handling department.
This enables a more centralized error handling approach.
This commit introduces that by changing all the command funcs to `RunE`:
* The core part of the error logging, usage logging and `os.Exit(-1)` is now performed in one place and that one place only.
* The usage text is now only shown on invalid arguments etc. (user errors)
Fixes #1502
2015-12-02 07:07:05 -07:00