brevno-suite/hugo
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

5 years agoMerge commit 'be04ece8590f775a52ea167fbe4555753e8c5211'
Bjørn Erik Pedersen [Sat, 25 May 2019 08:41:51 +0000 (10:41 +0200)]
Merge commit 'be04ece8590f775a52ea167fbe4555753e8c5211'

5 years agoSquashed 'docs/' changes from 50c02516c..0c3c04fd6
Bjørn Erik Pedersen [Sat, 25 May 2019 08:41:23 +0000 (10:41 +0200)]
Squashed 'docs/' changes from 50c02516c..0c3c04fd6

0c3c04fd6 Merge pull request #827 from BCNelson/range-patch
b14dd3505 Updated link to Go Docs to more helpful page
c3d83149a Boolean Values in the Where Function
56d4cea3c hugo-extended no longer the default
e9b15c698 Update index.md
11de98e0d Release 0.55.6
d2def17f4 Merge branch 'release-0.55.6'
115457b70 releaser: Add release notes to /docs for release of 0.55.6
25855690d Fix misspelling
fc5e43db2 Update 404.md with Netlify Instructions
9f684318f Removed mentioning of removed --stepAnalysis command line option
86ba9071c Related md5 and aliases for sha1/sha256
15f48966a Added related sha function into the See Also
5e08b6930 Fix date description
908e87ab2 Revert docs/config.toml changes
c925646cf Add a "deploy" command
e765084dd Update sectionvars.md
e08be4d81 Update sectionvars.md
7c9653cbe Hugo 0.55.5
1035ff028 releaser: Add release notes to /docs for release of 0.55.5
cda21f9d4 docs: Regenerate docs helper

git-subtree-dir: docs
git-subtree-split: 0c3c04fd63a7f140bdca0d3ca9b1e9dc794ebd77

5 years agocommands: Create new 'hugo list all' command
Ruslan Nasonov [Sat, 4 May 2019 14:21:21 +0000 (21:21 +0700)]
commands: Create new 'hugo list all' command

New:
- command `hugo list all`, return all posts meta in csv format

Refactoring:
- move common parts in commands/list.go to function `buildSites`
- change way to detect path to content

See #5904

5 years agoMedium -> Hugo exporting tool
Brice BERDAH [Fri, 24 May 2019 09:40:30 +0000 (11:40 +0200)]
Medium -> Hugo exporting tool

Suggesting a simple yet powerful tool for people looking to export their Medium blog to Hugo

5 years agodockerfile: Switch base image for final build
Brian 'Redbeard' Harrington [Sat, 18 May 2019 05:39:14 +0000 (22:39 -0700)]
dockerfile:  Switch base image for final build

Switching the base image for the final build to alpine as it still
provides a minimal interface, but has a mechanism for easily including
relevant CA certificates.  This is currently pinned to a tagged version,
though since none of the underlying mechanisms are used this should
balance both remaining stable, supported for a period of time, and
providing usable functionality.

Resolves #5970
Affects #5056

5 years agoMerge branch 'release-0.55.6'
Bjørn Erik Pedersen [Sat, 18 May 2019 08:18:23 +0000 (10:18 +0200)]
Merge branch 'release-0.55.6'

5 years agoreleaser: Prepare repository for 0.56.0-DEV
hugoreleaser [Sat, 18 May 2019 07:57:50 +0000 (07:57 +0000)]
releaser: Prepare repository for 0.56.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.55.6 v0.55.6
hugoreleaser [Sat, 18 May 2019 07:55:28 +0000 (07:55 +0000)]
releaser: Add release notes to /docs for release of 0.55.6

[ci skip]

5 years agoreleaser: Bump versions for release of 0.55.6
hugoreleaser [Sat, 18 May 2019 07:55:28 +0000 (07:55 +0000)]
releaser: Bump versions for release of 0.55.6

[ci skip]

5 years agoRelease 0.55.6
Bjørn Erik Pedersen [Sat, 18 May 2019 07:49:46 +0000 (09:49 +0200)]
Release 0.55.6

5 years agoreleaser: Add release notes draft for 0.55.6
hugoreleaser [Sat, 18 May 2019 07:39:23 +0000 (07:39 +0000)]
releaser: Add release notes draft for 0.55.6

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

5 years agohugolib: Prevent parallel server rebuilds
Bjørn Erik Pedersen [Sat, 18 May 2019 06:38:58 +0000 (08:38 +0200)]
hugolib: Prevent parallel server rebuilds

There have been reports about infrequent paginator crashes when running the Hugo server since 0.55.0.

The reason have been narrowed down to that of parallel rebuilds.

This isn't a new thing, but the changes in 0.55.0 made it extra important to serialize the page initialization.

This commit fixes that by protecting the `Build` method with a lock when running in server mode.

Fixes #5885
Fixes #5968

5 years agotpl: Fix internal templates usage of safeHTMLAttr
Rodolfo Carvalho [Mon, 22 Apr 2019 14:26:36 +0000 (15:26 +0100)]
tpl: Fix internal templates usage of safeHTMLAttr

The `safeHTMLAttr` function operates on a full attribute definition, not
just within the attribute value.

Docs: https://gohugo.io/functions/safehtmlattr/

For `opengraph.html`, run the whole `content` HTML attribute through
`safeHTMLAttr`. That will preserve `+` signs in formatted dates.

For `vimeo_simple.html`, `safeHTMLAttr` was in the context of an
attribute value, thus having no effect. In this case we could replace it
with `safeURL`, but since the code is coming from an API it is safer to
just let Go's template engine sanitize the value as it already does with
`provider_url`.

Fixes #5236 (no need to change Go upstream)
Related to #5246

5 years agoUpdate to Go 1.12.5 and Go 1.11.10
Bjørn Erik Pedersen [Wed, 15 May 2019 05:49:04 +0000 (07:49 +0200)]
Update to Go 1.12.5 and Go 1.11.10

Fixes #5944

5 years agodeploy: Add tests; fix Windows
Robert van Gent [Fri, 3 May 2019 23:38:05 +0000 (16:38 -0700)]
deploy: Add tests; fix Windows

5 years agodeploy: Support configuration of upload order
Robert van Gent [Fri, 3 May 2019 16:30:46 +0000 (09:30 -0700)]
deploy: Support configuration of upload order

5 years agodeploy: Support invalidating a CloudFront CDN cache
Robert van Gent [Wed, 1 May 2019 20:25:06 +0000 (13:25 -0700)]
deploy: Support invalidating a CloudFront CDN cache

5 years agoi18n: Move the package below /langs
Bjørn Erik Pedersen [Sat, 4 May 2019 16:25:56 +0000 (18:25 +0200)]
i18n: Move the package below /langs

To get fewer top level packages.

5 years agodeploy: compute MD5 by reading if List didn't provide one
Robert van Gent [Fri, 3 May 2019 20:28:35 +0000 (13:28 -0700)]
deploy: compute MD5 by reading if List didn't provide one

5 years agoRevert docs/config.toml changes
Robert van Gent [Fri, 3 May 2019 15:30:00 +0000 (08:30 -0700)]
Revert docs/config.toml changes

5 years agotravis: Use proxy.golang.org
Bjørn Erik Pedersen [Fri, 3 May 2019 06:22:24 +0000 (08:22 +0200)]
travis: Use proxy.golang.org

5 years agoAdd a "deploy" command
Robert van Gent [Thu, 20 Dec 2018 19:22:03 +0000 (11:22 -0800)]
Add a "deploy" command

5 years agohugolib: Disable racy test
Bjørn Erik Pedersen [Fri, 3 May 2019 07:20:39 +0000 (09:20 +0200)]
hugolib: Disable racy test

See #5926

5 years agoreleaser: Prepare repository for 0.56.0-DEV
hugoreleaser [Thu, 2 May 2019 13:06:04 +0000 (13:06 +0000)]
releaser: Prepare repository for 0.56.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.55.5 v0.55.5
hugoreleaser [Thu, 2 May 2019 13:03:34 +0000 (13:03 +0000)]
releaser: Add release notes to /docs for release of 0.55.5

[ci skip]

5 years agoreleaser: Bump versions for release of 0.55.5
hugoreleaser [Thu, 2 May 2019 13:03:34 +0000 (13:03 +0000)]
releaser: Bump versions for release of 0.55.5

[ci skip]

5 years agoRelease 0.55.5
Bjørn Erik Pedersen [Thu, 2 May 2019 12:50:04 +0000 (14:50 +0200)]
Release 0.55.5

5 years agoreleaser: Add release notes draft for 0.55.5
hugoreleaser [Thu, 2 May 2019 12:36:11 +0000 (12:36 +0000)]
releaser: Add release notes draft for 0.55.5

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

5 years agodocs: Regenerate docs helper
Bjørn Erik Pedersen [Thu, 2 May 2019 12:26:02 +0000 (14:26 +0200)]
docs: Regenerate docs helper

5 years agoMerge commit 'f147b5c53eda15982e0fe762847532eeddb7485f'
Bjørn Erik Pedersen [Thu, 2 May 2019 12:24:13 +0000 (14:24 +0200)]
Merge commit 'f147b5c53eda15982e0fe762847532eeddb7485f'

5 years agoSquashed 'docs/' changes from 13097daf2..50c02516c
Bjørn Erik Pedersen [Thu, 2 May 2019 12:23:40 +0000 (14:23 +0200)]
Squashed 'docs/' changes from 13097daf2..50c02516c

50c02516c resources: Clean
380554caf Added Pharmaseal case study
bd462671d Fix typo
0522a2595 no -> fr
f2c4671db Fix broken Netlify setup
056da25f2 Release 0.55.4
2ddca746e Merge branch 'temp554'
3d6cf9967 releaser: Add release notes to /docs for release of 0.55.4
9dc637cab Minor link fix
95186103c Release 0.55.3
b2449cd25 releaser: Add release notes to /docs for release of 0.55.3
55934c3a2 docs: Regenerate docs helper

git-subtree-dir: docs
git-subtree-split: 50c02516cb7237dc1b95e98fe433327a4bcefc10

5 years agooutput: Fix permalink in sitemap etc. when multiple permalinkable output formats
Bjørn Erik Pedersen [Thu, 2 May 2019 07:54:26 +0000 (09:54 +0200)]
output: Fix permalink in sitemap etc. when multiple permalinkable output formats

In Hugo 0.55.0 we made AMP `permalinkable`. We also render the output formats in their natural sort order, meaning `AMP` will be rendered before `HTML`. References in the sitemap would then point to the AMP version, and this is normally not what you'd want.

This commit fixes that by making `HTML` by default sort before the others.

If this is not you want, you can set `weight` on the output format configuration.

Fixes #5910

5 years agohugolib: Fix PrevInSection/NextInSection for nested sections
Bjørn Erik Pedersen [Wed, 1 May 2019 15:51:03 +0000 (17:51 +0200)]
hugolib: Fix PrevInSection/NextInSection for nested sections

This was broken in Hugo 0.55.0.

Fixes #5883

5 years agolazy: Fix concurrent initialization order
Bjørn Erik Pedersen [Mon, 29 Apr 2019 17:05:28 +0000 (19:05 +0200)]
lazy: Fix concurrent initialization order

Fixes #5901

5 years agoUpdate blackfriday to v1.5.2
David Birks [Mon, 29 Apr 2019 18:58:03 +0000 (14:58 -0400)]
Update blackfriday to v1.5.2

5 years agotpl/compare: Fix nil compare in eq/ne for interface values
Bjørn Erik Pedersen [Mon, 29 Apr 2019 08:48:36 +0000 (10:48 +0200)]
tpl/compare: Fix nil compare in eq/ne for interface values

Fixes #5905

5 years agotpl: Fix hugo package name and add godocs
Cameron Moore [Fri, 28 Dec 2018 18:48:12 +0000 (12:48 -0600)]
tpl: Fix hugo package name and add godocs

5 years agotpl: Provide more detailed errors in Where
Cameron Moore [Fri, 28 Dec 2018 04:28:54 +0000 (22:28 -0600)]
tpl: Provide more detailed errors in Where

5 years agoreleaser: Prepare repository for 0.56.0-DEV
hugoreleaser [Thu, 25 Apr 2019 07:41:16 +0000 (07:41 +0000)]
releaser: Prepare repository for 0.56.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.55.4 v0.55.4
hugoreleaser [Thu, 25 Apr 2019 07:38:48 +0000 (07:38 +0000)]
releaser: Add release notes to /docs for release of 0.55.4

[ci skip]

5 years agoreleaser: Bump versions for release of 0.55.4
hugoreleaser [Thu, 25 Apr 2019 07:38:48 +0000 (07:38 +0000)]
releaser: Bump versions for release of 0.55.4

[ci skip]

5 years agoRelease 0.55.4
Bjørn Erik Pedersen [Thu, 25 Apr 2019 07:28:17 +0000 (09:28 +0200)]
Release 0.55.4

5 years agoreleaser: Add release notes draft for 0.55.4
hugoreleaser [Thu, 25 Apr 2019 07:26:35 +0000 (07:26 +0000)]
releaser: Add release notes draft for 0.55.4

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

5 years agohugolib: Fix shortcode version=1 logic
Bjørn Erik Pedersen [Wed, 24 Apr 2019 12:05:37 +0000 (14:05 +0200)]
hugolib: Fix shortcode version=1 logic

Fixes #5831

5 years agohugolib: Avoid recloning of shortcode templates
Bjørn Erik Pedersen [Tue, 23 Apr 2019 10:33:51 +0000 (12:33 +0200)]
hugolib: Avoid recloning of shortcode templates

```bash
benchmark                                    old ns/op     new ns/op     delta
BenchmarkSiteNew/Bundle_with_image-4         14572242      14382188      -1.30%
BenchmarkSiteNew/Bundle_with_JSON_file-4     13683922      13738196      +0.40%
BenchmarkSiteNew/Multiple_languages-4        41912231      25192494      -39.89%

benchmark                                    old allocs     new allocs     delta
BenchmarkSiteNew/Bundle_with_image-4         57496          57493          -0.01%
BenchmarkSiteNew/Bundle_with_JSON_file-4     57492          57501          +0.02%
BenchmarkSiteNew/Multiple_languages-4        242422         118809         -50.99%

benchmark                                    old bytes     new bytes     delta
BenchmarkSiteNew/Bundle_with_image-4         3845077       3844065       -0.03%
BenchmarkSiteNew/Bundle_with_JSON_file-4     3627442       3627798       +0.01%
BenchmarkSiteNew/Multiple_languages-4        13963502      7543885       -45.97%
```

Fixes #5890

5 years agoi18n: Avoid rebuilding the Translations map for every lookup
Bjørn Erik Pedersen [Tue, 23 Apr 2019 17:24:19 +0000 (19:24 +0200)]
i18n: Avoid rebuilding the Translations map for every lookup

```bash
benchmark                                                    old ns/op     new ns/op     delta
BenchmarkI18nTranslate/all-present-4                         764           757           -0.92%
BenchmarkI18nTranslate/present-in-default-4                  2578          1457          -43.48%
BenchmarkI18nTranslate/present-in-current-4                  764           766           +0.26%
BenchmarkI18nTranslate/missing-4                             3362          1103          -67.19%
BenchmarkI18nTranslate/file-missing-4                        4646          3611          -22.28%
BenchmarkI18nTranslate/context-provided-4                    2013          2014          +0.05%
BenchmarkI18nTranslate/same-id-and-translation-4             1961          784           -60.02%
BenchmarkI18nTranslate/same-id-and-translation-default-4     3717          1405          -62.20%
BenchmarkI18nTranslate/unknown-language-code-4               1775          1787          +0.68%

benchmark                                                    old allocs     new allocs     delta
BenchmarkI18nTranslate/all-present-4                         6              6              +0.00%
BenchmarkI18nTranslate/present-in-default-4                  16             10             -37.50%
BenchmarkI18nTranslate/present-in-current-4                  6              6              +0.00%
BenchmarkI18nTranslate/missing-4                             20             8              -60.00%
BenchmarkI18nTranslate/file-missing-4                        27             21             -22.22%
BenchmarkI18nTranslate/context-provided-4                    15             15             +0.00%
BenchmarkI18nTranslate/same-id-and-translation-4             12             6              -50.00%
BenchmarkI18nTranslate/same-id-and-translation-default-4     22             10             -54.55%
BenchmarkI18nTranslate/unknown-language-code-4               13             13             +0.00%

benchmark                                                    old bytes     new bytes     delta
BenchmarkI18nTranslate/all-present-4                         152           152           +0.00%
BenchmarkI18nTranslate/present-in-default-4                  1144          216           -81.12%
BenchmarkI18nTranslate/present-in-current-4                  152           152           +0.00%
BenchmarkI18nTranslate/missing-4                             2008          152           -92.43%
BenchmarkI18nTranslate/file-missing-4                        1208          600           -50.33%
BenchmarkI18nTranslate/context-provided-4                    704           704           +0.00%
BenchmarkI18nTranslate/same-id-and-translation-4             1080          152           -85.93%
BenchmarkI18nTranslate/same-id-and-translation-default-4     2073          216           -89.58%
BenchmarkI18nTranslate/unknown-language-code-4               696           696           +0.00%
```

Fixes #5892

5 years agocommands: Init mem profile at the end
Bjørn Erik Pedersen [Tue, 23 Apr 2019 15:14:02 +0000 (17:14 +0200)]
commands: Init mem profile at the end

Much more useful ...

5 years agohugolib: No links for bundled pages
Bjørn Erik Pedersen [Mon, 22 Apr 2019 07:13:47 +0000 (09:13 +0200)]
hugolib: No links for bundled pages

This fixes a bug introduced in Hugo 0.55.

Fixes #5882

5 years agoreleaser: Prepare repository for 0.56.0-DEV
hugoreleaser [Sat, 20 Apr 2019 14:25:57 +0000 (14:25 +0000)]
releaser: Prepare repository for 0.56.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.55.3 v0.55.3
hugoreleaser [Sat, 20 Apr 2019 14:23:12 +0000 (14:23 +0000)]
releaser: Add release notes to /docs for release of 0.55.3

[ci skip]

5 years agoreleaser: Bump versions for release of 0.55.3
hugoreleaser [Sat, 20 Apr 2019 14:23:12 +0000 (14:23 +0000)]
releaser: Bump versions for release of 0.55.3

[ci skip]

5 years agoRelease 0.55.3
Bjørn Erik Pedersen [Sat, 20 Apr 2019 14:12:42 +0000 (16:12 +0200)]
Release 0.55.3

5 years agoreleaser: Add release notes draft for 0.55.3
hugoreleaser [Sat, 20 Apr 2019 14:08:54 +0000 (14:08 +0000)]
releaser: Add release notes draft for 0.55.3

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

5 years agodocs: Regenerate docs helper
Bjørn Erik Pedersen [Sat, 20 Apr 2019 13:20:08 +0000 (15:20 +0200)]
docs: Regenerate docs helper

5 years agoMerge commit 'a0c28c943c2f4714fa340b22a583b96f5013090b'
Bjørn Erik Pedersen [Sat, 20 Apr 2019 13:19:38 +0000 (15:19 +0200)]
Merge commit 'a0c28c943c2f4714fa340b22a583b96f5013090b'

5 years agoSquashed 'docs/' changes from 0f2bf195e..13097daf2
Bjørn Erik Pedersen [Sat, 20 Apr 2019 13:18:59 +0000 (15:18 +0200)]
Squashed 'docs/' changes from 0f2bf195e..13097daf2

13097daf2 Update shortcode docs vs 0.55
9a7e19231 Update URL docs for relative URLs etc
bd58dd877 Adjust Output Formats docs
f3e9fbc00 Document output format `permalinkable`
3778ce689 Update partials.md
7b207a404 Partial: Update variable name in example
7d7b1f03c Document partials returning a value.
7ae93b7ca Merge branch 'temp552'
81910d266 releaser: Add release notes to /docs for release of 0.55.2
c166cef47 Fix typo
23adeb672 Point mmark links to its new repository
369a87339 Merge branch 'temp551'
eb6097e9f Bump to 0.55.1
766ee61a8 releaser: Add release notes to /docs for release of 0.55.1
a5a5f5d75 Start of taxonomy docs update for Hugo 0.55
fb5f75e9a Remove the space in `. RelPermalink`

git-subtree-dir: docs
git-subtree-split: 13097daf2e22fabfdb7528ca8709e86dba2b4a72

5 years agoFix links for non-HTML output formats
Bjørn Erik Pedersen [Sat, 20 Apr 2019 09:50:57 +0000 (11:50 +0200)]
Fix links for non-HTML output formats

They were not correct for regular pages.

Fixes #5877

5 years agohugolib: Add some OutputFormats.Get tests
Bjørn Erik Pedersen [Fri, 19 Apr 2019 08:41:56 +0000 (10:41 +0200)]
hugolib: Add some OutputFormats.Get tests

See #5877

5 years agoFix menu URL when multiple permalinkable output formats
Bjørn Erik Pedersen [Fri, 19 Apr 2019 07:18:12 +0000 (09:18 +0200)]
Fix menu URL when multiple permalinkable output formats

In Hugo `0.55` we introduced the `permalinkable` config attribute on Output Format, default enabled for `AMP` and `HTML`.

This meant that a Page could have different `RelPermalink` and `Permalink` depending on the rendering format.

The menu `URL` did not reflect that fact.

Fixes #5849

5 years agohugolib: Add some integration tests for in/uniq using Pages
Bjørn Erik Pedersen [Fri, 19 Apr 2019 07:07:21 +0000 (09:07 +0200)]
hugolib: Add some integration tests for in/uniq using Pages

See #5875
See #5852

5 years agotpl/collections: Return error on invalid input in in
Bjørn Erik Pedersen [Fri, 19 Apr 2019 06:58:12 +0000 (08:58 +0200)]
tpl/collections: Return error on invalid input in in

See #5875

5 years agotpl/collections: Make Pages etc. work with the in func
Bjørn Erik Pedersen [Thu, 18 Apr 2019 15:06:54 +0000 (17:06 +0200)]
tpl/collections: Make Pages etc. work with the in func

Fixes #5875

5 years agotpl/collections: Make Pages etc. work in uniq
Bjørn Erik Pedersen [Thu, 18 Apr 2019 08:27:23 +0000 (10:27 +0200)]
tpl/collections: Make Pages etc. work in uniq

Fixes #5852

5 years agocommands: Replace IsDraft with Draft in list command
Bjørn Erik Pedersen [Thu, 18 Apr 2019 07:25:40 +0000 (09:25 +0200)]
commands: Replace IsDraft with Draft in list command

Fixes #5873

5 years agoreleaser: Prepare repository for 0.56.0-DEV
hugoreleaser [Wed, 17 Apr 2019 12:22:55 +0000 (12:22 +0000)]
releaser: Prepare repository for 0.56.0-DEV

[ci skip]

5 years agoreleaser: Add release notes to /docs for release of 0.55.2 v0.55.2
hugoreleaser [Wed, 17 Apr 2019 12:20:37 +0000 (12:20 +0000)]
releaser: Add release notes to /docs for release of 0.55.2

[ci skip]

5 years agoreleaser: Bump versions for release of 0.55.2
hugoreleaser [Wed, 17 Apr 2019 12:20:37 +0000 (12:20 +0000)]
releaser: Bump versions for release of 0.55.2

[ci skip]

5 years agoRelease 0.55.2
Bjørn Erik Pedersen [Wed, 17 Apr 2019 12:13:46 +0000 (14:13 +0200)]
Release 0.55.2

5 years agoreleaser: Add release notes draft for 0.55.2
hugoreleaser [Wed, 17 Apr 2019 12:10:37 +0000 (12:10 +0000)]
releaser: Add release notes draft for 0.55.2

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

5 years agohugolib: Add more tests for Permalinkable
Bjørn Erik Pedersen [Wed, 17 Apr 2019 11:17:26 +0000 (13:17 +0200)]
hugolib: Add more tests for Permalinkable

See #5849

5 years agohugolib: Fix Pages reinitialization on rebuilds
Bjørn Erik Pedersen [Wed, 17 Apr 2019 08:36:36 +0000 (10:36 +0200)]
hugolib: Fix Pages reinitialization on rebuilds

Which had some unpredictable behaviour when using `.Pages` on home page etc. that had a content page.

Fixes #5833

5 years agotpl/tplimpl: Handle late transformation of templates
Bjørn Erik Pedersen [Tue, 16 Apr 2019 07:13:55 +0000 (09:13 +0200)]
tpl/tplimpl: Handle late transformation of templates

Fixes #5865

5 years agohugolib: Fix shortcode namespace issue
Bjørn Erik Pedersen [Mon, 15 Apr 2019 13:17:46 +0000 (15:17 +0200)]
hugolib: Fix shortcode namespace issue

Fixes #5863