brevno-suite/hugo
9 years agoSet the wercker badge to track the aaster branch only
Anthony Fok [Sat, 13 Feb 2016 10:39:38 +0000 (18:39 +0800)]
Set the wercker badge to track the aaster branch only

9 years agoDocs: fix Disqus shortname reference
Cameron Moore [Fri, 12 Feb 2016 22:15:29 +0000 (16:15 -0600)]
Docs: fix Disqus shortname reference

9 years agodocs: Add guideline for showcase additions
digitalcraftsman [Fri, 12 Feb 2016 20:55:58 +0000 (21:55 +0100)]
docs: Add guideline for showcase additions

9 years agoCrop, resize and optimize shelan-tn.png
Anthony Fok [Fri, 12 Feb 2016 16:31:25 +0000 (00:31 +0800)]
Crop, resize and optimize shelan-tn.png

The original image was 2055px × 1252px, which was oversized
and did not fit the required dimension of 600px × 400px
(3:2 aspect ratio).

To fix, the image was cropped and resized to the required dimension,
and was further optimized:

    $ pngquant --nofs -v --speed 1 --quality 65-80 shelan-tn.png
    $ optipng -o7 -zm1-9 shelan-tn-or8.png
    $ mv shelan-tn-or8.png shelan-tn.png

reducing its filesize from 334125 bytes to 26929 bytes.

See #1831

9 years agoIgnore temporary file "4913" created by Vim
Anthony Fok [Fri, 12 Feb 2016 10:54:37 +0000 (18:54 +0800)]
Ignore temporary file "4913" created by Vim

9 years agoAdd jorgennilsson.com to showcases
Jörgen Nilsson [Thu, 11 Feb 2016 23:03:11 +0000 (00:03 +0100)]
Add jorgennilsson.com to showcases

9 years agoFix git commit blog article link
Morton Fox [Tue, 9 Feb 2016 21:08:46 +0000 (16:08 -0500)]
Fix git commit blog article link

The blog article linked in the README misses the trailing forward slash
which produces a 404 error instead of redirecting to the correct URL.

9 years agoPrevent confusing template errors when seq is nil
Bjørn Erik Pedersen [Tue, 9 Feb 2016 18:00:07 +0000 (19:00 +0100)]
Prevent confusing template errors when seq is nil

The common is the `where` func and this:

```
panic: reflect: call of reflect.Value.Type on zero Value [recovered]
panic: reflect: call of reflect.Value.Type on zero Value
```

9 years agoAdd test for Hugo hanging up with empty content
Tatsushi Demachi [Mon, 8 Feb 2016 11:55:19 +0000 (20:55 +0900)]
Add test for Hugo hanging up with empty content

This adds a test for the issue #1797 and its fix in 68e2e63.

9 years agoAdd shelan.org to showcase page
shelan [Sun, 7 Feb 2016 22:14:34 +0000 (23:14 +0100)]
Add shelan.org to showcase page

9 years agotpl: Add two more doArithmetic test cases
Bjørn Erik Pedersen [Sun, 7 Feb 2016 22:02:46 +0000 (23:02 +0100)]
tpl: Add two more doArithmetic test cases

9 years agotpl: Test with nil value in first, last, after and shuffle
Bjørn Erik Pedersen [Sun, 7 Feb 2016 20:16:43 +0000 (21:16 +0100)]
tpl: Test with nil value in first, last, after and shuffle

9 years agotpl: Add missing test variants for slicestr
Bjørn Erik Pedersen [Sun, 7 Feb 2016 19:14:24 +0000 (20:14 +0100)]
tpl: Add missing test variants for slicestr

9 years agohugolib: Add test for parseSitemap
Bjørn Erik Pedersen [Sun, 7 Feb 2016 14:56:56 +0000 (15:56 +0100)]
hugolib: Add test for parseSitemap

9 years agotpl: Add missing substr test variants
Bjørn Erik Pedersen [Sun, 7 Feb 2016 14:22:57 +0000 (15:22 +0100)]
tpl: Add missing substr test variants

9 years agotpl: Add highlight test
Bjørn Erik Pedersen [Sun, 7 Feb 2016 14:15:27 +0000 (15:15 +0100)]
tpl: Add highlight test

9 years agotpl: Add missing base64 tests
Bjørn Erik Pedersen [Sun, 7 Feb 2016 13:58:23 +0000 (14:58 +0100)]
tpl: Add missing base64 tests

9 years agotpl: Add tests for word and rune counting
Bjørn Erik Pedersen [Sun, 7 Feb 2016 13:51:06 +0000 (14:51 +0100)]
tpl: Add tests for word and rune counting

9 years agotpl: Consolidate and complete the Inflect tests
Bjørn Erik Pedersen [Sun, 7 Feb 2016 13:37:04 +0000 (14:37 +0100)]
tpl: Consolidate and complete the Inflect tests

9 years agoAdd some missing doArithmetic test cases
Bjørn Erik Pedersen [Sun, 7 Feb 2016 13:20:25 +0000 (14:20 +0100)]
Add some missing doArithmetic test cases

9 years agoAdd missing menu tests
Bjørn Erik Pedersen [Sun, 7 Feb 2016 12:43:42 +0000 (13:43 +0100)]
Add missing menu tests

9 years agoAdd Page tests for simple methods
Bjørn Erik Pedersen [Sun, 7 Feb 2016 12:32:08 +0000 (13:32 +0100)]
Add Page tests for simple methods

9 years agoAdd Node tests for simple methods
Bjørn Erik Pedersen [Sun, 7 Feb 2016 12:18:16 +0000 (13:18 +0100)]
Add Node tests for simple methods

9 years agoAdd menu sort tests
Bjørn Erik Pedersen [Sun, 7 Feb 2016 11:34:43 +0000 (12:34 +0100)]
Add menu sort tests

9 years agotpl: Unexport all template funcs
Bjørn Erik Pedersen [Sat, 6 Feb 2016 14:53:39 +0000 (15:53 +0100)]
tpl: Unexport all template funcs

There is no good reason to export all the template funcs:

* They're not used outside the templates.
* If usable in other packages, they should be moved (to helpers?)
* They create too broad an interface;
  users of the tpl package don't see the forest for all the trees.

9 years agoAdd a benefit and a simple example to return current year
Rick Cogley [Wed, 3 Feb 2016 13:45:21 +0000 (22:45 +0900)]
Add a benefit and a simple example to return current year

Thanks @bep!

9 years agodocs: Fix typo: Janapese → Japanese
Ray Lai [Sun, 7 Feb 2016 01:04:44 +0000 (09:04 +0800)]
docs: Fix typo: Janapese → Japanese

9 years agoUse filepath.Join in locale resource getting
Bjørn Erik Pedersen [Sun, 7 Feb 2016 01:12:33 +0000 (02:12 +0100)]
Use filepath.Join in locale resource getting

9 years agoMinor cleanup of some of the resource getting code
Bjørn Erik Pedersen [Sun, 7 Feb 2016 01:07:58 +0000 (02:07 +0100)]
Minor cleanup of some of the resource getting code

9 years agotpl: Complete coverage for Humanize
Bjørn Erik Pedersen [Sun, 7 Feb 2016 00:45:37 +0000 (01:45 +0100)]
tpl: Complete coverage for Humanize

9 years agoFix buggy Menu.Limit()
Bjørn Erik Pedersen [Sat, 6 Feb 2016 21:53:59 +0000 (22:53 +0100)]
Fix buggy Menu.Limit()

9 years agoRemove Printf in test
Bjørn Erik Pedersen [Sat, 6 Feb 2016 21:19:58 +0000 (22:19 +0100)]
Remove Printf in test

9 years agoFix buggy Pages.Limit
Bjørn Erik Pedersen [Sat, 6 Feb 2016 21:10:36 +0000 (22:10 +0100)]
Fix buggy Pages.Limit

Also add missing page sort related tests.

9 years agotransform: Complete test statement coverage
Bjørn Erik Pedersen [Sat, 6 Feb 2016 19:50:26 +0000 (20:50 +0100)]
transform: Complete test statement coverage

"coverage: 100.0% of statements"

9 years agoOnly do one livereload replacement
Bjørn Erik Pedersen [Sat, 6 Feb 2016 18:22:12 +0000 (19:22 +0100)]
Only do one livereload replacement

9 years agotransform: Add missing test case in livereloadinject
Bjørn Erik Pedersen [Sat, 6 Feb 2016 17:28:26 +0000 (18:28 +0100)]
transform: Add missing test case in livereloadinject

* Test for both </body> and </BODY>
* This also cosmetically changes the behaviour, as the case of the end body tag is kept.

9 years agotransform: Add missing test case for NewEmptyTransforms
Bjørn Erik Pedersen [Sat, 6 Feb 2016 17:17:48 +0000 (18:17 +0100)]
transform: Add missing test case for NewEmptyTransforms

9 years agobufferpool: Add test
Bjørn Erik Pedersen [Sat, 6 Feb 2016 17:01:27 +0000 (18:01 +0100)]
bufferpool: Add test

9 years agoFix bash-completion for Hugo builder flags such as --theme
Anthony Fok [Sat, 6 Feb 2016 15:31:20 +0000 (23:31 +0800)]
Fix bash-completion for Hugo builder flags such as --theme

by placing their SetAnnotation() calls after their definitions.

See #1824 and 87ca0d0

9 years agotpl: Add humanize func and cleanup lint
Cameron Moore [Fri, 5 Feb 2016 06:05:04 +0000 (00:05 -0600)]
tpl: Add humanize func and cleanup lint

Add humanize (inflect.Humanize) to the template funcMap.  Documentation and
tests are included.

Various code cleanups of the template funcs:

- Break pluralize and singularize out into stand-alone funcs.
- Sort the list of funcMap entries.
- Add some minimal godoc comments to all public funcs.
- Fix some issues found by golint and grind.

9 years agohelpers: Test coverage increase
Gergely Brautigam [Fri, 5 Feb 2016 17:40:49 +0000 (18:40 +0100)]
helpers: Test coverage increase

Started to increase coverage in helpers package, now at 74.9% of statements.

In the process, also a few minor changes have been applied to content.go.

* Content.go has undergone a formatting refactor regarding comments
* Unused function TruncateWords has been removed
* RenderingContext's "mmark" has been changed to use MmarkRender
* Content_test.go added to cover content.go's functionality

9 years agoApply gofmt -s
Bjørn Erik Pedersen [Sat, 6 Feb 2016 11:29:13 +0000 (12:29 +0100)]
Apply gofmt -s

9 years agoRe-export HugoCmd
Bjørn Erik Pedersen [Sat, 6 Feb 2016 11:40:16 +0000 (12:40 +0100)]
Re-export HugoCmd

Caddy depends on it.

Fixes #1827

9 years agoFix README.md to list the correct -ldflags for Go 1.5+
Michael Faille [Thu, 4 Feb 2016 17:25:41 +0000 (12:25 -0500)]
Fix README.md to list the correct -ldflags for Go 1.5+

Also remove extraneous trailing space (whitespace-mode from emacs).

See also #1365

9 years agoOptimize seven recently added Showcase thumbnails
Anthony Fok [Sat, 6 Feb 2016 09:27:06 +0000 (17:27 +0800)]
Optimize seven recently added Showcase thumbnails

Reducing their total size from 960KB to 308KB.

9 years agoOrder the hugo comand flag vars
Bjørn Erik Pedersen [Fri, 5 Feb 2016 22:25:07 +0000 (23:25 +0100)]
Order the hugo comand flag vars

9 years agoUnexport the remaining vars in hugo command
Bjørn Erik Pedersen [Fri, 5 Feb 2016 21:58:17 +0000 (22:58 +0100)]
Unexport the remaining vars in hugo command

9 years agocommands: Get BaseURL from viper in server mode
Cameron Moore [Fri, 5 Feb 2016 21:30:02 +0000 (15:30 -0600)]
commands: Get BaseURL from viper in server mode

Fixes #1821

9 years agoAdd --renderToMemory as an additional Travis build step
Bjørn Erik Pedersen [Fri, 5 Feb 2016 20:32:55 +0000 (21:32 +0100)]
Add --renderToMemory as an additional Travis build step

9 years agoAdd renderToMemory flag
Bjørn Erik Pedersen [Fri, 5 Feb 2016 20:30:48 +0000 (21:30 +0100)]
Add renderToMemory flag

Only useful for benchmark testing as the rendered content will be ... invisible.

9 years agoClean flags
Bjørn Erik Pedersen [Fri, 5 Feb 2016 17:41:40 +0000 (18:41 +0100)]
Clean flags

* Reduce the amount of global flags
* Unexport all flag vars and commands vars
* Some other minor flag cleaning

9 years agoAdd CONTRIBUTING.md
Anthony Fok [Fri, 5 Feb 2016 04:35:42 +0000 (12:35 +0800)]
Add CONTRIBUTING.md

Extracted from the current README.md

9 years agoRevise README.md emphasizing "good commit message"
Anthony Fok [Fri, 5 Feb 2016 04:34:40 +0000 (12:34 +0800)]
Revise README.md emphasizing "good commit message"

plus some trivial changes.

9 years agoUpdate Travis CI status in README.md to track master branch only
Anthony Fok [Fri, 5 Feb 2016 02:15:34 +0000 (10:15 +0800)]
Update Travis CI status in README.md to track master branch only

9 years agoAdded showcase for datapipelinearachitect.com
Vladislav Supalov [Thu, 4 Feb 2016 16:22:20 +0000 (17:22 +0100)]
Added showcase for datapipelinearachitect.com

9 years agoAdded showcase for davidrallen.com
David Allen [Wed, 3 Feb 2016 16:55:32 +0000 (11:55 -0500)]
Added showcase for davidrallen.com

9 years agoFix Hugo hang up with empty content directory
Tatsushi Demachi [Sun, 31 Jan 2016 15:21:12 +0000 (00:21 +0900)]
Fix Hugo hang up with empty content directory

Site.ReadPagesFromSource returns nil chan error value when a site
content directory is empty but its receiver expects to be passed
something error values via the channel.

This fixes it by returning a channel which will be immediately closed.

Fix #1797

9 years agoFixed example and cross-reference in content/variables.md
digitalcraftsman [Mon, 1 Feb 2016 15:52:47 +0000 (16:52 +0100)]
Fixed example and cross-reference in content/variables.md

Fixed a path in a Page Params example to reflect real directory
structure, removed extra quotes from sample code, and fixed link to
Archetypes which read "cross-references" before.

See #1805

9 years agoUpdate lastmod date and screenshot for Rick Cogley site
Rick Cogley [Mon, 1 Feb 2016 12:54:56 +0000 (21:54 +0900)]
Update lastmod date and screenshot for Rick Cogley site

9 years agoRemove destination from config file docs
Cameron Moore [Sat, 30 Jan 2016 03:05:25 +0000 (21:05 -0600)]
Remove destination from config file docs

9 years agoDocs: fix some typos in templates/variables.md
digitalcraftsman [Sat, 30 Jan 2016 10:12:24 +0000 (11:12 +0100)]
Docs: fix some typos in templates/variables.md

9 years agoUse FEEDBACK instead of ERROR for empty home page warning
Anthony Fok [Sat, 30 Jan 2016 09:39:17 +0000 (17:39 +0800)]
Use FEEDBACK instead of ERROR for empty home page warning

jww.ERROR.Println() seems to have become too verbose,
making the warning message intended for new users
a lot less readable.

9 years agoFix a minor typo discovered by Lintian (Debian)
Anthony Fok [Sat, 30 Jan 2016 08:46:48 +0000 (16:46 +0800)]
Fix a minor typo discovered by Lintian (Debian)

9 years agoExpanded the Page Params section in variables.md
Renato Vargas [Fri, 29 Jan 2016 22:43:29 +0000 (16:43 -0600)]
Expanded the Page Params section in variables.md

Expanded on the use of Page Params in the templates/variables.md
documentation. Added sample code for something that keeps coming up on
discuss.github.io

9 years agoProvide more detail on static sync when running with verbose
Steve Francia [Fri, 29 Jan 2016 21:54:33 +0000 (16:54 -0500)]
Provide more detail on static sync when running with verbose

9 years agoAdd autostart option to YouTube shortcode
digitalcraftsman [Sat, 16 Jan 2016 17:49:18 +0000 (18:49 +0100)]
Add autostart option to YouTube shortcode

9 years agoDo not call watchConfig() when not in watch mode
Anthony Fok [Wed, 13 Jan 2016 06:34:29 +0000 (23:34 -0700)]
Do not call watchConfig() when not in watch mode

See #1772

Also, force DisableLiveReload to true when running "hugo --watch"
(build-only non-server mode) to prevent livereload.ForceRefresh(),
which would end up blocking watchConfig() forever, from being called
because livereload.Initialize() is never called in this case.

This fixes the bug where "hugo --watch" could only reload config.toml
once before it gets stuck for good at livereload.ForceRefresh().

This is also consistent with Hugo's existing behaviour:
Non-server "hugo --watch" has never injected livereload.js
since the inception of the "watch" feature in Hugo v0.12.

9 years agoAdd flag --cleanDestinationDir=false to retain prior behavior
Steve Francia [Fri, 29 Jan 2016 21:14:23 +0000 (16:14 -0500)]
Add flag --cleanDestinationDir=false to retain prior behavior

9 years agoMake the watch logger less chatty
Bjørn Erik Pedersen [Thu, 28 Jan 2016 14:31:25 +0000 (15:31 +0100)]
Make the watch logger less chatty

9 years agoMake the DistinctErrorLogger more generic
Bjørn Erik Pedersen [Thu, 28 Jan 2016 13:00:03 +0000 (14:00 +0100)]
Make the DistinctErrorLogger more generic

9 years agoCheck for exported fields in embedded structs
Tatsushi Demachi [Thu, 28 Jan 2016 10:27:35 +0000 (19:27 +0900)]
Check for exported fields in embedded structs

This fixes a exported field check condition in a way described at Go
issue https://golang.org/issue/12367

According to the issue comments, this fix should be safe under Go 1.6.

9 years agoFix hugo benchmark
Bjørn Erik Pedersen [Wed, 27 Jan 2016 21:28:05 +0000 (22:28 +0100)]
Fix hugo benchmark

Appending to the site 13 times doesn't sound realistic.

9 years agoRewrite commentary on static event handling
Steve Francia [Tue, 26 Jan 2016 19:12:18 +0000 (14:12 -0500)]
Rewrite commentary on static event handling

9 years agoPermit directory removal during static sync
Steve Francia [Tue, 26 Jan 2016 19:11:22 +0000 (14:11 -0500)]
Permit directory removal during static sync

9 years agoIgnore .DS_Store changes (thumbnail cache file on mac)
Steve Francia [Tue, 26 Jan 2016 19:10:18 +0000 (14:10 -0500)]
Ignore .DS_Store changes (thumbnail cache file on mac)

9 years agoHandle self rename operations gracefully
Steve Francia [Mon, 25 Jan 2016 19:40:44 +0000 (14:40 -0500)]
Handle self rename operations gracefully

9 years agoStatic file incremental sync improvements
Steve Francia [Wed, 13 Jan 2016 16:42:43 +0000 (11:42 -0500)]
Static file incremental sync improvements
in tandem with Afero improvements

9 years agoHandle remove & rename source operations incrementally
Steve Francia [Mon, 11 Jan 2016 17:06:52 +0000 (12:06 -0500)]
Handle remove & rename source operations incrementally

9 years agoA single file can be replaced in site.Files
Steve Francia [Mon, 11 Jan 2016 15:48:23 +0000 (10:48 -0500)]
A single file can be replaced in site.Files

9 years agoProcess only the source content that has changed
Steve Francia [Fri, 8 Jan 2016 23:37:37 +0000 (18:37 -0500)]
Process only the source content that has changed

9 years agoRead/reread individual source content files
Steve Francia [Fri, 8 Jan 2016 02:48:13 +0000 (21:48 -0500)]
Read/reread individual source content files
next is incremental conversion

9 years agoSeparate handling content, data and template changes
Steve Francia [Tue, 22 Dec 2015 05:10:01 +0000 (00:10 -0500)]
Separate handling content, data and template changes

Data & Templates reading independently
Need to work on page source reading and other source files

9 years agoSeparate reading source and processing source operations
Steve Francia [Tue, 22 Dec 2015 00:47:48 +0000 (19:47 -0500)]
Separate reading source and processing source operations

9 years agoIgnore temp files created by IntelliJ when saving
Steve Francia [Tue, 22 Dec 2015 00:46:12 +0000 (19:46 -0500)]
Ignore temp files created by IntelliJ when saving

9 years agoAdd leepenney.com to showcase page
leepenney [Sun, 24 Jan 2016 16:22:55 +0000 (16:22 +0000)]
Add leepenney.com to showcase page

9 years agoAdd Web Study List to showcase page
Brynjar Harðarson [Thu, 21 Jan 2016 23:35:13 +0000 (23:35 +0000)]
Add Web Study List to showcase page

9 years agoDocs: add Hugopit to tools section
digitalcraftsman [Thu, 21 Jan 2016 13:30:06 +0000 (14:30 +0100)]
Docs: add Hugopit to tools section

9 years agoAdd Rakuten Tech Blog in showcase page
tcnksm [Wed, 20 Jan 2016 08:31:36 +0000 (17:31 +0900)]
Add Rakuten Tech Blog in showcase page

9 years agoadd javaunion in showcase
callmelanmao [Wed, 20 Jan 2016 03:58:35 +0000 (11:58 +0800)]
add javaunion in showcase

9 years agoFix some Go vet errors
Bjørn Erik Pedersen [Fri, 15 Jan 2016 23:28:48 +0000 (00:28 +0100)]
Fix some Go vet errors

9 years agoDocs: Add doc for string and int
Bjørn Erik Pedersen [Fri, 15 Jan 2016 23:06:32 +0000 (00:06 +0100)]
Docs: Add doc for string and int

9 years agoAdd int and string cast template funcs
Bjørn Erik Pedersen [Fri, 15 Jan 2016 22:56:45 +0000 (23:56 +0100)]
Add int and string cast template funcs

9 years agoDocs: Enable plain id anchors
Bjørn Erik Pedersen [Thu, 14 Jan 2016 21:59:38 +0000 (22:59 +0100)]
Docs: Enable plain id anchors

Making it possible to post permanent anchored links to StackExchange etc.

9 years agoAdd one more menu test
Bjørn Erik Pedersen [Thu, 14 Jan 2016 16:30:05 +0000 (17:30 +0100)]
Add one more menu test

See #1774

9 years agoAdd menu test for external URL
Bjørn Erik Pedersen [Thu, 14 Jan 2016 14:14:21 +0000 (15:14 +0100)]
Add menu test for external URL

See #1774

9 years agoDocs: Add missing "-b master" parameter to "git submodule add" command
Anthony Fok [Thu, 14 Jan 2016 08:22:48 +0000 (01:22 -0700)]
Docs: Add missing "-b master" parameter to "git submodule add" command

for correct deployment on GitHub Pages.  Thanks, @adrianmoya!

Fixes #1777

9 years agoUpdate Travis config to Go 1.5.3
Bjørn Erik Pedersen [Wed, 13 Jan 2016 21:43:55 +0000 (22:43 +0100)]
Update Travis config to Go 1.5.3

9 years agoAdd one more temporary template test for linux/arm
Bjørn Erik Pedersen [Wed, 13 Jan 2016 13:26:25 +0000 (14:26 +0100)]
Add one more temporary template test for linux/arm

See #1771

9 years agoAdd temporary template test for linux/arm
Bjørn Erik Pedersen [Wed, 13 Jan 2016 13:09:24 +0000 (14:09 +0100)]
Add temporary template test for linux/arm

See #1771

9 years agoupdate server to match latest afero
Steve Francia [Tue, 12 Jan 2016 02:45:05 +0000 (21:45 -0500)]
update server to match latest afero