brevno-suite/hugo
5 years agopostcss: Fix no-map vs noMap discrepancy
Bjørn Erik Pedersen [Mon, 5 Aug 2019 11:48:58 +0000 (13:48 +0200)]
postcss: Fix no-map vs noMap discrepancy

Fixes #6166

5 years agohugolib: Fix output format handling of mix cased page kinds
Bjørn Erik Pedersen [Mon, 5 Aug 2019 08:19:55 +0000 (10:19 +0200)]
hugolib: Fix output format handling of mix cased page kinds

Fixes #4528

5 years agohugolib: Fix broken test
Bjørn Erik Pedersen [Thu, 1 Aug 2019 20:09:58 +0000 (22:09 +0200)]
hugolib: Fix broken test

5 years agotpl: Regenerate templates
Bjørn Erik Pedersen [Thu, 1 Aug 2019 12:05:20 +0000 (14:05 +0200)]
tpl: Regenerate templates

5 years agotpl: Always load GitHub Gists over HTTPS
Christian Oliff [Thu, 1 Aug 2019 11:57:41 +0000 (20:57 +0900)]
tpl: Always load GitHub Gists over HTTPS

5 years agoFix assorted typos
XhmikosR [Wed, 31 Jul 2019 12:36:36 +0000 (15:36 +0300)]
Fix assorted typos

5 years agocommon/collections: Fix typo
Shawn Smith [Thu, 1 Aug 2019 11:52:05 +0000 (20:52 +0900)]
common/collections: Fix typo

5 years agoexamples: Fix multilingual example compatibility with latest version
Robin Andersson [Thu, 1 Aug 2019 11:49:07 +0000 (13:49 +0200)]
examples: Fix multilingual example compatibility with latest version

5 years agoMerge pull request #6149 from bep/sort-caseinsensitive
Bjørn Erik Pedersen [Thu, 1 Aug 2019 08:19:19 +0000 (10:19 +0200)]
Merge pull request #6149 from bep/sort-caseinsensitive

Implement lexicographically string sorting

5 years agoreleaser: Prepare repository for 0.57.0-DEV
hugoreleaser [Wed, 31 Jul 2019 12:56:14 +0000 (12:56 +0000)]
releaser: Prepare repository for 0.57.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.56.3 v0.56.3
hugoreleaser [Wed, 31 Jul 2019 12:48:33 +0000 (12:48 +0000)]
releaser: Add release notes to /docs for release of 0.56.3

[ci skip]

5 years agoreleaser: Bump versions for release of 0.56.3
hugoreleaser [Wed, 31 Jul 2019 12:48:33 +0000 (12:48 +0000)]
releaser: Bump versions for release of 0.56.3

[ci skip]

5 years agoreleaser: Add release notes for 0.56.3
hugoreleaser [Wed, 31 Jul 2019 12:48:33 +0000 (12:48 +0000)]
releaser: Add release notes for 0.56.3
[ci skip]

5 years agohugolib: Fix bundle header clone logic
Bjørn Erik Pedersen [Wed, 31 Jul 2019 10:31:31 +0000 (12:31 +0200)]
hugolib: Fix bundle header clone logic

Fixes #6136

5 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Wed, 31 Jul 2019 10:11:22 +0000 (12:11 +0200)]
docs: Regenerate CLI docs

5 years agocommands: Add "hugo config mounts" command
Bjørn Erik Pedersen [Wed, 31 Jul 2019 08:31:26 +0000 (10:31 +0200)]
commands: Add "hugo config mounts" command

This prints the effective file mounts in a project.

Fixes #6144

5 years agocommands: Cleanup the hugo config command
Bjørn Erik Pedersen [Wed, 31 Jul 2019 07:59:32 +0000 (09:59 +0200)]
commands: Cleanup the hugo config command

Most importantly filter out some keys not relevant for the end user.

See #6144

5 years agoMove the mount duplicate filter to the modules package
Bjørn Erik Pedersen [Wed, 31 Jul 2019 06:21:17 +0000 (08:21 +0200)]
Move the mount duplicate filter to the modules package

Also simplify the mount validation logic. There are plenty of ways a user can create mount configs that behaves oddly.

5 years agoAllow overlap in module mounts
Bjørn Erik Pedersen [Tue, 30 Jul 2019 16:34:41 +0000 (18:34 +0200)]
Allow overlap in module mounts

Fixes #6146

5 years agoFix self-mounts on the main project
Bjørn Erik Pedersen [Tue, 30 Jul 2019 11:35:16 +0000 (13:35 +0200)]
Fix self-mounts on the main project

Fixes #6143

5 years agoreleaser: Prepare repository for 0.57.0-DEV
hugoreleaser [Tue, 30 Jul 2019 09:12:29 +0000 (09:12 +0000)]
releaser: Prepare repository for 0.57.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.56.2 v0.56.2
hugoreleaser [Tue, 30 Jul 2019 09:05:09 +0000 (09:05 +0000)]
releaser: Add release notes to /docs for release of 0.56.2

[ci skip]

5 years agoreleaser: Bump versions for release of 0.56.2
hugoreleaser [Tue, 30 Jul 2019 09:05:09 +0000 (09:05 +0000)]
releaser: Bump versions for release of 0.56.2

[ci skip]

5 years agoreleaser: Add release notes for 0.56.2
hugoreleaser [Tue, 30 Jul 2019 09:05:09 +0000 (09:05 +0000)]
releaser: Add release notes for 0.56.2
[ci skip]

5 years agoAdd some more content language test assertions
Bjørn Erik Pedersen [Tue, 30 Jul 2019 07:58:58 +0000 (09:58 +0200)]
Add some more content language test assertions

See #6136

5 years agocommands: Fix config reloading in Vim and similar
Bjørn Erik Pedersen [Tue, 30 Jul 2019 07:35:01 +0000 (09:35 +0200)]
commands: Fix config reloading in Vim and similar

The config path was simplified in Hugo 0.56.0 to support more config dirs/files (go.mod etc.),
and the new code path assumed that every file change would trigger a `Write` event.

This is not true for Vim etc. which triggers a `Chmod` and then a `Rename`.

Lesson learned: Be really careful changing Os/editor specific code without proper tests.

Fixes #6139

5 years agoFix Jekyll import
Bjørn Erik Pedersen [Tue, 30 Jul 2019 07:14:14 +0000 (09:14 +0200)]
Fix Jekyll import

Fixes #6131

5 years agoreleaser: Create a proper automated title for patch releases
Bjørn Erik Pedersen [Tue, 30 Jul 2019 07:02:03 +0000 (09:02 +0200)]
releaser: Create a proper automated title for patch releases

Fixes #6126

5 years agoFix image format detection for upper case extensions, e.g. JPG
Bjørn Erik Pedersen [Tue, 30 Jul 2019 06:53:50 +0000 (08:53 +0200)]
Fix image format detection for upper case extensions, e.g. JPG

This regression was introduced in 0.56.0.

Fixes #6137

5 years agoFix i18n project vs theme order
Bjørn Erik Pedersen [Mon, 29 Jul 2019 15:23:10 +0000 (17:23 +0200)]
Fix i18n project vs theme order

Fixes #6134

5 years agoAdd proper error message when receiving nil in Resource transformation
Bjørn Erik Pedersen [Mon, 29 Jul 2019 07:36:48 +0000 (09:36 +0200)]
Add proper error message when receiving nil in Resource transformation

Closes #6128

5 years agoMerge branch 'release-0.56.1'
Bjørn Erik Pedersen [Sun, 28 Jul 2019 15:06:46 +0000 (17:06 +0200)]
Merge branch 'release-0.56.1'

5 years agoreleaser: Prepare repository for 0.57.0-DEV
hugoreleaser [Sun, 28 Jul 2019 15:05:28 +0000 (15:05 +0000)]
releaser: Prepare repository for 0.57.0-DEV

[ci skip]

5 years agodeps: Update go-org to v0.1.2
Niklas Fasching [Sun, 28 Jul 2019 14:48:06 +0000 (16:48 +0200)]
deps: Update go-org to v0.1.2

fixes superfluous whitespace around code blocks due to misuse of pre tag

5 years agoreleaser: Add release notes to /docs for release of 0.56.1 v0.56.1
hugoreleaser [Sun, 28 Jul 2019 14:51:43 +0000 (14:51 +0000)]
releaser: Add release notes to /docs for release of 0.56.1

[ci skip]

5 years agoreleaser: Bump versions for release of 0.56.1
hugoreleaser [Sun, 28 Jul 2019 14:51:43 +0000 (14:51 +0000)]
releaser: Bump versions for release of 0.56.1

[ci skip]

5 years agoreleaser: Add release notes for 0.56.1
hugoreleaser [Sun, 28 Jul 2019 14:51:43 +0000 (14:51 +0000)]
releaser: Add release notes for 0.56.1
[ci skip]

5 years agoreleaser: Make it a one click release for patch releases
Bjørn Erik Pedersen [Sun, 28 Jul 2019 12:33:56 +0000 (14:33 +0200)]
releaser: Make it a one click release for patch releases

5 years agocommon/maps: Do not return error on params dot access on incompatible types
Bjørn Erik Pedersen [Sun, 28 Jul 2019 10:31:32 +0000 (12:31 +0200)]
common/maps: Do not return error on params dot access on incompatible types

This error was introduced in 0.56 and has shown some site breakage in the wild.

Fixes #6121

5 years agoresources: Fix image Width/Height regression
Bjørn Erik Pedersen [Sat, 27 Jul 2019 16:16:13 +0000 (18:16 +0200)]
resources: Fix image Width/Height regression

Fixes #6120

5 years agoRevert "cache/filecache: Skip resource cache init if the fs is missing"
Bjørn Erik Pedersen [Fri, 26 Jul 2019 14:29:33 +0000 (16:29 +0200)]
Revert "cache/filecache: Skip resource cache init if the fs is missing"

I need to revisit this.

This reverts commit da4c4a7789d403af3f4f4fdd5dfd3327535e4050.

5 years agomodules: Set GO111MODULE=on
Bjørn Erik Pedersen [Fri, 26 Jul 2019 08:55:50 +0000 (10:55 +0200)]
modules: Set GO111MODULE=on

Fixes #6114

5 years agocache/filecache: Skip resource cache init if the fs is missing
Bjørn Erik Pedersen [Fri, 26 Jul 2019 08:45:07 +0000 (10:45 +0200)]
cache/filecache: Skip resource cache init if the fs is missing

Fixes #6113

5 years agoreleaser: Prepare repository for 0.57.0-DEV
hugoreleaser [Thu, 25 Jul 2019 16:45:08 +0000 (16:45 +0000)]
releaser: Prepare repository for 0.57.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.56.0 v0.56.0
hugoreleaser [Thu, 25 Jul 2019 16:37:58 +0000 (16:37 +0000)]
releaser: Add release notes to /docs for release of 0.56.0

[ci skip]

5 years agoreleaser: Bump versions for release of 0.56.0
hugoreleaser [Thu, 25 Jul 2019 16:37:58 +0000 (16:37 +0000)]
releaser: Bump versions for release of 0.56.0

[ci skip]

5 years agoUpdate release notes
Bjørn Erik Pedersen [Thu, 25 Jul 2019 16:09:57 +0000 (18:09 +0200)]
Update release notes

5 years agoreleaser: Add release notes draft for 0.56.0
hugoreleaser [Thu, 25 Jul 2019 15:58:15 +0000 (15:58 +0000)]
releaser: Add release notes draft for 0.56.0

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

5 years agoresources: Fix test on Windows
Bjørn Erik Pedersen [Thu, 25 Jul 2019 14:54:05 +0000 (16:54 +0200)]
resources: Fix test on Windows

5 years agodocs: Add Hugo Modules docs
Bjørn Erik Pedersen [Wed, 24 Jul 2019 17:44:57 +0000 (19:44 +0200)]
docs: Add Hugo Modules docs

5 years agoBlock symlink dir traversal for /static
Bjørn Erik Pedersen [Wed, 24 Jul 2019 22:12:40 +0000 (00:12 +0200)]
Block symlink dir traversal for /static

This is in line with how it behaved before, but it was lifted a little for the project mount for Hugo Modules,
but that could create hard-to-detect loops.

5 years agomodules: Gofmt
Bjørn Erik Pedersen [Wed, 24 Jul 2019 21:31:30 +0000 (23:31 +0200)]
modules: Gofmt

5 years agomodules: Rename disabled => disable in config
Bjørn Erik Pedersen [Wed, 24 Jul 2019 19:46:24 +0000 (21:46 +0200)]
modules: Rename disabled => disable in config

5 years agohugolib: Fix broken test
Bjørn Erik Pedersen [Wed, 24 Jul 2019 17:50:34 +0000 (19:50 +0200)]
hugolib: Fix broken test

5 years agohugolib: Add a symdiff test
Bjørn Erik Pedersen [Wed, 24 Jul 2019 08:05:09 +0000 (10:05 +0200)]
hugolib: Add a symdiff test

5 years agodocs: Regenerate CLI docs
Bjørn Erik Pedersen [Wed, 24 Jul 2019 07:40:41 +0000 (09:40 +0200)]
docs: Regenerate CLI docs

5 years agodocs: Regenerate data helpers
Bjørn Erik Pedersen [Wed, 24 Jul 2019 07:39:12 +0000 (09:39 +0200)]
docs: Regenerate data helpers

5 years agoMerge commit '5cb4e46cfa65bddae8ac5344540e3dd1e4c266b2'
Bjørn Erik Pedersen [Wed, 24 Jul 2019 07:36:50 +0000 (09:36 +0200)]
Merge commit '5cb4e46cfa65bddae8ac5344540e3dd1e4c266b2'

5 years agoSquashed 'docs/' changes from 540aeddc7..41aae7abb
Bjørn Erik Pedersen [Wed, 24 Jul 2019 07:36:50 +0000 (09:36 +0200)]
Squashed 'docs/' changes from 540aeddc7..41aae7abb

41aae7abb Better deploy script example

git-subtree-dir: docs
git-subtree-split: 41aae7abb37d43db3a38e09f2ef674cce2c98ce9

5 years agoAdd Hugo Modules
Bjørn Erik Pedersen [Fri, 3 May 2019 07:16:58 +0000 (09:16 +0200)]
Add Hugo Modules

This commit implements Hugo Modules.

This is a broad subject, but some keywords include:

* A new `module` configuration section where you can import almost anything. You can configure both your own file mounts nd the file mounts of the modules you import. This is the new recommended way of configuring what you earlier put in `configDir`, `staticDir` etc. And it also allows you to mount folders in non-Hugo-projects, e.g. the `SCSS` folder in the Bootstrap GitHub project.
* A module consists of a set of mounts to the standard 7 component types in Hugo: `static`, `content`, `layouts`, `data`, `assets`, `i18n`, and `archetypes`. Yes, Theme Components can now include content, which should be very useful, especially in bigger multilingual projects.
* Modules not in your local file cache will be downloaded automatically and even "hot replaced" while the server is running.
* Hugo Modules supports and encourages semver versioned modules, and uses the minimal version selection algorithm to resolve versions.
* A new set of CLI commands are provided to manage all of this: `hugo mod init`,  `hugo mod get`,  `hugo mod graph`,  `hugo mod tidy`, and  `hugo mod vendor`.

All of the above is backed by Go Modules.

Fixes #5973
Fixes #5996
Fixes #6010
Fixes #5911
Fixes #5940
Fixes #6074
Fixes #6082
Fixes #6092

5 years agodeps: Tidy
Bjørn Erik Pedersen [Mon, 22 Jul 2019 22:13:28 +0000 (00:13 +0200)]
deps: Tidy

5 years agoFix livereload for @import case
Bjørn Erik Pedersen [Mon, 22 Jul 2019 11:22:04 +0000 (13:22 +0200)]
Fix livereload for @import case

Fixes #6106

5 years agoreleaser: Remove unused function
peaceiris [Sat, 20 Jul 2019 09:46:13 +0000 (18:46 +0900)]
releaser: Remove unused function

gitLog function is not used

5 years agodeps: Update xerrors
Bjørn Erik Pedersen [Fri, 19 Jul 2019 07:09:04 +0000 (09:09 +0200)]
deps: Update xerrors

To get it to build on Go 1.13.

5 years agotravis: Ignore errors in go mod download
Bjørn Erik Pedersen [Wed, 17 Jul 2019 13:35:31 +0000 (15:35 +0200)]
travis: Ignore errors in go mod download

It sometimes fails with 502 errors, but the dependency download later when tests are run.

5 years agodeps: Update Chroma
Bjørn Erik Pedersen [Tue, 16 Jul 2019 19:08:18 +0000 (21:08 +0200)]
deps: Update Chroma

Fixes #6088

5 years agoresource/postcss: Change postcss to check for local installation under node_modules...
Eric Selin [Fri, 17 Aug 2018 15:30:53 +0000 (17:30 +0200)]
resource/postcss: Change postcss to check for local installation under node_modules/.bin

Fixes #5091

5 years agoMerge commit '35febb2e2a3780c3338a2665fddea7dda28a17f4'
Bjørn Erik Pedersen [Mon, 15 Jul 2019 21:50:56 +0000 (23:50 +0200)]
Merge commit '35febb2e2a3780c3338a2665fddea7dda28a17f4'

5 years agoSquashed 'docs/' changes from 0c3c04fd6..540aeddc7
Bjørn Erik Pedersen [Mon, 15 Jul 2019 21:49:41 +0000 (23:49 +0200)]
Squashed 'docs/' changes from 0c3c04fd6..540aeddc7

540aeddc7 Small fixes for Open Graph internal template
47bbb3fd7 Bump lodash.template from 4.4.0 to 4.5.0 in /themes/gohugoioTheme
64c1cc3db Update title.md
36c27be37 Update configuration.md
4627cfe9a added commento.io to the list
341d9d945 Fix link to font assets
4a6876dec Small typo fix in configuration.md
736d6ddd7 Add bypasscensorship.org showcase.
de7ab636b Use actual width in image processing examples
6c88ab2da Update directory-structure.md
88f559e81 Fix spelling mistakes
7bd427141 Rephrase four points from Hosting on Github docs
bce1b1832 Fix typos for absLangURL and relLangURL functions
abab57335 Update directory-structure.md
a6716f2ed Fix metadata list
5ef61d912 Fix typo
d9e467b8b Actuall show how to generate pages in quickstart
0aadc92e7 Update link to issue theme submission
b1902faaa Remove incorrect note about Hugo snap --classic use.
d451e7362 Update documentation on page variables
ab2233c39 Update publish_to_ghpages.sh
7c120346b Fix typo in syntax highlighting page.
f01dc555d Correct some typos
be825ade9 Videos plural produces og:video
bc962fbdf Updated installing.md file to include linuxbrew installation
08c9f8fc8 Mention 1 MB file size limit in readFile doc
7145e29e2 Fixes bad URL in menus.md for .hasChildren * part of issue #814
0edbd59c4 add warning about .Hugo variable being deprecated
77f74ced5 fix: typo in output-formats.md
f71b67f34 Correct typo "RFC339" to "RFC1123Z" (#837)
424c0207a baseurl -> baseURL
f4e24a03e Render launched; no invite code needed
37e1101d3 Add Render hosting guide
01d0a6481 Bump js-yaml from 3.12.0 to 3.13.1 in /themes/gohugoioTheme
edb7b36b0 Link site hierarchy schema to larger version
af72acda0 Fixes typo in fingerprint.md
0a738467b Adding required XML tag to sample templates
52211f656 Remove note that XML declaration is not needed
a39b9ac87 Adding required XML tag to sample templates
1a44d8a50 Add configuration information for Azure
5b7c6b5a1 remove google plus
5a64301ba HTTPS link to yaml.org/spec/

git-subtree-dir: docs
git-subtree-split: 540aeddc797658a2c3d0e49e944592d2b23b3bb8

5 years agotpl/collections: Add Merge function
Bjørn Erik Pedersen [Thu, 11 Jul 2019 05:12:44 +0000 (07:12 +0200)]
tpl/collections: Add Merge function

Merges two maps recursively and returns a new one. Merge is case-insensitive.

Fixes #5992

5 years agoAdd org to front matter formats
Niklas Fasching [Mon, 17 Jun 2019 12:49:44 +0000 (14:49 +0200)]
Add org to front matter formats

actually it's 5, there's also csv. Afaict it's not meant to be used in that way
though so let's just add org.

5 years agodeps: Update go-org
Niklas Fasching [Sun, 7 Jul 2019 19:54:37 +0000 (21:54 +0200)]
deps: Update go-org

- added support for anonymous footnotes
- changed source block html output to more closely resemble emacs org-export
  output

5 years agoFix typo s/Meny/Menu/
Kaushal Modi [Tue, 9 Jul 2019 14:29:30 +0000 (10:29 -0400)]
Fix typo s/Meny/Menu/

5 years agohugolib: Add testfile to .gitignore
Bjørn Erik Pedersen [Sun, 7 Jul 2019 11:01:30 +0000 (13:01 +0200)]
hugolib: Add testfile to .gitignore

5 years agotpl/tplimpl: Regenerate templates
Bjørn Erik Pedersen [Wed, 26 Jun 2019 20:39:32 +0000 (22:39 +0200)]
tpl/tplimpl: Regenerate templates

5 years agoPagination - do not render href if no next item
Mark Mandel [Wed, 26 Jun 2019 20:31:06 +0000 (13:31 -0700)]
Pagination - do not render href if no next item

When using a html link checker with Hugo, this template consistently causes errors, as it renders `href=""` attributes when next/previous is disabled.

This change makes it so that the `href` attribute is not rendered at all if `HasNext` is false - which is better semantically, and makes link checking far easier.

5 years agoInclude path to source page in non-relative ref/relref warning
Justin Van Patten [Wed, 26 Jun 2019 06:26:02 +0000 (23:26 -0700)]
Include path to source page in non-relative ref/relref warning

We occasionally see warnings when building our site:

```
WARN 2019/06/25 23:07:08 make non-relative ref/relref page reference(s) in page %q absolute, e.g. {{< ref "/blog/my-post.md" >}}
```

But the `%q` value is missing, making it difficult to track down the source of the warning.

This change addresses that, by including the source path in the warning:

```
WARN 2019/06/25 23:07:31 make non-relative ref/relref page reference(s) in page "blog/my-post/index.md" absolute, e.g. {{< ref "/blog/my-post.md" >}}
```

5 years agohugolib: Add another site benchmark
Bjørn Erik Pedersen [Tue, 25 Jun 2019 21:56:06 +0000 (23:56 +0200)]
hugolib: Add another site benchmark

Also rework test test setup so the benchmarks can also be run as tests, which
is useful when creating new benchmarks an make sure they ... work.

5 years agocommands: Remove comma after URL in new site output
Joshua Arnott [Wed, 19 Jun 2019 21:03:30 +0000 (22:03 +0100)]
commands: Remove comma after URL in new site output

Some terminals include the comma in the URL when hyperlinking, resulting in a 404

5 years agodeps: Revert to an older version of Blackfriday
Bjørn Erik Pedersen [Sun, 16 Jun 2019 20:13:23 +0000 (22:13 +0200)]
deps: Revert to an older version of Blackfriday

See #6040

5 years agoexamples: Update link to prevent redirect
Christian Oliff [Wed, 12 Jun 2019 11:56:05 +0000 (20:56 +0900)]
examples: Update link to prevent redirect

5 years agoexamples: Update URLs
Christian Oliff [Wed, 12 Jun 2019 10:29:19 +0000 (19:29 +0900)]
examples: Update URLs

5 years agoreleaser: Update Go Releaser and consolidate the 2 configs
Bjørn Erik Pedersen [Sat, 8 Jun 2019 12:14:27 +0000 (14:14 +0200)]
releaser: Update Go Releaser and consolidate the 2 configs

Fixes #5949

5 years agotpl/collections: Fix slice type handling in sort
Bjørn Erik Pedersen [Sun, 9 Jun 2019 10:50:53 +0000 (12:50 +0200)]
tpl/collections: Fix slice type handling in sort

The `sort` template func was producing a `[]page.Page` which did not work in `.Paginate`.

Fixes #6023

5 years agohugolib: Fix bundle path when slug is set
Bjørn Erik Pedersen [Fri, 31 May 2019 07:40:58 +0000 (09:40 +0200)]
hugolib: Fix bundle path when slug is set

Fixes #4870

5 years agotpl/collections: Unwrap any interface value in sort and where
Bjørn Erik Pedersen [Mon, 27 May 2019 20:57:57 +0000 (22:57 +0200)]
tpl/collections: Unwrap any interface value in sort and where

Hugo `0.55.0` introduced some new interface types for `Page` etc.

This worked great in general, but there were cases where this would fail in `where` and `sort`.

One such example would be sorting by `MenuItem.Page.Date` where `Page` on `MenuItem` was a small subset of the bigger `page.Page` interface.

This commit fixes that by unwrapping such interface values.

Fixes #5989

5 years agoRefactor Org mode front matter: Introduce '#+KEY[]:' array notation
Niklas Fasching [Tue, 4 Jun 2019 10:21:48 +0000 (12:21 +0200)]
Refactor Org mode front matter: Introduce '#+KEY[]:' array notation

Hugo requires some front matter values to be arrays (e.g. for taxonomies).
Org mode front matter syntax (`#+KEY: VALUE`) does however not support anything
but string values normally - which is why goorgeous hardcoded the values for
the keys tags, categories & aliases to be parsed as string arrays. This causes
problems with custom taxonomies.

A simple thing we can do instead is make keywords ending in '[]' be parsed as
string arrays.

5 years agoImprove Org mode support: Replace goorgeous with go-org
Niklas Fasching [Tue, 4 Jun 2019 10:21:25 +0000 (12:21 +0200)]
Improve Org mode support: Replace goorgeous with go-org

Sadly, goorgeous has not been updated in over a year and still has a lot of
open issues (e.g. no support for nested lists).

go-org fixes most of those issues and supports a larger subset of Org mode
syntax.

5 years agodeploy: Default --target to the first deployment target
Robert van Gent [Fri, 31 May 2019 17:10:38 +0000 (10:10 -0700)]
deploy: Default --target to the first deployment target

5 years agoAdd safety barrier between concatenated javascript resources
Vincent Fiduccia [Sun, 2 Jun 2019 06:56:19 +0000 (23:56 -0700)]
Add safety barrier between concatenated javascript resources

5 years agoUpdate CLI doc for "long" form
Robert van Gent [Fri, 31 May 2019 17:00:15 +0000 (10:00 -0700)]
Update CLI doc for "long" form

5 years agoDrop dashes in http header matcher attributes; other changes from code review
Robert van Gent [Fri, 31 May 2019 16:55:48 +0000 (09:55 -0700)]
Drop dashes in http header matcher attributes; other changes from code review

5 years agodocs: Add documentation for "hugo deploy"
Robert van Gent [Thu, 30 May 2019 20:29:06 +0000 (13:29 -0700)]
docs: Add documentation for "hugo deploy"

5 years agodeploy: remove TODO comment about subfolders; handled by GoCDK blob URLs
Robert van Gent [Thu, 30 May 2019 20:31:27 +0000 (13:31 -0700)]
deploy: remove TODO comment about subfolders; handled by GoCDK blob URLs

5 years agodeps: Update gocloud.dev to v0.15.0.
Robert van Gent [Thu, 30 May 2019 19:15:47 +0000 (12:15 -0700)]
deps: Update gocloud.dev to v0.15.0.

5 years agotpl/collections: Convert numeric values to float64 and compare them
Anton Harniakou [Thu, 30 May 2019 09:32:58 +0000 (12:32 +0300)]
tpl/collections: Convert numeric values to float64 and compare them

Fixes #5685

5 years agoresources: Return nil when not found in resources.Get
Bjørn Erik Pedersen [Wed, 29 May 2019 20:33:03 +0000 (22:33 +0200)]
resources: Return nil when not found in resources.Get

Fixes #5999

5 years agodeps: Update Viper
Bjørn Erik Pedersen [Tue, 28 May 2019 14:11:09 +0000 (16:11 +0200)]
deps: Update Viper

This will hopefully improve the dependency/install problems we have seen lately.

See #5954

5 years agoRemove references to Google+
Bruno Amaral [Sun, 26 May 2019 17:24:46 +0000 (18:24 +0100)]
Remove references to Google+

According to google, this is no longer supported and structured data should be used instead: https://support.google.com/webmasters/answer/6083347?hl=en

5 years agoUpdate gitmap to get CommitDate field
Bjørn Erik Pedersen [Sat, 25 May 2019 08:43:09 +0000 (10:43 +0200)]
Update gitmap to get CommitDate field