Bjørn Erik Pedersen
87203139c3
cache: Add a simple partitioned lazy cache
2017-05-26 10:42:45 +03:00
Mahmud Ridwan
a91c2705c7
docs: Add furqansoftware.com to the showcase
2017-05-25 14:32:47 +02:00
Albert Nigmatzianov
99412bfe45
docs: Delete brew update
from docs
...
Fix #3518
2017-05-25 13:31:38 +02:00
Albert Nigmatzianov
421a46947a
cmd: Replace flagChanged with pflag.FlagSet.Changed
2017-05-24 10:51:51 +02:00
Chankey Pathak
0a40cb43ea
docs: Add tutswiki.com to the showcase
2017-05-23 20:39:10 +02:00
Bjørn Erik Pedersen
d460159a5f
docs: Regenerate commands docs
...
Closes #3400
2017-05-23 21:01:51 +03:00
Bjørn Erik Pedersen
8b49c3a175
hugolib: Enable leaktest
...
See #3082
2017-05-23 20:40:20 +03:00
Bjørn Erik Pedersen
bcd32f1086
commands: Remove the rlimit tweaking on macOS
...
Fixes #3512
2017-05-23 18:52:00 +03:00
Bjørn Erik Pedersen
62fe640d09
vendor: Update libs
2017-05-23 18:02:36 +03:00
Bjørn Erik Pedersen
fbb78b89df
hugolib: Speed up GetPage
...
When we know to look into the index pages collection, do that:
```
benchmark old ns/op new ns/op delta
BenchmarkGetPage-4 51483 7072 -86.26%
benchmark old allocs new allocs delta
BenchmarkGetPage-4 71 71 +0.00%
benchmark old bytes new bytes delta
BenchmarkGetPage-4 2648 2648 +0.00%
```
This commit also returns an error if .Site.GetPage is called with the regular Page Kind, as that is currently not supported.
Fixes #3503
2017-05-23 15:18:26 +03:00
Bjørn Erik Pedersen
6c560288a6
hugolib: Add BenchmarkGetPage
2017-05-23 12:10:15 +03:00
Bjørn Erik Pedersen
89b85aede1
releaser: Disable flaky test
2017-05-22 23:23:52 +03:00
Cameron Moore
4113693ac1
tpl/cast: Handle template.HTML and friends in ToInt
...
Also add tests for ToInt and ToString.
Resolves #3308
2017-05-22 23:20:53 +03:00
Alexandros
f41f728222
Remove Unmaintaned Frontends from Tools.
...
The unmaintained Rango frontend and the Hugopit "experiment" should be removed from the Hugo Tools/Frontends section of the documentation as they are unusable.
Rango can mess up with other dependencies installed in the Go Path as reported here:
https://github.com/stayradiated/rango/issues/4
Hugopit's developer himself stated that this is an unmaintained experiment and he seemed a bit surprised that it is included in Hugo's documentation over here: https://github.com/sjardim/Hugopit/issues/3
2017-05-22 20:46:18 +02:00
Bjørn Erik Pedersen
8ddc7a5cde
releaser: Prepare repository for 0.22-DEV
...
[ci skip]
2017-05-22 16:18:26 +03:00
Bjørn Erik Pedersen
f63ee6567d
releaser: Add relase notes to /docs for release of 0.21
...
[ci skip]
2017-05-22 16:11:22 +03:00
Bjørn Erik Pedersen
1a965e5d2f
releaser: Bump versions for release of 0.21
...
[ci skip]
2017-05-22 16:09:42 +03:00
Bjørn Erik Pedersen
baa414ae41
releaser: Add a new step
...
When doing it step-by-step, we need to update the version numbers in its own step.
2017-05-22 16:04:40 +03:00
Bjørn Erik Pedersen
cdf32f08c7
releaser: Update ldflags
2017-05-22 12:27:23 +03:00
Bjørn Erik Pedersen
98e333b35c
vendor: Update golang.org/x/sys/unix
...
To hopefully fix a broken Dragonfly build.
2017-05-22 12:27:23 +03:00
Bjørn Erik Pedersen
a00962134a
releaser: Add release notes draft for 0.21
...
* releaser: Add relase notes draft for release of 0.21
[ci skip]
2017-05-22 10:51:11 +03:00
Bjørn Erik Pedersen
a119ef693f
tpl/time: Re-add the time example
2017-05-20 11:41:43 +03:00
Bjørn Erik Pedersen
1f9e8dcc60
tpl: Make the Namespace func signature explicit
...
This makes it cleaner and avoids breaking client code, such as the docs helper JSON generator.
2017-05-20 11:34:38 +03:00
Bjørn Erik Pedersen
ebd636e4d5
releaser: Delay the version bumping
...
So we can do the release notes in its own branch if needed.
2017-05-20 11:11:23 +03:00
Bjørn Erik Pedersen
4d1989d59c
releaser: Fix tag detection for changelog when doing a main release
...
Also improve the changelog slightly.
Fixes #3482
2017-05-20 10:58:08 +03:00
Cameron Moore
a59525b05b
tpl/time: Remove asTime template func mapping
2017-05-20 00:00:20 +03:00
Cameron Moore
3954160a21
tpl/time: Support overlapping namespace and template func
...
Fixes #3421
2017-05-20 00:00:20 +03:00
Bjørn Erik Pedersen
93c5774dd7
tpl/collections: Make IsSet WARNING less chatty
...
Updates #3092
2017-05-19 21:14:37 +03:00
ronen
77d2fe7866
docs: Add ttsreader.com to the showcase
2017-05-19 19:53:12 +02:00
Bjørn Erik Pedersen
405c2f6899
tpl/images: Fix error handling in Config
2017-05-18 23:24:55 +03:00
Cameron Moore
58d4c25e50
tpl/collections: Use Feedback log instead of Error in IsSet
...
Using the Error log will cause Hugo to exit with an error, which could
break site build workflows.
2017-05-18 21:54:42 +03:00
Cameron Moore
38661c17bb
tpl/collections: Log an error on unsupported types in IsSet
...
Unsupported types are currently silently ignored by IsSet. An earlier
attempt was made to solve the issue by returning an error. That attempt
was reverted since it broke some existing themes.
So instead, we'll log an error. Hopefully, people will stop using IsSet
in this way, and we can eventually return an error outright.
Updates #3092
2017-05-18 21:54:42 +03:00
Bjørn Erik Pedersen
42fbded105
docs: Regenerate docs helper
2017-05-18 21:38:16 +03:00
Bjørn Erik Pedersen
10287263f5
output: Fix output format mixup in example
...
See #3481
2017-05-18 21:37:29 +03:00
Munif Tanjim
27e88154af
docs: Fix incorrect path in templates/list
2017-05-18 17:12:23 +02:00
Cameron Moore
f1c29b017b
tpl/collections: Add support for interfaces to intersect
...
Fixes #1952
2017-05-18 10:13:44 +03:00
Cameron Moore
93b3b13867
tpl/lang: Add NumFmt function
...
NumFmt formats a number with a given precision using the requested
decimal, grouping, and negative characters.
Fixes #1444
2017-05-18 09:49:20 +03:00
James
e92ce83d5e
docs: Update references to JSON
...
Looks like this was a bad copy/paste where CSV should've been JSON
2017-05-18 07:55:15 +02:00
Sharon L
4c427f6aaa
docs: Fix minor grammar issue in shortcodes.md
2017-05-18 07:54:10 +02:00
Bjørn Erik Pedersen
e682fcc622
hugolib: Fix RSSLink vs RSS Output Format
...
Fixes #3450
2017-05-17 22:14:31 +03:00
Bjørn Erik Pedersen
b6ea492b7a
tmplimpl: Add support for ellipsed paginator
...
Fixes #3466
2017-05-17 21:47:05 +03:00
Bjørn Erik Pedersen
6e2f2dd8d3
hugolib: Fix output formats override when no outputs definition given
...
A common use case for this is to redefine the built-in output format `RSS` to give it a different URL.
Before this commit, that was not possible without also providing an `outputs` definition.
Fixes #3447
2017-05-17 19:00:15 +03:00
Albert Nigmatzianov
94b5be67fc
commands: Skip .git directories
...
Fix #3468
2017-05-15 14:38:04 +03:00
Gilbert Gilb's
c7646551be
Dockerfile: Remove ENTRYPOINT
...
It's pointless to set `/bin/sh` as entrypoint. `/bin/sh` is already the default command, and on the top of that, setting `/bin/sh` as entrypoint ignores the command.
2017-05-14 09:56:03 +02:00
Bjørn Erik Pedersen
af72db806f
hugolib: Handle shortcode per output format
...
This commit allows shortcode per output format, a typical use case would be the special AMP media tags.
Note that this will only re-render the "overridden" shortcodes and only in pages where these are used, so performance in the normal case should not suffer.
Closes #3220
2017-05-13 22:44:15 +03:00
Bjørn Erik Pedersen
e951d65771
hugolib: Handle any errors in processShortcodes
2017-05-13 22:44:15 +03:00
Bjørn Erik Pedersen
2bcbf10400
hugolib: Prepare render per output format
...
See #3220
2017-05-13 22:44:15 +03:00
Bjørn Erik Pedersen
1e4d082cf5
hubolib: Refactor site rendering with an "output format context"
...
Fixes #3397
2017-05-13 22:44:15 +03:00
Tom Bennet
1d70aa9826
docs: Add carnivorousplants.co.uk to the showcase
2017-05-13 19:39:02 +02:00
luxpir
6fc7337aac
docs: Add worldtowriters.com to the showcase
2017-05-13 12:47:43 +02:00