brevno-suite/hugo
9 years agoDocument PreserveTaxonomyNames
Cameron Moore [Wed, 9 Dec 2015 16:25:50 +0000 (10:25 -0600)]
Document PreserveTaxonomyNames

Fixes #1648

9 years agoRegenerate the commands section of doc
Anthony Fok [Fri, 11 Dec 2015 16:50:36 +0000 (09:50 -0700)]
Regenerate the commands section of doc

See #1624

9 years agoDocs: remove references to dynamic CMS products
Cameron Moore [Wed, 9 Dec 2015 15:56:49 +0000 (09:56 -0600)]
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

9 years agoDocs: document Node.IsHome
Cameron Moore [Tue, 8 Dec 2015 20:54:05 +0000 (14:54 -0600)]
Docs: document Node.IsHome

9 years agoAdd copyright header to that source files that don’t have one.
Anthony Fok [Thu, 10 Dec 2015 22:19:38 +0000 (15:19 -0700)]
Add copyright header to that source files that don’t have one.

See #1646

9 years agoFix some of the "new site" tests
Steve Francia [Tue, 8 Dec 2015 22:38:26 +0000 (17:38 -0500)]
Fix some of the "new site" tests

9 years agoadd more architectures to .goxc
Steve Francia [Tue, 8 Dec 2015 21:42:12 +0000 (16:42 -0500)]
add more architectures to .goxc

9 years agomove some of the path helper utilities to afero
Steve Francia [Tue, 8 Dec 2015 21:41:36 +0000 (16:41 -0500)]
move some of the path helper utilities to afero
and provide wrappers in Hugo.

9 years agoUpdate "Join Chat" to "Dev Chat"
Steve Francia [Tue, 8 Dec 2015 20:10:53 +0000 (15:10 -0500)]
Update "Join Chat" to "Dev Chat"

9 years agoTurn off failing new site test
Bjørn Erik Pedersen [Tue, 8 Dec 2015 18:25:34 +0000 (19:25 +0100)]
Turn off failing new site test

Until @spf13 gets some free time in his busy calendar.

See #1680

9 years agoAdd boolean value comparison to where tpl function
Tatsushi Demachi [Mon, 7 Dec 2015 20:28:36 +0000 (05:28 +0900)]
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.

9 years agoFix copyright headers in source files
Bjørn Erik Pedersen [Mon, 7 Dec 2015 18:57:01 +0000 (19:57 +0100)]
Fix copyright headers in source files

Still need to add some missing headers and an AUTHORS file.

See #1646

9 years agoSort and remove "" from "Available templates" list
Anthony Fok [Mon, 7 Dec 2015 06:23:54 +0000 (23:23 -0700)]
Sort and remove "" from "Available templates" list

9 years agoRemove transformation of menu URLs
gunnaraasen [Wed, 2 Dec 2015 22:58:54 +0000 (14:58 -0800)]
Remove transformation of menu URLs

 Fixes #1239

9 years agoAdded 'themes' as a default new site directory
inondle [Fri, 4 Dec 2015 01:32:12 +0000 (17:32 -0800)]
Added 'themes' as a default new site directory

Fixes #1507

9 years agoUpdate Travis config to Go 1.5.2
Bjørn Erik Pedersen [Fri, 4 Dec 2015 01:09:03 +0000 (02:09 +0100)]
Update Travis config to Go 1.5.2

9 years agoFix crash with "config", "check" and "benchmark"
Anthony Fok [Thu, 3 Dec 2015 19:02:38 +0000 (12:02 -0700)]
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

9 years agoFix broken Highlight test
Bjørn Erik Pedersen [Thu, 3 Dec 2015 11:37:48 +0000 (12:37 +0100)]
Fix broken Highlight test

9 years agoAdd sanity checks for `hugo import jekyll`
Anthony Fok [Thu, 3 Dec 2015 06:51:48 +0000 (23:51 -0700)]
Add sanity checks for `hugo import jekyll`

Also add `--force` flag copied from `hugo new site`.

Fixes #1625

9 years agoChange most global flags into local ones
Anthony Fok [Wed, 2 Dec 2015 19:00:47 +0000 (12:00 -0700)]
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

9 years agoRevise format for "Unable to locate Config file" error
Anthony Fok [Thu, 3 Dec 2015 07:28:09 +0000 (00:28 -0700)]
Revise format for "Unable to locate Config file" error

9 years agoSwitch to container-based Travis
Bjørn Erik Pedersen [Wed, 2 Dec 2015 22:52:56 +0000 (23:52 +0100)]
Switch to container-based Travis

9 years agoFix some errors with format patterns
Bjørn Erik Pedersen [Wed, 2 Dec 2015 22:37:40 +0000 (23:37 +0100)]
Fix some errors with format patterns

See #1502

9 years agoAdd a number sign "#" before a GitHub issue number
Anthony Fok [Wed, 2 Dec 2015 20:11:24 +0000 (13:11 -0700)]
Add a number sign "#" before a GitHub issue number

to make it more readily recognizable.

9 years agoAdd gh shortcode to docs site
Cameron Moore [Wed, 25 Nov 2015 15:01:22 +0000 (09:01 -0600)]
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.

9 years agoOne more error fix in the server command
Anthony Fok [Wed, 2 Dec 2015 18:56:36 +0000 (11:56 -0700)]
One more error fix in the server command

And some other small code clean-up.

See #1502

9 years agoSome more error fixes in commands
Bjørn Erik Pedersen [Wed, 2 Dec 2015 15:27:08 +0000 (16:27 +0100)]
Some more error fixes in commands

See #1502

9 years agoImprove error handling in commands
Bjørn Erik Pedersen [Wed, 2 Dec 2015 10:42:53 +0000 (11:42 +0100)]
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

9 years agoUpdate external tutorial links in usage.md
tryer3000 [Wed, 2 Dec 2015 09:18:14 +0000 (17:18 +0800)]
Update external tutorial links in usage.md

9 years agoMove `import jekyll` functions to import_jekyll.go
Anthony Fok [Wed, 2 Dec 2015 10:36:18 +0000 (03:36 -0700)]
Move `import jekyll` functions to import_jekyll.go

Also rename import_test.go to import_jekyll_test.go

9 years agoEnable dirname and filename completion for more flags
Anthony Fok [Wed, 2 Dec 2015 09:20:55 +0000 (02:20 -0700)]
Enable dirname and filename completion for more flags

These flags are:

 * --source (-s), --cacheDir, --destination (-d) and --logFile
 * --completionfile and --dir.

9 years agoPrint error when /index.html is zero-length
Anthony Fok [Wed, 2 Dec 2015 04:03:17 +0000 (21:03 -0700)]
Print error when /index.html is zero-length

Also print warning (in verbose mode) for other empty pages.

See #947

9 years agoRun `go fmt hugolib/site.go`
Anthony Fok [Wed, 2 Dec 2015 04:00:59 +0000 (21:00 -0700)]
Run `go fmt hugolib/site.go`

9 years agoBump min_version to 0.15 for `hugo new theme`
Anthony Fok [Tue, 1 Dec 2015 17:25:56 +0000 (10:25 -0700)]
Bump min_version to 0.15 for `hugo new theme`

9 years agoMake noTimes command flag work
Tatsushi Demachi [Tue, 1 Dec 2015 16:48:52 +0000 (01:48 +0900)]
Make noTimes command flag work

Hugo command provides "noTimes" flag but it doesn't affect synced files
timestamp regardless of whether the flag is specified or not.

This fixes it by adding a flag check and overwriting configuration if it
is specified.

Fix #1583

9 years agoCopy static dir files without theme's static dir
Tatsushi Demachi [Tue, 1 Dec 2015 14:53:27 +0000 (23:53 +0900)]
Copy static dir files without theme's static dir

Hugo command doesn't copy site's "static" directory files to "public"
directory if a specified theme doesn't have "static" directory because
theme's "static" directory checking always returns an error.

This fixes it by just showing a warning message about theme's "static"
directory absence and not skipping following processes.

Fix #1655

9 years agoFix typo in "Creating a New Theme"
Takeru Naito [Tue, 1 Dec 2015 07:07:43 +0000 (16:07 +0900)]
Fix typo in "Creating a New Theme"

the the skeleton's ->
the theme skeleton's

9 years agoAdd Draft page variable to docs
David Oliver [Sat, 28 Nov 2015 19:26:01 +0000 (20:26 +0100)]
Add Draft page variable to docs

Also tweaks language used in page params sentence.

9 years agoUse .Site.Pages in the documentation examples instead of .Site.Recent
Gustav Näslund [Mon, 30 Nov 2015 19:52:30 +0000 (20:52 +0100)]
Use .Site.Pages in the documentation examples instead of .Site.Recent

9 years agoAdd Camunda blog and docs showcases
Valentin Vago [Mon, 30 Nov 2015 09:41:19 +0000 (10:41 +0100)]
Add Camunda blog and docs showcases

9 years agoChange plainIdAnchors to plainIDAnchors in docs
Anthony Fok [Mon, 30 Nov 2015 07:19:04 +0000 (00:19 -0700)]
Change plainIdAnchors to plainIDAnchors in docs

Also add a note saying that these blackfriday flags are
very case-sensitive as of Hugo v0.15.

Thanks to @ryanclarke for noticing the change in behaviour.

See also spf13/hugo@5838420

9 years agoCopyedit the shortcodes documentation some more
Anthony Fok [Mon, 30 Nov 2015 06:23:25 +0000 (23:23 -0700)]
Copyedit the shortcodes documentation some more

9 years agoDocs: improve shortcodes page
digitalcraftsman [Tue, 24 Nov 2015 21:22:58 +0000 (22:22 +0100)]
Docs: improve shortcodes page

See #1613

9 years agoRemove an erroneous "$" prompt in quickstart guide
Anthony Fok [Mon, 30 Nov 2015 04:43:49 +0000 (21:43 -0700)]
Remove an erroneous "$" prompt in quickstart guide

9 years agoAdded the command in the documentation.
Doug Horner [Mon, 30 Nov 2015 02:40:16 +0000 (21:40 -0500)]
Added the command in the documentation.

It was confusing that the command was not in step 5, while it is in step 6.

9 years agoSupport setting target directory in `hugo gen man`
Anthony Fok [Sat, 28 Nov 2015 14:32:02 +0000 (07:32 -0700)]
Support setting target directory in `hugo gen man`

Fixes #1627

9 years agoUpdate for version 0.16
Michael Henderson [Sat, 28 Nov 2015 04:44:10 +0000 (22:44 -0600)]
Update for version 0.16

Updated output of commands. Removed unneeded flags such as
--watch. Didn't resist the temptation to reword some parts.

9 years agoDocs: remove note about config changes and manual livereload
digitalcraftsman [Fri, 27 Nov 2015 14:33:16 +0000 (15:33 +0100)]
Docs: remove note about config changes and manual livereload

9 years agoDocs: improve usage.md
digitalcraftsman [Fri, 27 Nov 2015 14:30:16 +0000 (15:30 +0100)]
Docs: improve usage.md

9 years agoDocs: improve quickstart guide
digitalcraftsman [Fri, 27 Nov 2015 14:21:22 +0000 (15:21 +0100)]
Docs: improve quickstart guide

Fixes #1553

9 years agoUpdate press.md
ChristophFloat [Tue, 24 Nov 2015 11:10:36 +0000 (12:10 +0100)]
Update press.md

Include my Blogpost about using Hugo together with git to automatically
generate the site when you push it into your Repo using a Git Hook (German).

9 years agoAdd note in doc about Jekyll import
Bjørn Erik Pedersen [Wed, 25 Nov 2015 22:18:20 +0000 (23:18 +0100)]
Add note in doc about Jekyll import

9 years agoRegenerate the commands section of doc
Bjørn Erik Pedersen [Wed, 25 Nov 2015 22:11:16 +0000 (23:11 +0100)]
Regenerate the commands section of doc

9 years agoVersion bump to 0.16-DEV
Steve Francia [Wed, 25 Nov 2015 14:49:03 +0000 (09:49 -0500)]
Version bump to 0.16-DEV

9 years agoversion bump to v0.15 v0.15
Steve Francia [Wed, 25 Nov 2015 14:33:53 +0000 (09:33 -0500)]
version bump to v0.15

9 years agoUpdate license file in the docs/website to apache
Steve Francia [Wed, 25 Nov 2015 13:33:38 +0000 (08:33 -0500)]
Update license file in the docs/website to apache

9 years agoUpdate release notes with additional new features
Cameron Moore [Wed, 25 Nov 2015 00:30:05 +0000 (18:30 -0600)]
Update release notes with additional new features

9 years agoUpdate and reorganize 0.15 release notes
Steve Francia [Tue, 24 Nov 2015 21:51:01 +0000 (16:51 -0500)]
Update and reorganize 0.15 release notes

9 years agoMake the release note about renderToDisk more consise
Bjørn Erik Pedersen [Tue, 24 Nov 2015 20:13:02 +0000 (21:13 +0100)]
Make the release note about renderToDisk more consise

See #1611

9 years agoUpdate release notes
digitalcraftsman [Tue, 24 Nov 2015 19:45:54 +0000 (20:45 +0100)]
Update release notes

9 years agoAdd IsNamedParams property in shortcodes
digitalcraftsman [Mon, 23 Nov 2015 18:32:03 +0000 (19:32 +0100)]
Add IsNamedParams property in shortcodes

9 years agoAdd documentation for built-in shortcodes
digitalcraftsman [Fri, 20 Nov 2015 19:31:57 +0000 (20:31 +0100)]
Add documentation for built-in shortcodes

Fixes #1576

9 years agoAdd shortcode for tweets
digitalcraftsman [Fri, 20 Nov 2015 18:44:05 +0000 (19:44 +0100)]
Add shortcode for tweets

9 years agoAdd shortcode for github gists
digitalcraftsman [Fri, 20 Nov 2015 17:38:56 +0000 (18:38 +0100)]
Add shortcode for github gists

9 years agoAdd shortcode for vimeo
digitalcraftsman [Fri, 20 Nov 2015 17:33:46 +0000 (18:33 +0100)]
Add shortcode for vimeo

9 years agoAdd shortcode for youtube
digitalcraftsman [Fri, 20 Nov 2015 17:31:37 +0000 (18:31 +0100)]
Add shortcode for youtube

9 years agoAdd shortcode for speakerdeck
digitalcraftsman [Fri, 20 Nov 2015 17:13:43 +0000 (18:13 +0100)]
Add shortcode for speakerdeck

9 years agoUpdate shortcode docs with .IsNamedParams
Cameron Moore [Tue, 24 Nov 2015 05:02:33 +0000 (23:02 -0600)]
Update shortcode docs with .IsNamedParams

There are some minor cleanups included here as well.

Fixes #1607

9 years agoChange the license to Apache 2.0
Steve Francia [Tue, 24 Nov 2015 03:16:36 +0000 (22:16 -0500)]
Change the license to Apache 2.0

9 years agoSimplify ExtractRootPaths
Bjørn Erik Pedersen [Mon, 23 Nov 2015 21:35:54 +0000 (22:35 +0100)]
Simplify ExtractRootPaths

9 years agoAdd PygmentsOptions option
Andrew Brampton [Thu, 9 Jul 2015 01:51:54 +0000 (18:51 -0700)]
Add PygmentsOptions option

This allows default pygments settings to be used, if none are explictly set per shortcode.

Fixes #1260

9 years agoPermalink on Node and Page should be of string
Kato Kazuyoshi [Sat, 17 Oct 2015 03:45:49 +0000 (20:45 -0700)]
Permalink on Node and Page should be of string

This change fixes #1384.

9 years agoMove blackfriday site-wide config loading to NewBlackFriday()
Marek Janda [Tue, 3 Nov 2015 19:09:34 +0000 (20:09 +0100)]
Move blackfriday site-wide config loading to NewBlackFriday()

9 years agoAdd shortcode IsNamedParams property
Cameron Moore [Sat, 21 Nov 2015 00:59:54 +0000 (18:59 -0600)]
Add shortcode IsNamedParams property

It would be helpful to know whether a shortcode was called with positional or
named parameters.  This commit adds a boolean `IsNamedParams` property to the
`ShortcodeWithPage` struct.

9 years agoRestructure the gen commands
Bjørn Erik Pedersen [Mon, 23 Nov 2015 15:51:12 +0000 (16:51 +0100)]
Restructure the gen commands

Fixes #1603

9 years agoImprove "watching for ..." logging
Bjørn Erik Pedersen [Mon, 23 Nov 2015 15:32:06 +0000 (16:32 +0100)]
Improve "watching for ..." logging

9 years agoAdd commands/genman.go to autogenerate man pages
Anthony Fok [Sun, 22 Nov 2015 16:19:54 +0000 (09:19 -0700)]
Add commands/genman.go to autogenerate man pages

Fixes #1369

9 years agoFix missing word in code comment (my own fault)
Anthony Fok [Sun, 22 Nov 2015 16:40:22 +0000 (09:40 -0700)]
Fix missing word in code comment (my own fault)

9 years agoAvoid multiple locks for shortcode template
Bjørn Erik Pedersen [Sat, 21 Nov 2015 22:29:58 +0000 (23:29 +0100)]
Avoid multiple locks for shortcode template

Fixes #1600

9 years agoImprove RW-locking of template in shortcode handling
Bjørn Erik Pedersen [Sat, 21 Nov 2015 20:57:26 +0000 (21:57 +0100)]
Improve RW-locking of template in shortcode handling

See #1599

9 years agoFix recently introduced new data race in the shortcode handling
Bjørn Erik Pedersen [Sat, 21 Nov 2015 19:03:18 +0000 (20:03 +0100)]
Fix recently introduced new data race in the shortcode handling

Fixes #1599

9 years agoCopyedit long help message in commands/server.go
Anthony Fok [Sat, 21 Nov 2015 13:31:10 +0000 (06:31 -0700)]
Copyedit long help message in commands/server.go

9 years agoAdd RSSLink to SiteInfo
Cameron Moore [Wed, 11 Nov 2015 03:31:52 +0000 (21:31 -0600)]
Add RSSLink to SiteInfo

9 years agoApply absURL on social tag urls
Marek Janda [Mon, 2 Nov 2015 19:49:15 +0000 (20:49 +0100)]
Apply absURL on social tag urls

9 years agoReturn error if shortcode template.Tree is nil
Cameron Moore [Sun, 15 Nov 2015 19:53:12 +0000 (13:53 -0600)]
Return error if shortcode template.Tree is nil

If a shortcode template fails to compile, the template will be non-nil, but
template.Tree will be nil which caused a panic.

9 years agodocs: Change "Github" to "GitHub"
Anthony Fok [Fri, 20 Nov 2015 21:24:22 +0000 (14:24 -0700)]
docs: Change "Github" to "GitHub"

9 years agodocs: Optimize a few large showcase thumbnail PNGs
Anthony Fok [Fri, 20 Nov 2015 21:02:07 +0000 (14:02 -0700)]
docs: Optimize a few large showcase thumbnail PNGs

using pngquant and OptiPNG.  Result:

    arresteddevops-tn.png   154734 bytes → 47184 bytes
    maximeguitare-tn.png     95571 bytes → 24183 bytes
    ridingbytes-tn.png      262222 bytes → 66491 bytes

And a small one to an even smaller one too:

    goin5minutes-tn.png      26220 bytes →  9297 bytes

9 years agoAdd Go in 5 minutes to the showcases
digitalcraftsman [Fri, 20 Nov 2015 19:53:05 +0000 (20:53 +0100)]
Add Go in 5 minutes to the showcases

9 years agoDocs: fix typo in template function section
digitalcraftsman [Fri, 20 Nov 2015 19:41:16 +0000 (20:41 +0100)]
Docs: fix typo in template function section

9 years agoAdd SafeJS template function
Cameron Moore [Sun, 15 Nov 2015 20:30:57 +0000 (14:30 -0600)]
Add SafeJS template function

This commit adds a SafeJS template function.  Tests and documentation are
included.

Fixes #1579

9 years agoAdd increased time.Time support to the 0.15 release notes
Bjørn Erik Pedersen [Fri, 20 Nov 2015 18:18:38 +0000 (19:18 +0100)]
Add increased time.Time support to the 0.15 release notes

9 years agoUpdate Travis 1.4.2 > 1.4.3
Bjørn Erik Pedersen [Fri, 20 Nov 2015 18:16:13 +0000 (19:16 +0100)]
Update Travis 1.4.2 > 1.4.3

9 years agofix broken image in showcase
Steve Francia [Fri, 20 Nov 2015 15:26:21 +0000 (10:26 -0500)]
fix broken image in showcase

9 years agofixed documentation link
kmonsoor [Thu, 19 Nov 2015 23:24:41 +0000 (05:24 +0600)]
fixed documentation link

9 years agoAdd Arrested DevOps site to Showcase
Matt Stratton [Fri, 20 Nov 2015 07:49:09 +0000 (01:49 -0600)]
Add Arrested DevOps site to Showcase

9 years agoHugo server watch by default
Steve Francia [Fri, 20 Nov 2015 15:13:03 +0000 (10:13 -0500)]
Hugo server watch by default

9 years agoAdd time.Time support in ge, gt, le, lt
Bjørn Erik Pedersen [Fri, 20 Nov 2015 10:53:25 +0000 (11:53 +0100)]
Add time.Time support in ge, gt, le, lt

Fixes #1593

9 years agoRemove some superficial tests
Bjørn Erik Pedersen [Thu, 19 Nov 2015 19:27:02 +0000 (20:27 +0100)]
Remove some superficial tests

9 years agoRevert "Disable render-to-memory on Windows"
Bjørn Erik Pedersen [Thu, 19 Nov 2015 18:48:40 +0000 (19:48 +0100)]
Revert "Disable render-to-memory on Windows"

This reverts commit 91e0c2b1feb2a7a1b074784a41249139b2fae975.

This should now work.

9 years agoDisable render-to-memory on Windows
Bjørn Erik Pedersen [Wed, 18 Nov 2015 22:10:56 +0000 (23:10 +0100)]
Disable render-to-memory on Windows

See #1586