brevno-suite/hugo
6 years agoreleaser: Add release notes draft for 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]

6 years agohugolib: Fall back to title in ByLinkTitle sort
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

6 years agohugolib: Improve nil handling in IsDescendant and IsAncestor
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

6 years agoparser/pageparser: Fix handling of commented out front matter
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

6 years agoRemove duplicate mapstructure depdendency
Bjørn Erik Pedersen [Tue, 27 Nov 2018 23:17:43 +0000 (00:17 +0100)]
Remove duplicate mapstructure depdendency

6 years agoAdd dependency list to README
Bjørn Erik Pedersen [Tue, 27 Nov 2018 23:08:27 +0000 (00:08 +0100)]
Add dependency list to README

6 years agotpl/path: Add tests
Cameron Moore [Tue, 27 Nov 2018 18:17:35 +0000 (12:17 -0600)]
tpl/path: Add tests

6 years agotpl: Regenerate templates
Bjørn Erik Pedersen [Tue, 27 Nov 2018 17:15:55 +0000 (18:15 +0100)]
tpl: Regenerate templates

6 years agotpl: Fix whitespace issue
Max Arnold [Tue, 27 Nov 2018 17:15:10 +0000 (00:15 +0700)]
tpl: Fix whitespace issue

 Introduced  in #5276.

6 years agotpl: Add "param" shortcode
Bjørn Erik Pedersen [Tue, 27 Nov 2018 15:53:11 +0000 (16:53 +0100)]
tpl: Add "param" shortcode

Fixes #4010

6 years agodocs: Document inline shortcodes
Bjørn Erik Pedersen [Tue, 27 Nov 2018 13:43:12 +0000 (14:43 +0100)]
docs: Document inline shortcodes

See #4011

6 years agoAdd inline shortcode support
Bjørn Erik Pedersen [Mon, 26 Nov 2018 10:01:27 +0000 (11:01 +0100)]
Add inline shortcode support

An inline shortcode's name must end with `.inline`, all lowercase.

E.g.:

```bash
{{< time.inline >}}{{ now }}{{< /time.inline >}}
```

The above will print the current date and time.

Note that an inline shortcode's inner content is parsed and executed as a Go text template with the same context as a regular shortcode template.

This means that the current page can be accessed via `.Page.Title` etc. This also means that there are no concept of "nested inline shortcodes".

The same inline shortcode can be reused later in the same content file, with different params if needed, using the self-closing syntax:

```
{{< time.inline />}}
```

Fixes #4011

6 years agotpl/collections: Add float64 support to where
Cameron Moore [Tue, 27 Nov 2018 00:40:35 +0000 (18:40 -0600)]
tpl/collections: Add float64 support to where

Fixes #5466

6 years agoparser/pageparser: Fix when only shortcode and then summary
Bjørn Erik Pedersen [Sat, 24 Nov 2018 16:06:26 +0000 (17:06 +0100)]
parser/pageparser: Fix when only shortcode and then summary

Fixes #5464

6 years agocommands: Include drafts in convert command
Bjørn Erik Pedersen [Sat, 24 Nov 2018 12:11:14 +0000 (13:11 +0100)]
commands: Include drafts in convert command

Fixes #5457

6 years agoHandle themes in the new file cache (for images, assets)
Bjørn Erik Pedersen [Fri, 23 Nov 2018 08:16:42 +0000 (09:16 +0100)]
Handle themes in the new file cache (for images, assets)

In the newly consolidated file cache implementation, we forgot that we also look in the theme(s) for assets (SCSS transformations etc.), which is not good for Netlify and the demo sites.

Fixes #5460

6 years agoFix ignored --config flag with 'new' command
Kris Budhram [Sun, 18 Nov 2018 03:20:43 +0000 (22:20 -0500)]
Fix ignored --config flag with 'new' command

6 years agoFix Permalink for resource, baseURL with path and canonifyURLs set
Bjørn Erik Pedersen [Thu, 15 Nov 2018 12:35:28 +0000 (13:35 +0100)]
Fix Permalink for resource, baseURL with path and canonifyURLs set

Fixes #5226

6 years agoAdd tests for permalink on Resource with baseURL with path
Bjørn Erik Pedersen [Thu, 15 Nov 2018 06:21:14 +0000 (07:21 +0100)]
Add tests for permalink on Resource with baseURL with path

See #5226

6 years agohelpers: Add a comment about file mode for new files
Bjørn Erik Pedersen [Wed, 14 Nov 2018 16:44:04 +0000 (17:44 +0100)]
helpers: Add a comment about file mode for new files

See #5434

6 years agocache/filecache: Add a :project placeholder
Bjørn Erik Pedersen [Wed, 14 Nov 2018 16:18:32 +0000 (17:18 +0100)]
cache/filecache: Add a :project placeholder

This allows for "cache per Hugo project", making `hugo --gc` work as expected, even if you have several Hugo projects running on the same PC.

See #5439

6 years agocache/filecache: Add a cache prune func
Bjørn Erik Pedersen [Wed, 14 Nov 2018 11:06:46 +0000 (12:06 +0100)]
cache/filecache: Add a cache prune func

Fixes #5439

6 years agocache/filecache: Add a filecache root dir
Bjørn Erik Pedersen [Wed, 14 Nov 2018 10:53:45 +0000 (11:53 +0100)]
cache/filecache: Add a filecache root dir

This is just a safe guard to make sure we don't evict/remove files that do not belong to the cache.

6 years agocache/filecache: Use time.Duration for maxAge
Bjørn Erik Pedersen [Wed, 14 Nov 2018 09:51:41 +0000 (10:51 +0100)]
cache/filecache: Use time.Duration for maxAge

Fixes #5438

6 years agocache/filecache: Split implementation and config into separate files
Bjørn Erik Pedersen [Wed, 14 Nov 2018 09:44:04 +0000 (10:44 +0100)]
cache/filecache: Split implementation and config into separate files

6 years agoUpdate to LibSASS 3.5.5
Bjørn Erik Pedersen [Wed, 14 Nov 2018 09:35:42 +0000 (10:35 +0100)]
Update to LibSASS 3.5.5

Fixes #5432
See #5435

6 years agoMore spelling corrections
Bjørn Erik Pedersen [Tue, 13 Nov 2018 17:28:40 +0000 (18:28 +0100)]
More spelling corrections

6 years agocache/filecache: Spelling corrections
Bjørn Erik Pedersen [Tue, 13 Nov 2018 17:16:53 +0000 (18:16 +0100)]
cache/filecache: Spelling corrections

6 years agoRemove appveyor
Bjørn Erik Pedersen [Tue, 13 Nov 2018 13:36:17 +0000 (14:36 +0100)]
Remove appveyor

We now build on Travis for all platforms.

6 years agodocs: Document the new file cache
Bjørn Erik Pedersen [Tue, 13 Nov 2018 13:29:45 +0000 (14:29 +0100)]
docs: Document the new file cache

See #5404

6 years agoAdd a consolidated file cache
Bjørn Erik Pedersen [Thu, 8 Nov 2018 09:24:13 +0000 (10:24 +0100)]
Add a consolidated file cache

This commits reworks how file caching is performed in Hugo. Now there is only one way, and it can be configured.

This is the default configuration:

```toml
[caches]
[caches.getjson]
dir = ":cacheDir"
maxAge = -1
[caches.getcsv]
dir = ":cacheDir"
maxAge = -1
[caches.images]
dir = ":resourceDir/_gen"
maxAge = -1
[caches.assets]
dir = ":resourceDir/_gen"
maxAge = -1
```

You can override any of these cache setting in your own `config.toml`.

The placeholders explained:

`:cacheDir`: This is the value of the `cacheDir` config option if set (can also be set via OS env variable `HUGO_CACHEDIR`). It will fall back to `/opt/build/cache/hugo_cache/` on Netlify, or a `hugo_cache` directory below the OS temp dir for the others.
`:resourceDir`: This is the value of the `resourceDir` config option.

`maxAge` is the time in seconds before a cache entry will be evicted, -1 means forever and 0 effectively turns that particular cache off.

This means that if you run your builds on Netlify, all caches configured with `:cacheDir` will be saved and restored on the next build. For other CI vendors, please read their documentation. For an CircleCI example, see https://github.com/bep/hugo-sass-test/blob/6c3960a8f4b90e8938228688bc49bdcdd6b2d99e/.circleci/config.yml

Fixes #5404

6 years agoAdd Windows build config to Travis
Emir Beganović [Tue, 13 Nov 2018 10:39:54 +0000 (10:39 +0000)]
Add Windows build config to Travis

6 years agoRevert "Add Elasticsearch/bonsai.io to services doc."
Bjørn Erik Pedersen [Fri, 9 Nov 2018 22:12:27 +0000 (23:12 +0100)]
Revert "Add Elasticsearch/bonsai.io to services doc."

This reverts commit c0b3a1af0354e3aa9979cc00ae8630d7f0be63dc.

6 years agoAdd Elasticsearch/bonsai.io to services doc.
Allison Zadrozny [Fri, 9 Nov 2018 21:51:22 +0000 (15:51 -0600)]
Add Elasticsearch/bonsai.io to services doc.

Hip hip for OSS! 🙌

6 years agotpl: Fix test to pass with gccgo
Ian Lance Taylor [Fri, 9 Nov 2018 07:54:08 +0000 (02:54 -0500)]
tpl: Fix test to pass with gccgo

When run under gccgo, the test looks for the name that gccgo gives to
a thunk method.  This name is not normally visible, but can be seen
when using reflect.FuncForPC as this code does.  That name changed in
https://golang.org/cl/89555.  Change the test to work with both the
old name "$thunk0" and the new name "thunk0".

Fixes golang/go#28669

6 years agoreleaser: Prepare repository for 0.52-DEV
hugoreleaser [Wed, 7 Nov 2018 10:11:48 +0000 (10:11 +0000)]
releaser: Prepare repository for 0.52-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.51 v0.51
hugoreleaser [Wed, 7 Nov 2018 10:09:43 +0000 (10:09 +0000)]
releaser: Add release notes to /docs for release of 0.51

[ci skip]

6 years agoreleaser: Bump versions for release of 0.51
hugoreleaser [Wed, 7 Nov 2018 10:09:43 +0000 (10:09 +0000)]
releaser: Bump versions for release of 0.51

[ci skip]

6 years agoRelease 0.51
Bjørn Erik Pedersen [Wed, 7 Nov 2018 09:56:52 +0000 (10:56 +0100)]
Release 0.51

6 years agoreleaser: Add release notes draft for 0.51
hugoreleaser [Wed, 7 Nov 2018 09:48:47 +0000 (09:48 +0000)]
releaser: Add release notes draft for 0.51

Rename to *-ready.md to continue. [ci skip]

6 years agodocs: Document shortcode error handling
Bjørn Erik Pedersen [Wed, 7 Nov 2018 09:20:08 +0000 (10:20 +0100)]
docs: Document shortcode error handling

Closes https://github.com/gohugoio/hugoDocs/issues/660

6 years agodocs: Document symdiff
Bjørn Erik Pedersen [Wed, 7 Nov 2018 09:00:33 +0000 (10:00 +0100)]
docs: Document symdiff

Closes https://github.com/gohugoio/hugoDocs/issues/659

6 years agodocs: Document complement
Bjørn Erik Pedersen [Wed, 7 Nov 2018 07:52:41 +0000 (08:52 +0100)]
docs: Document complement

Closes https://github.com/gohugoio/hugoDocs/issues/658

6 years agohugolib: Improve error message on duplicate menu items
Bjørn Erik Pedersen [Wed, 7 Nov 2018 07:36:35 +0000 (08:36 +0100)]
hugolib: Improve error message on duplicate menu items

6 years agotpl/collections: Properly handle pointer types in complement/symdiff
Bjørn Erik Pedersen [Wed, 7 Nov 2018 07:59:21 +0000 (08:59 +0100)]
tpl/collections: Properly handle pointer types in complement/symdiff

We cannot compare them by values, because that gets `hash of unhashable type` for the prime use case.

6 years agodeps: Update minify
Bjørn Erik Pedersen [Tue, 6 Nov 2018 19:10:02 +0000 (20:10 +0100)]
deps: Update minify

No functional changes, just support for Go Modules.

6 years agotpl/collections: Add collections.SymDiff
Bjørn Erik Pedersen [Tue, 6 Nov 2018 12:04:11 +0000 (13:04 +0100)]
tpl/collections: Add collections.SymDiff

Fixes #5410

6 years agohugolib: Fix changing paginators in lazy render
Bjørn Erik Pedersen [Tue, 6 Nov 2018 09:04:37 +0000 (10:04 +0100)]
hugolib: Fix changing paginators in lazy render

Fixes #5406

6 years agotpl/collections: Add collections.Complement
Bjørn Erik Pedersen [Mon, 5 Nov 2018 17:50:11 +0000 (18:50 +0100)]
tpl/collections: Add collections.Complement

Fixes #5400

6 years agocommands: Fix spelling
秦世成 [Tue, 6 Nov 2018 07:45:19 +0000 (15:45 +0800)]
commands: Fix spelling

6 years agodocs: Re-generate CLI docs
Bjørn Erik Pedersen [Mon, 5 Nov 2018 13:18:45 +0000 (14:18 +0100)]
docs: Re-generate CLI docs

6 years agoFix shortcode directly following a shortcode delimiter
Bjørn Erik Pedersen [Mon, 5 Nov 2018 12:30:16 +0000 (13:30 +0100)]
Fix shortcode directly following a shortcode delimiter

Fixes #5402

6 years agocommands: Add --minify to hugo server
Bjørn Erik Pedersen [Sun, 4 Nov 2018 17:39:14 +0000 (18:39 +0100)]
commands: Add --minify to hugo server

6 years agocommands: Fix recently broken error template
Bjørn Erik Pedersen [Sat, 3 Nov 2018 15:55:45 +0000 (16:55 +0100)]
commands: Fix recently broken error template

We need a test for this ...

6 years agoMake WARN the new default log log level
Bjørn Erik Pedersen [Thu, 1 Nov 2018 21:27:42 +0000 (22:27 +0100)]
Make WARN the new default log log level

This commit also pulls down the log level for a set of WARN statements to INFO. There should be no ERRORs or WARNINGs in a regular Hugo build. That is the story about the Boy Who Cried Wolf.

Since the WARN log is now more visible, this commit also improves on some of them, most notable the "layout not found", which now would look something like this:

```bash
WARN 2018/11/02 09:02:18 Found no layout for "home", language "en", output format "CSS": create a template below /layouts with one of these filenames: index.en.css.css, home.en.css.css, list.en.css.css, index.css.css, home.css.css, list.css.css, index.en.css, home.en.css, list.en.css, index.css, home.css, list.css, _default/index.en.css.css, _default/home.en.css.css, _default/list.en.css.css, _default/index.css.css, _default/home.css.css, _default/list.css.css, _default/index.en.css, _default/home.en.css, _default/list.en.css, _default/index.css, _default/home.css, _default/list.css
```

Fixes #5203

6 years agoRevert "tpl: Update Jsonify to return pretty-print output"
Bjørn Erik Pedersen [Fri, 2 Nov 2018 18:03:48 +0000 (19:03 +0100)]
Revert "tpl: Update Jsonify to return pretty-print output"

This reverts commit 5a52cd5f920bb3d067ab1682adece9f813c67ba1.

Closes #5394

6 years agodocs: Regenerate the docs helper
Bjørn Erik Pedersen [Fri, 2 Nov 2018 11:56:19 +0000 (12:56 +0100)]
docs: Regenerate the docs helper

6 years agotpl: Fix the docshelper
Bjørn Erik Pedersen [Fri, 2 Nov 2018 11:55:09 +0000 (12:55 +0100)]
tpl: Fix the docshelper

6 years agoSkip watcher event files if matched in ignoreFiles
Kris Budhram [Mon, 15 Oct 2018 03:04:52 +0000 (23:04 -0400)]
Skip watcher event files if matched in ignoreFiles

6 years agodeps: Update Chroma
Bjørn Erik Pedersen [Fri, 2 Nov 2018 08:31:27 +0000 (09:31 +0100)]
deps: Update Chroma

Fixes #5392

6 years agoFix ANSI character output regression on Windows
Lorenz Cuno Klopfenstein [Fri, 2 Nov 2018 08:09:02 +0000 (09:09 +0100)]
Fix ANSI character output regression on Windows

Fixes #5377

6 years agohugolib: Remove deprecated useModTimeAsFallback
Bjørn Erik Pedersen [Thu, 1 Nov 2018 20:14:30 +0000 (21:14 +0100)]
hugolib: Remove deprecated useModTimeAsFallback

6 years agohugolib: Bump to ERROR for the deprecated Pages.Sort
Bjørn Erik Pedersen [Thu, 1 Nov 2018 20:11:45 +0000 (21:11 +0100)]
hugolib: Bump to ERROR for the deprecated Pages.Sort

6 years agohugolib: Deprecate .Site.Ref and .Site.RelRef
Bjørn Erik Pedersen [Thu, 1 Nov 2018 20:08:12 +0000 (21:08 +0100)]
hugolib: Deprecate .Site.Ref and .Site.RelRef

Fixes #5386

6 years agoAdd file (line/col) info to ref/relref errors
Bjørn Erik Pedersen [Thu, 1 Nov 2018 10:28:30 +0000 (11:28 +0100)]
Add file (line/col) info to ref/relref errors

See #5371

6 years agohugolib: Add .Position to shortcode
Bjørn Erik Pedersen [Thu, 1 Nov 2018 09:39:44 +0000 (10:39 +0100)]
hugolib: Add .Position to shortcode

To allow for better error logging in shortcodes. Note that this may be expensive to calculate, so this is primarily for error situations.

See #5371

6 years agohugolib: Fix REF_NOT_FOUND logging to include page path
Bjørn Erik Pedersen [Thu, 1 Nov 2018 09:04:51 +0000 (10:04 +0100)]
hugolib: Fix REF_NOT_FOUND logging to include page path

Fixes #5371

6 years agocommon/loggers: Improve log color regexp
Bjørn Erik Pedersen [Thu, 1 Nov 2018 08:33:32 +0000 (09:33 +0100)]
common/loggers: Improve log color regexp

To avoid coloring WARNING inside log errors.

6 years agohugolib: Fix broken manual summary handling
Bjørn Erik Pedersen [Tue, 30 Oct 2018 19:24:34 +0000 (20:24 +0100)]
hugolib: Fix broken manual summary handling

Fixes #5381

6 years agotpl: Fix BOM issue in templates
Bjørn Erik Pedersen [Tue, 30 Oct 2018 16:36:05 +0000 (17:36 +0100)]
tpl: Fix BOM issue in templates

Fixes #4895

6 years agohugolib: Fix deadlock when content building times out
Bjørn Erik Pedersen [Tue, 30 Oct 2018 10:15:15 +0000 (11:15 +0100)]
hugolib: Fix deadlock when content building times out

Fixes #5375

6 years agoCorrect minor typo (#5372)
Christian Oliff [Mon, 29 Oct 2018 11:09:19 +0000 (20:09 +0900)]
Correct minor typo (#5372)

> Errors will no show up

should be:

> Errors will now show up

6 years agoreleaser: Prepare repository for 0.51-DEV
hugoreleaser [Mon, 29 Oct 2018 09:54:42 +0000 (09:54 +0000)]
releaser: Prepare repository for 0.51-DEV

[ci skip]

6 years agoreleaser: Add release notes to /docs for release of 0.50 v0.50
hugoreleaser [Mon, 29 Oct 2018 09:51:50 +0000 (09:51 +0000)]
releaser: Add release notes to /docs for release of 0.50

[ci skip]

6 years agoreleaser: Bump versions for release of 0.50
hugoreleaser [Mon, 29 Oct 2018 09:51:50 +0000 (09:51 +0000)]
releaser: Bump versions for release of 0.50

[ci skip]

6 years agoRelease 0.50
Bjørn Erik Pedersen [Mon, 29 Oct 2018 09:39:18 +0000 (10:39 +0100)]
Release 0.50

6 years agoreleaser: Add release notes draft for 0.50
hugoreleaser [Mon, 29 Oct 2018 09:07:15 +0000 (09:07 +0000)]
releaser: Add release notes draft for 0.50

Rename to *-ready.md to continue. [ci skip]

6 years agoUpdate go.sum
Bjørn Erik Pedersen [Mon, 29 Oct 2018 08:42:53 +0000 (09:42 +0100)]
Update go.sum

6 years agomod: Update minify
Bjørn Erik Pedersen [Sun, 28 Oct 2018 22:55:51 +0000 (23:55 +0100)]
mod: Update minify

Closes #5261

6 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Mon, 29 Oct 2018 08:29:27 +0000 (09:29 +0100)]
docs: Regenerate CLI docs

6 years agoMerge commit 'd6a4af7018e8618944a6471ceeb7aae1d4df6afa'
Bjørn Erik Pedersen [Mon, 29 Oct 2018 08:28:01 +0000 (09:28 +0100)]
Merge commit 'd6a4af7018e8618944a6471ceeb7aae1d4df6afa'

6 years agoSquashed 'docs/' changes from 084804447..37095d540
Bjørn Erik Pedersen [Mon, 29 Oct 2018 08:28:01 +0000 (09:28 +0100)]
Squashed 'docs/' changes from 084804447..37095d540

37095d540 Fix shortcode example

git-subtree-dir: docs
git-subtree-split: 37095d5403cb96f1dc5288d9554e270367f5c449

6 years agoMerge commit '74309fe5699a595080fdb3a14711e0869babce99'
Bjørn Erik Pedersen [Mon, 29 Oct 2018 08:23:25 +0000 (09:23 +0100)]
Merge commit '74309fe5699a595080fdb3a14711e0869babce99'

6 years agoSquashed 'docs/' changes from e5e98b950..084804447
Bjørn Erik Pedersen [Mon, 29 Oct 2018 08:19:20 +0000 (09:19 +0100)]
Squashed 'docs/' changes from e5e98b950..084804447

084804447 Update shortcode-templates.md
c01b02434 Correct misspelling of 'default'
52a831cca Added missing parenthesis
59e8e660a Fix spelling typos
29ad53c9c Yes, HTML is a valid content format
c6b193c6f Update shortcode-templates.md
1f2846e6d Fix typo in output format README
5882f7a4c Fix typo
a90a00bb0 Update multilingual.md
62bf0f184 Documentation for Open Graph & Twitter Cards
f4d624da3 Document "images", "videos", etc. in front-matter
6a85b5df1 Document anchorize and Resources.Content
04c8a5b0e Fix minor typo in 0.49.2 release note
dbe77e948 Release 0.49.2
ea6c9658e Merge branch 'temp492'
85c45b725 Merge branch 'release-0.49.2'
7ad1fba29 releaser: Prepare repository for 0.50-DEV
b25bcc3f2 releaser: Add release notes to /docs for release of 0.49.2
78b751b91 releaser: Bump versions for release of 0.49.2
e3f09762c Release 0.49.1
bd5b94558 Merge branch 'temp491'
0007e0661 Merge branch 'release-0.49.1'
74d2f3a6f releaser: Prepare repository for 0.50-DEV
bbee7e9d3 releaser: Add release notes to /docs for release of 0.49.1
ae40c89c7 releaser: Bump versions for release of 0.49.1
11079fb48 Add draft statement to FAQ
069b9472f Addin Hokus CMS to frontends list.
6e8850670 Add MediaType docs
f3ca6209a Add `languageName` to configuration
fd1cde5ea tpl: Add a delimiter parameter to lang.NumFmt
c620ff78a Update doc to use proper variable
7317c339a add tools->hugo-elasticsearch description to docs
d758ef94a hugolib: Introduce Page.NextPage and Page.PrevPage
9c93ac031 Update installing.md
7c0b5b7f5 Use ISO 639-1 code for examples
9a9e40ba8 Fix spelling
9a6216c18 Hugo 0.49
55aa91185 Merge branch 'temp49'
e0a36421e releaser: Prepare repository for 0.50-DEV
c07b3b385 releaser: Add release notes to /docs for release of 0.49
c1175a12a releaser: Bump versions for release of 0.49
2966f6254 docs: Document directory based archetypes
73dcd02ed Add showcase archetype folder
0a55ad11b docs: Regenerate CLI docs
e09866c2d docs: Document group
ef986358a Merge commit '807c551922707fc5ae0eb26e8f01638c0c63fdb3'
681f14fc9 tpl/collections: Allow first function to return an empty slice
f6dcc93bc docs: Add docs for append
aae528ca3 Merge commit '13e64d72763bf8d6d92d4cdfc15ed45ee9debfab'
02b62294c tpl/strings: Add strings.FirstUpper
bf3e61ba3 hugolib: Do not FirstUpper taxonomy titles

git-subtree-dir: docs
git-subtree-split: 084804447402ab99b51bf49f0da809bee8c16339

6 years agocommon/loggers: Make sure the global logger also gets colored labels
Bjørn Erik Pedersen [Sun, 28 Oct 2018 15:06:50 +0000 (16:06 +0100)]
common/loggers: Make sure the global logger also gets colored labels

See #4414

6 years agoi18n: Avoid using the global logger
Bjørn Erik Pedersen [Sun, 28 Oct 2018 13:42:41 +0000 (14:42 +0100)]
i18n: Avoid using the global logger

See #4414

6 years agocommon/loggers: Add color to ERROR and WARN
Bjørn Erik Pedersen [Wed, 24 Oct 2018 16:32:30 +0000 (18:32 +0200)]
common/loggers: Add color to ERROR and WARN

Fixes #4414

6 years agocommon/herrors: Make the file error log format configurable
Bjørn Erik Pedersen [Sat, 27 Oct 2018 15:19:36 +0000 (17:19 +0200)]
common/herrors: Make the file error log format configurable

Will check for an OS environment variable named `HUGO_FILE_LOG_FORMAT`.

The tokens available are `:file` (absolute filename), `:line` (line number) and `:col` (column number).

The default format is: \":file::line::col\"`

How to set OS environment variables is OS specific, but an example on Unix setting an alternative format when running Hugo:

```bash
env HUGO_FILE_LOG_FORMAT="\":file::line\"" hugo
```

The above will include filename and line number quoted.

Fixes #5352

6 years agocommon/collections: Allow a mix of slice types in append/Scratch.Add
Bjørn Erik Pedersen [Sat, 27 Oct 2018 09:10:39 +0000 (11:10 +0200)]
common/collections: Allow a mix of slice types in append/Scratch.Add

The type handling in these was improved in Hugo 0.49, but this also meant that it was no longer possible to start out with a string slice and later append `Page` etc. to it.

This commit makes sure that the old behaviour is now possible again by falling back to a `[]interface{}` as a last resort.

Fixes #5361

6 years agoresource: Allow .Data.Integrity to be accessed on its own
Bjørn Erik Pedersen [Sat, 27 Oct 2018 08:00:43 +0000 (10:00 +0200)]
resource: Allow .Data.Integrity to be accessed on its own

Fixes #5296

6 years agoRevert "mod: Update minify"
Bjørn Erik Pedersen [Fri, 26 Oct 2018 17:30:01 +0000 (19:30 +0200)]
Revert "mod: Update minify"

This reverts commit 83c873ff37ddd379181540021232f026e7678486.

6 years agomod: Update minify
Bjørn Erik Pedersen [Fri, 26 Oct 2018 15:16:01 +0000 (17:16 +0200)]
mod: Update minify

Closes #5261

6 years agomod: Update cast
Bjørn Erik Pedersen [Fri, 26 Oct 2018 15:13:22 +0000 (17:13 +0200)]
mod: Update cast

Closes #5340

6 years agocommands: Truncate the error log on repeated config errors
Bjørn Erik Pedersen [Fri, 26 Oct 2018 15:02:53 +0000 (17:02 +0200)]
commands: Truncate the error log on repeated config errors

6 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Fri, 26 Oct 2018 13:10:43 +0000 (15:10 +0200)]
docs: Regenerate CLI docs

Closes #5354

6 years agoresource: Serialize image processing
Bjørn Erik Pedersen [Fri, 26 Oct 2018 11:45:51 +0000 (13:45 +0200)]
resource: Serialize image processing

Fixes #5220

6 years agocommands: Only show Ansi escape codes if in a terminal
Bjørn Erik Pedersen [Fri, 26 Oct 2018 12:32:32 +0000 (14:32 +0200)]
commands: Only show Ansi escape codes if in a terminal

6 years agoFix archetype handling of directories in theme
Bjørn Erik Pedersen [Fri, 26 Oct 2018 07:41:24 +0000 (09:41 +0200)]
Fix archetype handling of directories in theme

Fixes #5318

6 years agoRevert "commands: Read disableFastRender from flag even if it's not changed"
Bjørn Erik Pedersen [Wed, 24 Oct 2018 20:15:57 +0000 (22:15 +0200)]
Revert "commands: Read disableFastRender from flag even if it's not changed"

On second thought, removing this isn't worth it.

This reverts commit 78a4c2e32ef9ea8e92bb7bb3586e4c22b02eb494.

6 years agocommands: Read disableFastRender from flag even if it's not changed
Bjørn Erik Pedersen [Wed, 24 Oct 2018 18:33:07 +0000 (20:33 +0200)]
commands: Read disableFastRender from flag even if it's not changed

Fixes #5353