Bjørn Erik Pedersen [Sun, 6 Mar 2016 15:38:17 +0000 (16:38 +0100)]
doc: Correct Scratch slice example
Bjørn Erik Pedersen [Sun, 6 Mar 2016 15:36:46 +0000 (16:36 +0100)]
doc: Add some Scratch slice samples
Bjørn Erik Pedersen [Sun, 6 Mar 2016 15:33:32 +0000 (16:33 +0100)]
Add some missing resets on rebuild
Fixes #1928
Fixes #1929
Bjørn Erik Pedersen [Sun, 6 Mar 2016 14:44:17 +0000 (15:44 +0100)]
Add list support in Scratch
Bjørn Erik Pedersen [Sun, 6 Mar 2016 13:58:15 +0000 (14:58 +0100)]
Add jsonify template func
Bjørn Erik Pedersen [Sun, 6 Mar 2016 13:10:06 +0000 (14:10 +0100)]
Add json mime extension type
Bjørn Erik Pedersen [Sat, 5 Mar 2016 23:35:35 +0000 (00:35 +0100)]
Make where accept slice
Fixes #1926
Bjørn Erik Pedersen [Sat, 5 Mar 2016 23:41:11 +0000 (00:41 +0100)]
Simplify the IsHome test cases
Bjørn Erik Pedersen [Sat, 5 Mar 2016 19:56:38 +0000 (20:56 +0100)]
Unexport the target handlers
These are of no interest outside the package.
Bjørn Erik Pedersen [Sat, 5 Mar 2016 19:18:17 +0000 (20:18 +0100)]
Allow URL with extension in frontmatter
Fixes #1923
Bjørn Erik Pedersen [Fri, 4 Mar 2016 00:00:41 +0000 (01:00 +0100)]
tpl: Unexport the rest of the internal template funcs
Bjørn Erik Pedersen [Thu, 3 Mar 2016 22:17:10 +0000 (23:17 +0100)]
tpl: Add some dateFormat testcases with both time and date
See #235
Bjørn Erik Pedersen [Thu, 3 Mar 2016 21:01:09 +0000 (22:01 +0100)]
Try both prepped and unprepped taxonomy keys
Fixes #1869
Bjørn Erik Pedersen [Thu, 3 Mar 2016 20:54:23 +0000 (21:54 +0100)]
Prevent capitalized taxonomy labels
Fixes #1880
Bjørn Erik Pedersen [Thu, 3 Mar 2016 20:24:21 +0000 (21:24 +0100)]
tpl: Fix broken chomp test
Bjørn Erik Pedersen [Thu, 3 Mar 2016 18:45:23 +0000 (19:45 +0100)]
tpl: Make chomp return template.HTML
Bjørn Erik Pedersen [Thu, 3 Mar 2016 18:35:04 +0000 (19:35 +0100)]
tpl: Add integration tests for most of the template funcs examples in doc
Bjørn Erik Pedersen [Tue, 1 Mar 2016 15:38:56 +0000 (16:38 +0100)]
Log fsync errors
Bjørn Erik Pedersen [Tue, 1 Mar 2016 12:51:46 +0000 (13:51 +0100)]
Some missing shortcode replacements
See #1904
Bjørn Erik Pedersen [Tue, 1 Mar 2016 10:03:37 +0000 (11:03 +0100)]
Fix shortcode handling in RST
Fixes #1904
Samuel Debruyn [Sun, 28 Feb 2016 19:49:46 +0000 (20:49 +0100)]
Docs: fix typo in tools section
digitalcraftsman [Thu, 25 Feb 2016 12:40:24 +0000 (13:40 +0100)]
Remove superfluous FontAwesome files
Bjørn Erik Pedersen [Sun, 28 Feb 2016 11:15:33 +0000 (12:15 +0100)]
Revert "Create template clone for late template execution"
This reverts commit
93b04e67f633e96484c29158cad00e86abe64c1e.
Bjørn Erik Pedersen [Sun, 28 Feb 2016 10:51:51 +0000 (11:51 +0100)]
Create template clone for late template execution
Fixing some breaking blogs on Go 1.6
Fixes #1879
Bjørn Erik Pedersen [Sat, 27 Feb 2016 22:25:41 +0000 (23:25 +0100)]
Check for the presence of pages before setting dates
See #1903
Bjørn Erik Pedersen [Sat, 27 Feb 2016 22:21:07 +0000 (23:21 +0100)]
Set Date and Lastmod for main home page
Fixes #1903
Bjørn Erik Pedersen [Sat, 27 Feb 2016 17:01:01 +0000 (18:01 +0100)]
Use flagChanged in all places
digitalcraftsman [Sat, 27 Feb 2016 15:51:07 +0000 (16:51 +0100)]
Add template function slice
Bjørn Erik Pedersen [Sat, 27 Feb 2016 15:58:42 +0000 (16:58 +0100)]
Do not try to find available port if set by user
He/she probably really meant it.
Fixes #1901
Thijs de Zoute [Thu, 25 Feb 2016 13:16:09 +0000 (14:16 +0100)]
Press: add "Comparison site built with Hugo"
Bjørn Erik Pedersen [Thu, 25 Feb 2016 20:31:22 +0000 (21:31 +0100)]
Optimize replaceShortcodeTokens
We can of course skip reading the entire byte slice again and again.
This was a slip in the original implementation; functionally the same,
but is slightly faster, esp. for larger data sets with many shortcodes:
```
benchmark old ns/op new ns/op delta
BenchmarkReplaceShortcodeTokens-4 15505 14753 -4.85%
benchmark old allocs new allocs delta
BenchmarkReplaceShortcodeTokens-4 1 1 +0.00%
benchmark old bytes new bytes delta
BenchmarkReplaceShortcodeTokens-4 3072 3072 +0.00%
```
Bjørn Erik Pedersen [Thu, 25 Feb 2016 20:45:13 +0000 (21:45 +0100)]
Enlarge data in BenchmarkReplaceShortcodeTokens
Shekhar Gulati [Thu, 18 Feb 2016 11:40:22 +0000 (17:10 +0530)]
Press: add tutorial written by Shekhar Gulati
Marq Martí [Sat, 20 Feb 2016 16:51:04 +0000 (17:51 +0100)]
Press: add article from sitelabs.es
Akagi201 [Sat, 20 Feb 2016 07:16:14 +0000 (15:16 +0800)]
Docs: fix typo in introduction.md
Wouter Spee [Wed, 17 Feb 2016 14:54:41 +0000 (15:54 +0100)]
Add cdnoverview.com to the showcase
Paul Koppen [Wed, 17 Feb 2016 14:29:58 +0000 (14:29 +0000)]
Docs: remove .Taxonomies from Page variables
The property seems to have never existed on Pages.
Fixes #1865.
Thijs de Zoute [Wed, 17 Feb 2016 12:36:28 +0000 (13:36 +0100)]
Docs: fix small typos in functions.md
Ratson [Wed, 17 Feb 2016 11:12:55 +0000 (19:12 +0800)]
Docs: add "Minify Hugo Generated HTML" to press
Tatsushi Demachi [Sat, 20 Feb 2016 04:54:35 +0000 (13:54 +0900)]
Listen channel before sending values to it
The 'results' channel is not listend before sending error values in a
loop checking IsRenderable or not. This fixes it.
Bjørn Erik Pedersen [Wed, 17 Feb 2016 22:18:34 +0000 (23:18 +0100)]
Go 1.6 is out!
David Roda [Wed, 17 Feb 2016 16:49:38 +0000 (11:49 -0500)]
Close file handle when finished reading file
digitalcraftsman [Tue, 16 Feb 2016 22:14:22 +0000 (23:14 +0100)]
Docs: add hugo-lunr to the tools section
Bjørn Erik Pedersen [Tue, 16 Feb 2016 01:05:59 +0000 (02:05 +0100)]
Remove superfluous Errorf
Bjørn Erik Pedersen [Mon, 15 Feb 2016 23:47:14 +0000 (00:47 +0100)]
Clean up the trim template func test
Bjørn Erik Pedersen [Sun, 14 Feb 2016 14:16:55 +0000 (15:16 +0100)]
Force full rebuild when site config changes
Fixes #1840
Henrique Dias [Sat, 13 Feb 2016 12:46:08 +0000 (12:46 +0000)]
Export MainSite var
Fixes hacdias/caddy-hugo#46
Andrew Langhorn [Sat, 13 Feb 2016 23:27:56 +0000 (23:27 +0000)]
Docs: clarify that Amazon WS is, actually, AWS
Amazon WS is an uncommon way of referring to Amazon Web Services, which
is usually referred to either by its full name, or as AWS.
Gustav Näslund [Sat, 13 Feb 2016 20:57:14 +0000 (21:57 +0100)]
Add gntech.se to the showcase
digitalcraftsman [Sat, 13 Feb 2016 15:41:25 +0000 (16:41 +0100)]
Docs: fix typo in YouTube shortcode description
Derek Perkins [Sat, 13 Feb 2016 09:24:25 +0000 (02:24 -0700)]
Fix spelling and go vet errors
digitalcraftsman [Sat, 13 Feb 2016 11:04:22 +0000 (12:04 +0100)]
Link Gitter as Dev Chat in README
Anthony Fok [Sat, 13 Feb 2016 10:48:51 +0000 (18:48 +0800)]
Restore the wercker status badge to original small size
Fix my brown paper bag bug in commit
a0eec02.
Sorry for not double-checking before pushing!
Darrel Herbst [Sat, 6 Feb 2016 15:09:47 +0000 (10:09 -0500)]
Add documentation for Google Analytics internal template
Fixes #1654
Anthony Fok [Sat, 13 Feb 2016 10:39:38 +0000 (18:39 +0800)]
Set the wercker badge to track the aaster branch only
Cameron Moore [Fri, 12 Feb 2016 22:15:29 +0000 (16:15 -0600)]
Docs: fix Disqus shortname reference
digitalcraftsman [Fri, 12 Feb 2016 20:55:58 +0000 (21:55 +0100)]
docs: Add guideline for showcase additions
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
Anthony Fok [Fri, 12 Feb 2016 10:54:37 +0000 (18:54 +0800)]
Ignore temporary file "4913" created by Vim
Jörgen Nilsson [Thu, 11 Feb 2016 23:03:11 +0000 (00:03 +0100)]
Add jorgennilsson.com to showcases
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.
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
```
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.
shelan [Sun, 7 Feb 2016 22:14:34 +0000 (23:14 +0100)]
Add shelan.org to showcase page
Bjørn Erik Pedersen [Sun, 7 Feb 2016 22:02:46 +0000 (23:02 +0100)]
tpl: Add two more doArithmetic test cases
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
Bjørn Erik Pedersen [Sun, 7 Feb 2016 19:14:24 +0000 (20:14 +0100)]
tpl: Add missing test variants for slicestr
Bjørn Erik Pedersen [Sun, 7 Feb 2016 14:56:56 +0000 (15:56 +0100)]
hugolib: Add test for parseSitemap
Bjørn Erik Pedersen [Sun, 7 Feb 2016 14:22:57 +0000 (15:22 +0100)]
tpl: Add missing substr test variants
Bjørn Erik Pedersen [Sun, 7 Feb 2016 14:15:27 +0000 (15:15 +0100)]
tpl: Add highlight test
Bjørn Erik Pedersen [Sun, 7 Feb 2016 13:58:23 +0000 (14:58 +0100)]
tpl: Add missing base64 tests
Bjørn Erik Pedersen [Sun, 7 Feb 2016 13:51:06 +0000 (14:51 +0100)]
tpl: Add tests for word and rune counting
Bjørn Erik Pedersen [Sun, 7 Feb 2016 13:37:04 +0000 (14:37 +0100)]
tpl: Consolidate and complete the Inflect tests
Bjørn Erik Pedersen [Sun, 7 Feb 2016 13:20:25 +0000 (14:20 +0100)]
Add some missing doArithmetic test cases
Bjørn Erik Pedersen [Sun, 7 Feb 2016 12:43:42 +0000 (13:43 +0100)]
Add missing menu tests
Bjørn Erik Pedersen [Sun, 7 Feb 2016 12:32:08 +0000 (13:32 +0100)]
Add Page 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
Bjørn Erik Pedersen [Sun, 7 Feb 2016 11:34:43 +0000 (12:34 +0100)]
Add menu sort tests
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.
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!
Ray Lai [Sun, 7 Feb 2016 01:04:44 +0000 (09:04 +0800)]
docs: Fix typo: Janapese → Japanese
Bjørn Erik Pedersen [Sun, 7 Feb 2016 01:12:33 +0000 (02:12 +0100)]
Use filepath.Join in locale resource getting
Bjørn Erik Pedersen [Sun, 7 Feb 2016 01:07:58 +0000 (02:07 +0100)]
Minor cleanup of some of the resource getting code
Bjørn Erik Pedersen [Sun, 7 Feb 2016 00:45:37 +0000 (01:45 +0100)]
tpl: Complete coverage for Humanize
Bjørn Erik Pedersen [Sat, 6 Feb 2016 21:53:59 +0000 (22:53 +0100)]
Fix buggy Menu.Limit()
Bjørn Erik Pedersen [Sat, 6 Feb 2016 21:19:58 +0000 (22:19 +0100)]
Remove Printf in test
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.
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"
Bjørn Erik Pedersen [Sat, 6 Feb 2016 18:22:12 +0000 (19:22 +0100)]
Only do one livereload replacement
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.
Bjørn Erik Pedersen [Sat, 6 Feb 2016 17:17:48 +0000 (18:17 +0100)]
transform: Add missing test case for NewEmptyTransforms
Bjørn Erik Pedersen [Sat, 6 Feb 2016 17:01:27 +0000 (18:01 +0100)]
bufferpool: Add test
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
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.
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
Bjørn Erik Pedersen [Sat, 6 Feb 2016 11:29:13 +0000 (12:29 +0100)]
Apply gofmt -s
Bjørn Erik Pedersen [Sat, 6 Feb 2016 11:40:16 +0000 (12:40 +0100)]
Re-export HugoCmd
Caddy depends on it.
Fixes #1827
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
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.
Bjørn Erik Pedersen [Fri, 5 Feb 2016 22:25:07 +0000 (23:25 +0100)]
Order the hugo comand flag vars