hugoreleaser [Fri, 1 Feb 2019 09:31:43 +0000 (09:31 +0000)]
releaser: Add release notes draft for 0.54.0
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Fri, 1 Feb 2019 09:09:14 +0000 (10:09 +0100)]
releaser: Adjust patch logic
See #5639
Bjørn Erik Pedersen [Fri, 1 Feb 2019 08:44:12 +0000 (09:44 +0100)]
common/hugo: Use official semver even for main releases
Closes #5639
Bjørn Erik Pedersen [Fri, 1 Feb 2019 08:08:24 +0000 (09:08 +0100)]
Bjørn Erik Pedersen [Fri, 1 Feb 2019 08:08:24 +0000 (09:08 +0100)]
Squashed 'docs/' changes from
49809a038..
4f4d1f48c
4f4d1f48c Merge commit '
ccb3ee5c57a00d5d32c53c882cf9893181a6ec10'
ccb3ee5c5 Squashed 'themes/gohugoioTheme/' changes from
dafc91ff1..
042112e2d
git-subtree-dir: docs
git-subtree-split:
4f4d1f48cd3da268c108f1ea6c204dd30f516bb1
Bjørn Erik Pedersen [Fri, 1 Feb 2019 08:01:04 +0000 (09:01 +0100)]
Bjørn Erik Pedersen [Fri, 1 Feb 2019 08:01:04 +0000 (09:01 +0100)]
Squashed 'docs/' changes from
785e375f..
49809a03
49809a03 Merge commit '
20a631b4964fc0ab9137cce1e41774cbc17de044'
20a631b4 Squashed 'themes/gohugoioTheme/' changes from
b8202f539..
dafc91ff1
8b58f565 Re-generate CLI docs
4653a724 Add Netlify deployment badge
2d6246bc Remove some deprecated site variables
e6777153 Improve Algolia Search Display Styling
1570999f Add missing "." in front of gitlab-ci.yaml example
b922ae7d This adds documentation to the new configDir/Environment logic from .53 (#729)
7cff379f Correctly escape multi-word taxonomy terms in example
2dfeeda4 fix typo by removing stray paren
0870bd9a Fix typo in `paginate` description
91e8be85 Fixes https://github.com/gohugoio/hugo/issues/5609
c1db65ec Make the dummy URL more obvious
b4589ff0 Fix a link
b73dcb9a Consistently use "posts" as section name in examples
7a56abbc Format definitions
a9c6fd9b Minor clarification over the last commit
5c86bdc8 Add alternative instructions for Quick Start for non-git users
dafe7ee9 Add Visual Studio Code plug-ins
110ed19e Update HUGO_VERSION
2abd031a Update page.md
b332f7b9 Update page.md
f5a8c9d4 Update static-files.md
6d0c155c Add note about relative protocol URLs
a13751ac Theme Warning: Remove note about unquoted URLs
4c8f7d68 Incorporate feedback
6f2b9cf0 Update Creating Themes Warning
40d88d98 Fix ToC example to use binary true/false
4a11f3f1 Fix typo
2dbfc0a4 Fix a typo in taxonomies
d63790ef Do not mark UndocumentedFeature issues as stale
d7aff095 Regenerate docs.json
71c0826f Update transform.Unmarshal.md
git-subtree-dir: docs
git-subtree-split:
49809a038b2691637bab7f3f2e385dde654a88b8
Bjørn Erik Pedersen [Fri, 1 Feb 2019 07:54:30 +0000 (08:54 +0100)]
tpl/data: Adjust tests
See #5643
Anthony Fok [Mon, 28 Jan 2019 23:27:43 +0000 (16:27 -0700)]
tpl/data: Prevent getJSON and getCSV fetch failure from aborting build
Fixes #5643
Bjørn Erik Pedersen [Fri, 1 Feb 2019 07:40:53 +0000 (08:40 +0100)]
commands: Add test for --configDir
See #5662
Bjørn Erik Pedersen [Fri, 1 Feb 2019 06:45:35 +0000 (07:45 +0100)]
Ignore unknown config files in config dir
Swap files etc.
Fixes #5646
Anton Harniakou [Thu, 31 Jan 2019 12:06:18 +0000 (15:06 +0300)]
Store supported config formats in a variable
Bjørn Erik Pedersen [Thu, 31 Jan 2019 10:53:21 +0000 (11:53 +0100)]
Fix some inline shortcode issues
Fixes #5645
Fixes #5653
Bjørn Erik Pedersen [Thu, 31 Jan 2019 10:35:27 +0000 (11:35 +0100)]
Bump to Go 1.11.5
Fixes #5654
Bjørn Erik Pedersen [Wed, 30 Jan 2019 08:35:55 +0000 (09:35 +0100)]
Update Afero
Fixes #5650
Anthony Fok [Tue, 29 Jan 2019 20:03:42 +0000 (13:03 -0700)]
hugolib: Expand TestPageWithEmoji to cover '+', '-' and '_' too
See #5635 and commit
3038464e
Anthony Fok [Tue, 29 Jan 2019 12:38:36 +0000 (05:38 -0700)]
Accept hyphen and plus sign in emoji detection
Fixes #5635
Elliot Murphy [Fri, 25 Jan 2019 04:19:59 +0000 (23:19 -0500)]
Fix OpenGraph image fallback to site params
Signed-off-by: Elliot Murphy <statik@users.noreply.github.com>
Anton Harniakou [Tue, 15 Jan 2019 12:41:54 +0000 (15:41 +0300)]
Support numeric sort in ByParam
With this commit ByParam takes into account a type of a value under a
key. If both values are numeric then they're coerced into float64 and
then get compared.
If any value isn't numeric, for example it's nil or string, then both
values coerced into string and get compared as strings
(lexicographicaly)
Nil values are always sent to the end.
Numeric values confirm to any type listed below:
uint8, uint16, uint32, uint64, int, int8, int16, int32, int64, float32, float64
Closes #5305
Bjørn Erik Pedersen [Fri, 18 Jan 2019 17:48:19 +0000 (17:48 +0000)]
Fix Params case handling in the new site global
Fixes #5615
Anton Harniakou [Sun, 13 Jan 2019 09:44:38 +0000 (12:44 +0300)]
Make hugo server -t work again
This commit solves an issue where hugo would ignore the cli -t flag
and only use a theme defined in config.toml.
Also allow -t flag to accept a string slice.
Closes #5569
Closes #5061
Related #4868
Anthony Fok [Thu, 10 Jan 2019 22:57:30 +0000 (15:57 -0700)]
Add configFile(s) back to the watch list after RENAME event too
Alleviates #5205
mywaiting [Thu, 10 Jan 2019 17:24:38 +0000 (01:24 +0800)]
Remove historical rssURI config
Anton Harniakou [Mon, 7 Jan 2019 16:25:27 +0000 (19:25 +0300)]
Use subtests with server_test.go
Use Golang's subtests to provide a convenient way
to run specific tests.
Example:
go test -run=TestFixURL/Basic_production
Bjørn Erik Pedersen [Wed, 2 Jan 2019 10:58:32 +0000 (11:58 +0100)]
resources: Move resource interfaces into its own package
Bjørn Erik Pedersen [Wed, 2 Jan 2019 09:36:12 +0000 (10:36 +0100)]
resource: Move resource processors into sub-packages
Marc Robinson [Tue, 1 Jan 2019 22:27:56 +0000 (17:27 -0500)]
Update _index.md
Corrects misspelling of sync (synch)
Bjørn Erik Pedersen [Sat, 29 Dec 2018 09:35:46 +0000 (10:35 +0100)]
hugolib: Restore 0.48 slash handling in taxonomies
Fixes #5571
Bjørn Erik Pedersen [Sat, 29 Dec 2018 09:14:37 +0000 (10:14 +0100)]
Revert " Fix handling of taxonomy terms containing slashes"
See #4090
See #5571
This reverts commit
fff132537b4094221f4f099e2251f3cda613060f.
Bjørn Erik Pedersen [Sun, 30 Dec 2018 16:07:31 +0000 (17:07 +0100)]
Update go.sum
Bjørn Erik Pedersen [Sat, 29 Dec 2018 09:00:17 +0000 (10:00 +0100)]
Revert "hugolib: Restore taxonomy term path separation"
See #5571
This reverts commit
9ce0a1fb7011bd75eb0e2262e35354c49ce98ac5.
Cameron Moore [Fri, 28 Dec 2018 09:41:46 +0000 (03:41 -0600)]
tpl: Fix reflect
Fixes #5564
Bjørn Erik Pedersen [Thu, 27 Dec 2018 11:05:42 +0000 (12:05 +0100)]
cache/namedmemcache: Fix data race
Bjørn Erik Pedersen [Thu, 27 Dec 2018 09:58:34 +0000 (10:58 +0100)]
Update Chroma
Fixes #4993
Bjørn Erik Pedersen [Thu, 27 Dec 2018 09:08:44 +0000 (10:08 +0100)]
Make docshelper run again
Fixes #5568
Bjørn Erik Pedersen [Wed, 26 Dec 2018 10:31:58 +0000 (11:31 +0100)]
releaser: Use Git short commit in release binaries
Fixes #5562
Bjørn Erik Pedersen [Wed, 26 Dec 2018 10:30:05 +0000 (11:30 +0100)]
releaser: Bump Goreleaser version
Bjørn Erik Pedersen [Wed, 26 Dec 2018 09:27:54 +0000 (10:27 +0100)]
Bjørn Erik Pedersen [Wed, 26 Dec 2018 09:27:12 +0000 (10:27 +0100)]
Squashed 'docs/' changes from
bd91d1cfd..
785e375f5
785e375f5 Change 'my-another-post' to 'my-other-post'
ba9a69d25 Update reflect.IsSlice.md
806344258 Update reflect.IsMap.md
757c0dafa Update index.md
d3f20a2d5 Update index.md
9952e72a0 Formatting
70458ccf2 Formatting
7e0dd3969 Merge branch 'config-dir'
06a5c11fc Release 0.53
01c00229f releaser: Prepare repository for 0.54-DEV
29b223f78 releaser: Add release notes to /docs for release of 0.53
4f61d1194 releaser: Bump versions for release of 0.53
320a0ac68 Refactor config below /config
ec16b611e docs: Adjust CSV example
cecf97dfc Rename CSV option from comma to delimiter
18d06df58 docs: Document transform.Unmarshal
fdace78b5 docs: Regenerate CLI docs
b8f84ac59 hugolib: Add .Name as a shortcode variable
6612dd1b8 Merge commit '
5a83bf314f4c0ce1d61341e0a1df21c9998e8154'
9b211089f docs: Regenerate CLI docs
9af46af3c Merge commit '
eb16165694f868d73e57b6aed5c26ba5e98229de'
12f46f356 tpl: Add reflect namespace
git-subtree-dir: docs
git-subtree-split:
785e375f577394c6f782ef51796e2efe88d52cbb
hugoreleaser [Mon, 24 Dec 2018 08:26:54 +0000 (08:26 +0000)]
releaser: Prepare repository for 0.54-DEV
[ci skip]
hugoreleaser [Mon, 24 Dec 2018 08:24:42 +0000 (08:24 +0000)]
releaser: Add release notes to /docs for release of 0.53
[ci skip]
hugoreleaser [Mon, 24 Dec 2018 08:24:42 +0000 (08:24 +0000)]
releaser: Bump versions for release of 0.53
[ci skip]
Bjørn Erik Pedersen [Mon, 24 Dec 2018 08:20:09 +0000 (09:20 +0100)]
release: Fix goreleaser config
hugoreleaser [Mon, 24 Dec 2018 07:16:18 +0000 (07:16 +0000)]
Release 0.53
Bjørn Erik Pedersen [Sun, 23 Dec 2018 20:34:17 +0000 (21:34 +0100)]
tpl/transform: Include options in cache key
See #5555
Bjørn Erik Pedersen [Sun, 23 Dec 2018 20:12:41 +0000 (21:12 +0100)]
docs: Adjust CSV example
See #5555
Bjørn Erik Pedersen [Sun, 23 Dec 2018 20:08:12 +0000 (21:08 +0100)]
Rename CSV option from comma to delimiter
See #5555
Bjørn Erik Pedersen [Sun, 23 Dec 2018 18:43:17 +0000 (19:43 +0100)]
docs: Document transform.Unmarshal
Fixes #5556
Bjørn Erik Pedersen [Sun, 23 Dec 2018 18:42:51 +0000 (19:42 +0100)]
hugolib: Adjust test
See #5544
Bjørn Erik Pedersen [Sun, 23 Dec 2018 18:05:40 +0000 (19:05 +0100)]
docs: Regenerate CLI docs
Fixes #5544
Bjørn Erik Pedersen [Sun, 23 Dec 2018 15:43:04 +0000 (16:43 +0100)]
tpl/transform: Simplify transform.Unmarshal func
See #5428
Bjørn Erik Pedersen [Sun, 23 Dec 2018 09:40:32 +0000 (10:40 +0100)]
Add CSV support to transform.Unmarshal
Fixes #5555
Bjørn Erik Pedersen [Fri, 21 Dec 2018 15:21:13 +0000 (16:21 +0100)]
tpl/transform: Add transform.Unmarshal func
Fixes #5428
Bjørn Erik Pedersen [Fri, 21 Dec 2018 09:05:57 +0000 (10:05 +0100)]
Prevent resource publishing for transformed inline resources
That is, if only `.Content` is accessed.
This means that, for a transformed resource to be published to `/public`, you need to access either `.RelPermalink` or `Permalink`.
Fixes #4944
Bjørn Erik Pedersen [Fri, 21 Dec 2018 08:51:15 +0000 (09:51 +0100)]
hugolib: Add .Name as a shortcode variable
Fixes #5546
Bjørn Erik Pedersen [Fri, 21 Dec 2018 08:45:41 +0000 (09:45 +0100)]
Squashed 'docs/' changes from
d1cf9adc4..
bd91d1cfd
bd91d1cfd Fix typo
0d45ea9cf Fix order of arguments in another strings.TrimLeft example
0982f65c1 Fix the order of arguments to strings.TrimRight
f1f9b7cd6 Arguments in example
5d9c7327f Fix shortcode example escape chars
git-subtree-dir: docs
git-subtree-split:
bd91d1cfddf87fa693c1e2e7a2de555d2cee19f3
Bjørn Erik Pedersen [Fri, 21 Dec 2018 08:45:41 +0000 (09:45 +0100)]
Cameron Moore [Fri, 21 Dec 2018 08:42:37 +0000 (02:42 -0600)]
hugolib: Improve logic of output path trimming
Fixes #4666
Anthony Fok [Fri, 21 Dec 2018 04:46:47 +0000 (21:46 -0700)]
snap: Revert build-snap to 1.11/stable channel for go
This is to fix the following snap build error:
Failed to install or refresh a snap: 'go' does not exist
or is not available on the desired channel '1.11.4/stable'.
Use `snap info go` to get a list of channels the snap is available on.
`snap info go` reveals that the '1.11/stable' channel automatically
follows the latest minor point release as it becomes available.
Bjørn Erik Pedersen [Thu, 20 Dec 2018 19:55:26 +0000 (20:55 +0100)]
commands: Remove the benchmark command
It's not particulary useful, and when we start to get bug reports about it, it is easier to remove it.
Closes #5543
Bjørn Erik Pedersen [Mon, 17 Dec 2018 20:03:23 +0000 (21:03 +0100)]
Move the emoji parsing to pageparser
This avoids double parsing the page content when `enableEmoji=true`.
This commit also adds some general improvements to the parser, making it in general much faster:
```bash
benchmark old ns/op new ns/op delta
BenchmarkShortcodeLexer-4 90258 101730 +12.71%
BenchmarkParse-4 148940 15037 -89.90%
benchmark old allocs new allocs delta
BenchmarkShortcodeLexer-4 456 700 +53.51%
BenchmarkParse-4 28 33 +17.86%
benchmark old bytes new bytes delta
BenchmarkShortcodeLexer-4 69875 81014 +15.94%
BenchmarkParse-4 8128 8304 +2.17%
```
Running some site benchmarks with Emoji support turned on:
```bash
benchmark old ns/op new ns/op delta
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=5000,tags_per_page=5,shortcodes,render-4
924556797 818115620 -11.51%
benchmark old allocs new allocs delta
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=5000,tags_per_page=5,shortcodes,render-4
4112613 4133787 +0.51%
benchmark old bytes new bytes delta
BenchmarkSiteBuilding/TOML,num_langs=3,num_pages=5000,tags_per_page=5,shortcodes,render-4
426982864 424363832 -0.61%
```
Fixes #5534
Bjørn Erik Pedersen [Mon, 17 Dec 2018 19:54:06 +0000 (20:54 +0100)]
parser/pageparser: Split the page lexer into some more files
See #5534
Bjørn Erik Pedersen [Thu, 20 Dec 2018 16:24:51 +0000 (17:24 +0100)]
hugolib: Enable Emoji in site benchmark
Bjørn Erik Pedersen [Wed, 19 Dec 2018 19:07:49 +0000 (20:07 +0100)]
parser/pageparser: Add a benchmark
Bjørn Erik Pedersen [Wed, 19 Dec 2018 09:25:53 +0000 (10:25 +0100)]
tpl: Fix case handling in cast params
Fixes #5538
Bjørn Erik Pedersen [Wed, 19 Dec 2018 09:06:57 +0000 (10:06 +0100)]
Update to Go 1.11.4
Fixes #5524
Bjørn Erik Pedersen [Wed, 19 Dec 2018 09:01:26 +0000 (10:01 +0100)]
releaser: Get ldflags for build date etc. in line for all builds
Closes #5539
Closes ##5388
Bjørn Erik Pedersen [Mon, 17 Dec 2018 16:42:46 +0000 (17:42 +0100)]
transform/urlreplacers: Simplify implementation
Bjørn Erik Pedersen [Mon, 17 Dec 2018 13:25:00 +0000 (14:25 +0100)]
transform/urlreplacers: Support unquoted URLs in canonifyURLs replacer
Fixes #5529
Bjørn Erik Pedersen [Mon, 17 Dec 2018 09:47:11 +0000 (10:47 +0100)]
hugolib: Remove "double layout" lookup
Fixes #5390
Bjørn Erik Pedersen [Mon, 17 Dec 2018 09:01:35 +0000 (10:01 +0100)]
Fix "failed to create file caches from configuration: file exists" on Windows
Fixes #5497
Bjørn Erik Pedersen [Thu, 13 Dec 2018 10:52:26 +0000 (11:52 +0100)]
hugolib: Restore taxonomy term path separation
Fixes #5513
Jean-François YUEN [Mon, 19 Nov 2018 16:33:54 +0000 (17:33 +0100)]
importer: fix jekyll import highlight options
Bjørn Erik Pedersen [Wed, 12 Dec 2018 08:09:45 +0000 (09:09 +0100)]
docs: Regenerate CLI docs
Fixes #5507
Bjørn Erik Pedersen [Wed, 12 Dec 2018 08:06:42 +0000 (09:06 +0100)]
Bjørn Erik Pedersen [Wed, 12 Dec 2018 08:05:31 +0000 (09:05 +0100)]
Squashed 'docs/' changes from
37095d540..
d1cf9adc4
d1cf9adc4 Fix typo
26e10a690 Fix the name and arg mismatch between partial defn and call
2db0e53cd Merge commit '
9c36cff15224f6cbd19058ad61311229b7a23c83'
9c36cff15 Squashed 'themes/gohugoioTheme/' changes from
68ddff44..
b8202f53
4b021eff8 Update lang.Merge.md
b37af2916 Add title to yaml
a9a281233 Fixed incorrect usage of the code-toggle shortcode
4560a0169 Update Warning for Theme Links (#676)
0305e3c6b Document .File.ContentBaseName
6d30c5aa1 Update configuration.md
158df174a Document .Sites and .Sites.First
0c0f583b8 Add stale config
e2531afd8 Document path template functions
4dd779057 Clarify that partialCached is per site/language
19e5bbe0c Update index.md
44b000857 Add missing dot
a41300cf9 Release 0.52
2d1d92b88 Merge branch 'temp52'
c5925250d releaser: Prepare repository for 0.53-DEV
d000b04a2 releaser: Add release notes to /docs for release of 0.52
4bb983a0a releaser: Bump versions for release of 0.52
36736ca28 tpl: Add "param" shortcode
378677aa6 Add Elasticsearch/bonsai.io to services doc.
4c3fd4fa4 docs: Document inline shortcodes
6c64c374c Whitelist CSS modules from purge
817a872b9 Improve search icon position
cf86ff1c7 Add minification and resource cache clear to build command
fd77e8df3 Update asset dependencies and adopt Hugo Pipes
cdbe97e8c Update render.md
b0e279220 git command to update submodule to latest
a1cb98c12 cache/filecache: Add a :project placeholder
07c1b2b46 cache/filecache: Use time.Duration for maxAge
ffa9b165e Add AND as a title
6e7733b40 Add OR as a sub title to make it easier to find in search
72b6791a1 docs: Document the new file cache
714d3ca91 Fix minification issues
cd1e961da Revert "Add Elasticsearch/bonsai.io to services doc."
15a0cda6e Add Elasticsearch/bonsai.io to services doc.
f931d86de Release 0.51
e2ffe867a Merge branch 'temp51'
423e7f5c8 releaser: Prepare repository for 0.52-DEV
c6f2d6ae1 releaser: Add release notes to /docs for release of 0.51
5bbb556dc releaser: Bump versions for release of 0.51
3b2b172b9 docs: Document shortcode error handling
b8672f3d4 docs: Document symdiff
4bc6071e6 docs: Document complement
d1baab752 docs: Re-generate CLI docs
9ea667e24 Revert "tpl: Update Jsonify to return pretty-print output"
ce5a1403d docs: Regenerate the docs helper
99a1f4a94 Fix note for reserved partial name(starting with -> including).
eba3cbc42 fix accidentally modification on paragraph.
3eebd98c3 Add note for reserved partial name.
40b881cc2 Document templates.Exists
b5c3bcd3b Update multilingual.md
61c59c67e Fix misspelling (#648)
f21d8c4a4 Correct minor typo (#5372)
e967001b9 Release 0.50
685fd6b08 releaser: Prepare repository for 0.51-DEV
f245a9faa releaser: Add release notes to /docs for release of 0.50
4354da30d releaser: Bump versions for release of 0.50
feaa05469 docs: Regenerate CLI docs
5c724200c Merge commit '
d6a4af7018e8618944a6471ceeb7aae1d4df6afa'
2ddab36c2 Merge commit '
74309fe5699a595080fdb3a14711e0869babce99'
8cf296a7c docs: Regenerate CLI docs
9097683dd tpl: Update Jsonify to return pretty-print output
git-subtree-dir: docs
git-subtree-split:
d1cf9adc412245c96d9d32592a903370d3972aef
Bjørn Erik Pedersen [Thu, 15 Nov 2018 08:28:02 +0000 (09:28 +0100)]
Add /config dir support
This commit adds support for a configuration directory (default `config`). The different pieces in this puzzle are:
* A new `--environment` (or `-e`) flag. This can also be set with the `HUGO_ENVIRONMENT` OS environment variable. The value for `environment` defaults to `production` when running `hugo` and `development` when running `hugo server`. You can set it to any value you want (e.g. `hugo server -e "Sensible Environment"`), but as it is used to load configuration from the file system, the letter case may be important. You can get this value in your templates with `{{ hugo.Environment }}`.
* A new `--configDir` flag (defaults to `config` below your project). This can also be set with `HUGO_CONFIGDIR` OS environment variable.
If the `configDir` exists, the configuration files will be read and merged on top of each other from left to right; the right-most value will win on duplicates.
Given the example tree below:
If `environment` is `production`, the left-most `config.toml` would be the one directly below the project (this can now be omitted if you want), and then `_default/config.toml` and finally `production/config.toml`. And since these will be merged, you can just provide the environment specific configuration setting in you production config, e.g. `enableGitInfo = true`. The order within the directories will be lexical (`config.toml` and then `params.toml`).
```bash
config
├── _default
│ ├── config.toml
│ ├── languages.toml
│ ├── menus
│ │ ├── menus.en.toml
│ │ └── menus.zh.toml
│ └── params.toml
├── development
│ └── params.toml
└── production
├── config.toml
└── params.toml
```
Some configuration maps support the language code in the filename (e.g. `menus.en.toml`): `menus` (`menu` also works) and `params`.
Also note that the only folders with "a meaning" in the above listing is the top level directories below `config`. The `menus` sub folder is just added for better organization.
We use `TOML` in the example above, but Hugo also supports `JSON` and `YAML` as configuration formats. These can be mixed.
Fixes #5422
Iskander (Alex) Sharipov [Mon, 10 Dec 2018 14:31:44 +0000 (17:31 +0300)]
resource/image: Fix "always false" condition
Found using gocritic linter.
Cameron Moore [Fri, 7 Dec 2018 22:29:37 +0000 (16:29 -0600)]
tpl: Add reflect namespace
Add a reflect namespace that offers a two boolean functions for
testing if a value is a map or slice.
Fixes #4081
Bjørn Erik Pedersen [Fri, 7 Dec 2018 06:49:26 +0000 (07:49 +0100)]
minifiers: Fixx CSS2 color code handling
Fixes #5506
Bjørn Erik Pedersen [Thu, 6 Dec 2018 13:57:56 +0000 (14:57 +0100)]
tpl/hugo: Use the correct Hugo var
See #5467
Bjørn Erik Pedersen [Thu, 6 Dec 2018 09:29:28 +0000 (10:29 +0100)]
hugolib: Add .Site.Sites
Fixes #5504
Bjørn Erik Pedersen [Mon, 26 Nov 2018 09:11:22 +0000 (10:11 +0100)]
Add tpl/site and tpl/hugo
This means that the current `.Site` and ´.Hugo` is available as a globals, so you can do `site.IsServer`, `hugo.Version` etc.
Fixes #5470
Fixes #5467
Fixes #5503
Bjørn Erik Pedersen [Tue, 4 Dec 2018 17:19:37 +0000 (18:19 +0100)]
cache/filecache: Simplify test
See #5497
Bjørn Erik Pedersen [Tue, 4 Dec 2018 09:52:04 +0000 (10:52 +0100)]
cache/filecache: Use OS fs for test
See #5497
Cameron Moore [Fri, 30 Nov 2018 03:32:53 +0000 (21:32 -0600)]
tpl: Add godoc packages comments
Also fix package name in tpl/templates.
Christian Oliff [Thu, 29 Nov 2018 08:57:51 +0000 (17:57 +0900)]
common/collections: Fix defines typo
hugoreleaser [Wed, 28 Nov 2018 14:08:36 +0000 (14:08 +0000)]
releaser: Prepare repository for 0.53-DEV
[ci skip]
hugoreleaser [Wed, 28 Nov 2018 14:06:31 +0000 (14:06 +0000)]
releaser: Add release notes to /docs for release of 0.52
[ci skip]
hugoreleaser [Wed, 28 Nov 2018 14:06:31 +0000 (14:06 +0000)]
releaser: Bump versions for release of 0.52
[ci skip]
Bjørn Erik Pedersen [Wed, 28 Nov 2018 13:58:27 +0000 (14:58 +0100)]
Release 0.52
hugoreleaser [Wed, 28 Nov 2018 13:14:49 +0000 (13:14 +0000)]
releaser: Add release notes draft for 0.52
Rename to *-ready.md to continue. [ci skip]
Bjørn Erik Pedersen [Wed, 28 Nov 2018 11:28:24 +0000 (12:28 +0100)]
hugolib: Fall back to title in ByLinkTitle sort
Fixes #4953
Bjørn Erik Pedersen [Wed, 28 Nov 2018 11:36:59 +0000 (12:36 +0100)]
hugolib: Improve nil handling in IsDescendant and IsAncestor
Fixes #5461
Bjørn Erik Pedersen [Wed, 28 Nov 2018 09:21:54 +0000 (10:21 +0100)]
parser/pageparser: Fix handling of commented out front matter
When the page parser was rewritten in 0.51, this was interpreted literally, but commented out front matter is used in the wild to "hide it from GitHub", e.g:
```
<!--
+++
title = "hello"
+++
-->
```
Fixes #5478
Bjørn Erik Pedersen [Tue, 27 Nov 2018 23:17:43 +0000 (00:17 +0100)]
Remove duplicate mapstructure depdendency
Bjørn Erik Pedersen [Tue, 27 Nov 2018 23:08:27 +0000 (00:08 +0100)]
Add dependency list to README
Cameron Moore [Tue, 27 Nov 2018 18:17:35 +0000 (12:17 -0600)]
tpl/path: Add tests
Bjørn Erik Pedersen [Tue, 27 Nov 2018 17:15:55 +0000 (18:15 +0100)]
tpl: Regenerate templates
Max Arnold [Tue, 27 Nov 2018 17:15:10 +0000 (00:15 +0700)]
tpl: Fix whitespace issue
Introduced in #5276.