brevno-suite/hugo
4 years agoPull in latest Go 1.16 template source
Bjørn Erik Pedersen [Wed, 17 Feb 2021 10:57:23 +0000 (11:57 +0100)]
Pull in latest Go 1.16 template source

4 years agoAdd breaking tests for "map read and map write in templates"
Bjørn Erik Pedersen [Fri, 29 Jan 2021 16:20:55 +0000 (17:20 +0100)]
Add breaking tests for "map read and map write in templates"

The fix upstream in Go was reverted, so we apply a temporary patch for this in Hugo.

Updates #7293

4 years agoPull in latest Go template source
Bjørn Erik Pedersen [Fri, 29 Jan 2021 16:15:42 +0000 (17:15 +0100)]
Pull in latest Go template source

4 years agoExpand template newline testcase to commands
Bjørn Erik Pedersen [Thu, 3 Dec 2020 15:42:24 +0000 (16:42 +0100)]
Expand template newline testcase to commands

4 years agoAdd a test case for Go 1.16 template action newlines
Bjørn Erik Pedersen [Thu, 3 Dec 2020 12:54:45 +0000 (13:54 +0100)]
Add a test case for Go 1.16 template action newlines

4 years agotpl/internal: Synch Go templates fork with Go 1.16dev
Bjørn Erik Pedersen [Thu, 3 Dec 2020 12:50:17 +0000 (13:50 +0100)]
tpl/internal: Synch Go templates fork with Go 1.16dev

4 years agodeps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13
Bjørn Erik Pedersen [Thu, 18 Feb 2021 08:32:34 +0000 (09:32 +0100)]
deps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13

Fixes #8258

4 years agobuild(deps): bump github.com/frankban/quicktest from 1.11.2 to 1.11.3
dependabot[bot] [Tue, 16 Feb 2021 20:24:06 +0000 (20:24 +0000)]
build(deps): bump github.com/frankban/quicktest from 1.11.2 to 1.11.3

Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest) from 1.11.2 to 1.11.3.
- [Release notes](https://github.com/frankban/quicktest/releases)
- [Commits](https://github.com/frankban/quicktest/compare/v1.11.2...v1.11.3)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.32.0 to 0.39.0
dependabot[bot] [Tue, 16 Feb 2021 17:51:43 +0000 (17:51 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.32.0 to 0.39.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.32.0 to 0.39.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.32.0...v0.39.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/aws/aws-sdk-go from 1.36.33 to 1.37.11
dependabot[bot] [Tue, 16 Feb 2021 15:18:10 +0000 (15:18 +0000)]
build(deps): bump github.com/aws/aws-sdk-go from 1.36.33 to 1.37.11

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.36.33 to 1.37.11.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.36.33...v1.37.11)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/sanity-io/litter from 1.3.0 to 1.5.0
dependabot[bot] [Tue, 16 Feb 2021 15:16:43 +0000 (15:16 +0000)]
build(deps): bump github.com/sanity-io/litter from 1.3.0 to 1.5.0

Bumps [github.com/sanity-io/litter](https://github.com/sanity-io/litter) from 1.3.0 to 1.5.0.
- [Release notes](https://github.com/sanity-io/litter/releases)
- [Changelog](https://github.com/sanity-io/litter/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sanity-io/litter/compare/v1.3.0...v1.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agobuild(deps): bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5
dependabot[bot] [Tue, 16 Feb 2021 15:16:37 +0000 (15:16 +0000)]
build(deps): bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5

Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/olekukonko/tablewriter/releases)
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.4...v0.0.5)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agodeps: Update to esbuild v0.8.46
Bjørn Erik Pedersen [Tue, 16 Feb 2021 15:12:27 +0000 (16:12 +0100)]
deps: Update to esbuild v0.8.46

4 years agomodules: Add config option modules.vendorClosest
Bjørn Erik Pedersen [Sun, 14 Feb 2021 18:24:13 +0000 (19:24 +0100)]
modules: Add config option modules.vendorClosest

Fixes #8235
Fixes #8242

4 years agojs: Fix potential path issue on Windows
Bjørn Erik Pedersen [Mon, 1 Feb 2021 11:49:08 +0000 (12:49 +0100)]
js: Fix potential path issue on Windows

4 years agobuild(deps): bump google.golang.org/api from 0.26.0 to 0.40.0
dependabot[bot] [Sun, 14 Feb 2021 17:37:44 +0000 (17:37 +0000)]
build(deps): bump google.golang.org/api from 0.26.0 to 0.40.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.26.0 to 0.40.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.26.0...v0.40.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoChange version string format and add VendorInfo to help with issue triaging
Anthony Fok [Tue, 16 Feb 2021 15:08:24 +0000 (08:08 -0700)]
Change version string format and add VendorInfo to help with issue triaging

* Change version string format as proposed by @moorereason

 1. shorten program name
 2. make version string semver compliant with +extended.
    The slash is not allowed in semver.
 3. Use key=value pairs for BuildDate etc.

* Add optional vendorInfo to version string

to help with issue triaging, e.g. VendorInfo=debian:0.80.0-7

4 years agomodules: Allow absolute paths for any modules resolved via project replacement
Bjørn Erik Pedersen [Mon, 15 Feb 2021 10:11:34 +0000 (11:11 +0100)]
modules: Allow absolute paths for any modules resolved via project replacement

Fixes #8240

4 years agomodules: Throw an error running hugo mod vendor on mountless module
Bjørn Erik Pedersen [Mon, 15 Feb 2021 09:47:32 +0000 (10:47 +0100)]
modules: Throw an error running hugo mod vendor on mountless module

4 years agoFix some humanize issues
susiwen8 [Sun, 14 Feb 2021 17:30:59 +0000 (01:30 +0800)]
Fix some humanize issues

Fixes #7912

4 years agocommands: Add PowerShell completion support
Anthony Fok [Tue, 9 Feb 2021 20:37:36 +0000 (13:37 -0700)]
commands: Add PowerShell completion support

Revert "Refactor: Remove powershell support" with fixes

Thanks to Ben Mezger (@benmezger) for the original code.
See #8122

This reverts commit a7c515e1b56e8cab34ca2647b4116904df9c8250.

4 years agoRefer to mage instead of make in comment regarding commitHash
Anthony Fok [Tue, 9 Feb 2021 16:57:18 +0000 (09:57 -0700)]
Refer to mage instead of make in comment regarding commitHash

4 years agomarkup/goldmark: Fix handling of legacy attribute config
Bjørn Erik Pedersen [Tue, 9 Feb 2021 08:23:18 +0000 (09:23 +0100)]
markup/goldmark: Fix handling of legacy attribute config

See #7548

4 years agomarkup/goldmark: Add attributes support for blocks (tables etc.)
Bjørn Erik Pedersen [Sun, 7 Feb 2021 17:08:46 +0000 (18:08 +0100)]
markup/goldmark: Add attributes support for blocks (tables etc.)

E.g.:

```
> foo
> bar
{.myclass}
```

There are some current limitations: For tables you can currently only apply it to the full table, and for lists the ul/ol-nodes only, e.g.:

```
* Fruit
  * Apple
  * Orange
  * Banana
  {.fruits}
* Dairy
  * Milk
  * Cheese
  {.dairies}
{.list}
```

Fixes #7548

4 years agodeps: Update to Goldmark v1.3.2
Bjørn Erik Pedersen [Mon, 8 Feb 2021 09:53:34 +0000 (10:53 +0100)]
deps: Update to Goldmark v1.3.2

Closes #8143

4 years agoUpdate to Dart Sass Protocol beta6
Bjørn Erik Pedersen [Sat, 6 Feb 2021 16:51:08 +0000 (17:51 +0100)]
Update to Dart Sass Protocol beta6

Note that this version is not backwards compatible, so you have to update the protocol binary.

4 years agotpl/embedded: Exclude pages without Permalink from sitemap
Jeremy Epstein [Sat, 6 Feb 2021 17:30:09 +0000 (04:30 +1100)]
tpl/embedded: Exclude pages without Permalink from sitemap

4 years agolangs/i18n: Support translation files with suffix *.yml
Bjørn Erik Pedersen [Sat, 6 Feb 2021 17:12:54 +0000 (18:12 +0100)]
langs/i18n: Support translation files with suffix *.yml

Fixes #8212

4 years agoRefactor: Write to stdout by default
Ben Mezger [Tue, 2 Feb 2021 23:03:31 +0000 (20:03 -0300)]
Refactor: Write to stdout by default

4 years agoRefactor: Remove powershell support
Ben Mezger [Tue, 2 Feb 2021 23:02:53 +0000 (20:02 -0300)]
Refactor: Remove powershell support

4 years agoFeat: Add zsh, fish and powershell completion support
Ben Mezger [Wed, 6 Jan 2021 13:19:11 +0000 (10:19 -0300)]
Feat: Add zsh, fish and powershell completion support

See issue #4296

4 years agogithub: Enable NPM tests on Windows
Bjørn Erik Pedersen [Mon, 1 Feb 2021 09:23:28 +0000 (10:23 +0100)]
github: Enable NPM tests on Windows

Fixes #8196

4 years agodeps: Update to esbuild v0.8.39
Bjørn Erik Pedersen [Mon, 1 Feb 2021 09:57:38 +0000 (10:57 +0100)]
deps: Update to esbuild v0.8.39

Fixes #8189

4 years agoTrim whitespace in elements written to hugo_stats.json
Pavlo Matiash [Mon, 1 Feb 2021 08:32:39 +0000 (10:32 +0200)]
Trim whitespace in elements written to hugo_stats.json

Fixes #7958

4 years agotpl/data: Add default user-agent header for getJSON requests
Baris Ceviz [Mon, 1 Feb 2021 08:31:02 +0000 (11:31 +0300)]
tpl/data: Add default user-agent header for getJSON requests

4 years agobuild(deps): bump github.com/aws/aws-sdk-go from 1.35.0 to 1.36.33
dependabot[bot] [Thu, 28 Jan 2021 06:13:45 +0000 (06:13 +0000)]
build(deps): bump github.com/aws/aws-sdk-go from 1.35.0 to 1.36.33

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.35.0 to 1.36.33.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.35.0...v1.36.33)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agodocs: Remove mention of a file size limit for readFile
Aleksandr Demakin [Sat, 23 Jan 2021 13:14:51 +0000 (13:14 +0000)]
docs: Remove mention of a file size limit for readFile

The limit itself was removed in this PR: https://github.com/gohugoio/hugo/pull/8172.

4 years agotpl/os: remove 1mb limit for readFile.
Aleksandr Demakin [Fri, 22 Jan 2021 19:05:08 +0000 (19:05 +0000)]
tpl/os: remove 1mb limit for readFile.

4 years agojs: Add Inject config option
Bjørn Erik Pedersen [Fri, 22 Jan 2021 16:07:23 +0000 (17:07 +0100)]
js: Add Inject config option

Fixes #8164

4 years agotpl: Fix race condition in text template baseof
Cameron Moore [Sun, 17 Jan 2021 05:05:58 +0000 (23:05 -0600)]
tpl: Fix race condition in text template baseof

Copy most of the htmltemplate cloning to the textemplate implementation
in the same function.

4 years agojs: Add Shims option
Bjørn Erik Pedersen [Thu, 21 Jan 2021 15:52:32 +0000 (16:52 +0100)]
js: Add Shims option

This commit adds a new `shims` option to `js.Build` that allows swapping out a component with another.

Fixes #8165

4 years agoFix nilpointer in js.Build error handling
Bjørn Erik Pedersen [Thu, 21 Jan 2021 09:09:33 +0000 (10:09 +0100)]
Fix nilpointer in js.Build error handling

Fixes #8162

4 years agoMerge commit 'e48ffb763572814a3788780bb9653dfa2daeae22'
Bjørn Erik Pedersen [Wed, 20 Jan 2021 11:48:39 +0000 (12:48 +0100)]
Merge commit 'e48ffb763572814a3788780bb9653dfa2daeae22'

4 years agoSquashed 'docs/' changes from 1de7a358c..ef9c4913c
Bjørn Erik Pedersen [Wed, 20 Jan 2021 11:47:49 +0000 (12:47 +0100)]
Squashed 'docs/' changes from 1de7a358c..ef9c4913c

ef9c4913c Clean up and removal of outdated examples
46122c9aa add godot tutorials to showcase
06d1d1ea2 Update scss-sass.md
1fc63c100 Spelling fix in 0.79.1 release notes
ad2f50e3d Update plainwords description (#1296)
33021d451 Update substr examples (#1304)
6b1cc59bb Release 0.80.0
521db8c6d Merge branch 'tempv0.80.0'
58626c2b3 releaser: Add release notes to /docs for release of 0.80.0
f81d118af dartsass: Dart Sass only supports `expanded` and `compressed`
7da6f54be Add Dart Sass support
b1f2661bb Replace jsconfig.js with jsconfig.json
38de0c1a4 Update index.md
223ceae80 Update index.md
f7ac0e59d Release v0.79.1
2d4583d43 Merge branch 'temp791-2'
1d34e609b releaser: Add release notes to /docs for release of 0.79.1
e26769988 Merge branch 'temp791'
75694d904 Fix Resource.ResourceType so it always returns MIME's main type
0f65d7783 Typo s/adds/add (#1298)
0b896b2c0 images: Add images.Overlay filter
0d4257dcd Clarify documentation on shimming
fcf601ddf Update index.html
6bf9bc1c1 Update index.html
1ce76bf3a Update index.html
e7d976eec Update index.html
db2996e64 Update index.html
245e5bfc9 news: Add post about Apple M1
3ad4115ed tpl: Add title parameter to YouTube shortcode
76ed976f8 Added two useful extensions to the list (#1243)
e5a30dd11 Update related.md
25cf8f48b Improve substr examples
e16e57e9a Update path.Split.md
2749b88fd Update path.Split.md
d76cad3ff Release 0.79.0
f5ccfbe98 releaser: Add release notes to /docs for release of 0.79.0
ebf1b87b0 Merge commit '9f1265fde4b9ef186148337c99f08601633b6056'
1f1e8f39c Allow setting the delimiter used for setting config via OS env, e.g. HUGO_
e9b1414dd deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14
0f76cf66c docs: Regen docshelper
1ada5d47e Add menu params
1c120aef0 Revert "docs: Regenerate docshelper"
7b60b5624 docs: Regenerate docshelper

git-subtree-dir: docs
git-subtree-split: ef9c4913cdcf95d62ec12d872f412f97e55a55ad

4 years agobuild(deps): bump github.com/spf13/afero from 1.4.1 to 1.5.1
Robert-André Mauchin [Mon, 18 Jan 2021 01:35:33 +0000 (02:35 +0100)]
build(deps): bump github.com/spf13/afero from 1.4.1 to 1.5.1

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
4 years agopipes: Add external source map support to js.Build and Babel
Andreas Richter [Mon, 18 Jan 2021 09:38:09 +0000 (04:38 -0500)]
pipes: Add external source map support to js.Build and Babel

Fixes #8132

4 years agotpl: Fix metrics hint tracking
Cameron Moore [Fri, 8 Jan 2021 16:26:35 +0000 (10:26 -0600)]
tpl: Fix metrics hint tracking

When tracking for cache hints, track the same template name as the call
to MeasureSince in Execute.  When referencing a partial "foo", the value
of `n` does not match `templ.Name()` (`partials/foo` versus
`partials/foo.html`).  This was causing hints to go untracked since
there was no existing metric to append the hint to.

Fixes #8125

4 years agotpl: Do not return errors in substr for out-of-bounds cases
Cameron Moore [Sun, 3 Jan 2021 18:01:42 +0000 (12:01 -0600)]
tpl: Do not return errors in substr for out-of-bounds cases

Most other substr implementations don't error out in out-of-bounds cases
but simply return an empty string (or a value that's printed as an empty
string). We'll follow their lead and not exit template execution.  Allow
the user decide what to do with the empty result.

Fixes #8113

4 years agotpl: Add missing test scenario for strings.Substr
Cameron Moore [Sun, 3 Jan 2021 18:00:17 +0000 (12:00 -0600)]
tpl: Add missing test scenario for strings.Substr

4 years agoRun go mod tidy
Bjørn Erik Pedersen [Sun, 3 Jan 2021 17:48:35 +0000 (18:48 +0100)]
Run go mod tidy

4 years agodeps: Update go-org to v1.4.0
Niklas Fasching [Sat, 2 Jan 2021 19:52:37 +0000 (20:52 +0100)]
deps: Update go-org to v1.4.0

- Add support for pretty urls [1]. Rewrite file links:
  1. replace the `.org` extension with `/` (`/foo.org` -> `/foo/`)
  2. prefix unrooted links with `../` as relative links start in the fake
  subdirectory `/foo/` rather than `/`
- Fix case-sensitivity of org drawer `:end:`

[1] https://gohugo.io/content-management/urls/#pretty-urls

4 years agorst: Adjust log level
Bjørn Erik Pedersen [Fri, 1 Jan 2021 10:50:13 +0000 (11:50 +0100)]
rst: Adjust log level

4 years agoreleaser: Prepare repository for 0.81.0-DEV
hugoreleaser [Thu, 31 Dec 2020 13:49:02 +0000 (13:49 +0000)]
releaser: Prepare repository for 0.81.0-DEV

[ci skip]

4 years agoreleaser: Add release notes to /docs for release of 0.80.0 v0.80.0
hugoreleaser [Thu, 31 Dec 2020 13:36:35 +0000 (13:36 +0000)]
releaser: Add release notes to /docs for release of 0.80.0

[ci skip]

4 years agoreleaser: Bump versions for release of 0.80.0
hugoreleaser [Thu, 31 Dec 2020 13:36:35 +0000 (13:36 +0000)]
releaser: Bump versions for release of 0.80.0

[ci skip]

4 years agoUpdate 0.80.0-relnotes.md
Bjørn Erik Pedersen [Thu, 31 Dec 2020 13:25:05 +0000 (14:25 +0100)]
Update 0.80.0-relnotes.md

4 years agoreleaser: Add release notes for 0.80.0
hugoreleaser [Thu, 31 Dec 2020 13:09:24 +0000 (13:09 +0000)]
releaser: Add release notes for 0.80.0

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

4 years agoAllow Dart Sass transformations to be cached on disk
Bjørn Erik Pedersen [Thu, 31 Dec 2020 10:32:20 +0000 (11:32 +0100)]
Allow Dart Sass transformations to be cached on disk

This enbles people to build their sites/themes on servers where the Dart Sass binary is not available.

4 years agodartsass: Dart Sass only supports `expanded` and `compressed`
Bjørn Erik Pedersen [Thu, 31 Dec 2020 10:18:54 +0000 (11:18 +0100)]
dartsass: Dart Sass only supports `expanded` and `compressed`

4 years agodartsass: Add missing OutputStyle option
Bjørn Erik Pedersen [Thu, 31 Dec 2020 09:49:39 +0000 (10:49 +0100)]
dartsass: Add missing OutputStyle option

4 years agoUpdate emoji import paths and version
Cameron Moore [Wed, 30 Dec 2020 20:19:40 +0000 (14:19 -0600)]
Update emoji import paths and version

Since emoji is v2, we must import it with the `/v2` suffix.  Doing so
allows the Go tools to detect the latest release.

4 years agoAdd Dart Sass support
Bjørn Erik Pedersen [Wed, 23 Dec 2020 08:26:23 +0000 (09:26 +0100)]
Add Dart Sass support

But note that the Dart Sass Embedded Protocol is still in beta (beta 5), a main release scheduled for Q1 2021.

Fixes #7380
Fixes #8102

4 years agoGroupByParamDate now supports datetimes
Horst Gutmann [Mon, 28 Dec 2020 15:06:10 +0000 (16:06 +0100)]
GroupByParamDate now supports datetimes

Previously, the method only worked for date strings but not (for
instance) full RFC3339 datetime strings.

4 years agopara: Skip para test when not on CI
Bjørn Erik Pedersen [Wed, 23 Dec 2020 18:47:20 +0000 (19:47 +0100)]
para: Skip para test when not on CI

Fixes #6963

4 years agoUpdate SECURITY.md
Bjørn Erik Pedersen [Tue, 22 Dec 2020 09:09:59 +0000 (10:09 +0100)]
Update SECURITY.md

4 years agoreleaser: Add release notes to /docs for release of 0.79.1
hugoreleaser [Sat, 19 Dec 2020 15:41:03 +0000 (15:41 +0000)]
releaser: Add release notes to /docs for release of 0.79.1

[ci skip]

4 years agoImprove LookPath
Bjørn Erik Pedersen [Fri, 18 Dec 2020 17:20:12 +0000 (18:20 +0100)]
Improve LookPath

4 years agodocs: create a SECURITY.md
Patrick Kollitsch [Fri, 18 Dec 2020 16:40:49 +0000 (23:40 +0700)]
docs: create a SECURITY.md

This file is used by Github as a tab on the repos homepage to access information about how to report security issues. The text is kept simple.

Will solve #8074

4 years agoFix Resource.ResourceType so it always returns MIME's main type
Bjørn Erik Pedersen [Thu, 17 Dec 2020 08:33:26 +0000 (09:33 +0100)]
Fix Resource.ResourceType so it always returns MIME's main type

The one exception being for the Page, which does not have a MIME type, in which you will get the value `page`.

Fixes #8052

4 years agopara: Show more detail on failed time test
Cameron Moore [Thu, 17 Dec 2020 17:31:40 +0000 (11:31 -0600)]
para: Show more detail on failed time test

Give us more visibility into how badly a given host is failing in the
time test.

Updates #6963

4 years agoimages: Add images.Overlay filter
Bjørn Erik Pedersen [Wed, 16 Dec 2020 12:52:47 +0000 (13:52 +0100)]
images: Add images.Overlay filter

This allows for constructs ala:

```
{{ $overlay := $img.Filter (images.Overlay $logo 50 50 )}}
```
Or:

```
{{ $logoFilter := (images.Overlay $logo 50 50 ) }}
{{ $overlay := $img | images.Filter $logoFilter }}
```

Which will overlay the logo in the top left corner (x=50, y=50) of `$img`.

Fixes #8057
Fixes #4595
Updates #6731

4 years agotpl: Regenerate templates
Bjørn Erik Pedersen [Wed, 16 Dec 2020 11:20:02 +0000 (12:20 +0100)]
tpl: Regenerate templates

4 years agotpl: Fix series detection in opengraph
Maciej Sawicki [Wed, 16 Dec 2020 11:13:30 +0000 (12:13 +0100)]
tpl: Fix series detection in opengraph

When inside front matter you specified series with spaces,
then the opengraph template wouldn't detect other articles,
because in `.Site.Taxonomies.series` they are stored by
urlized key.

Example:

```yaml
# in front matter
series:
    - My Series
```

```gohtml
{{/* in a template */}}
{{- $series := index .Site.Taxonomies.series$name }}

{{/* was resolved to */}}
{{- $series := index {'my-series': ...} "MySeries" }}
```

4 years agohugolib/paths: Fix typo
真夜 [Wed, 16 Dec 2020 11:12:14 +0000 (19:12 +0800)]
hugolib/paths: Fix typo

4 years agoall: Fix minor typos
Phil Davis [Wed, 16 Dec 2020 11:11:32 +0000 (16:56 +0545)]
all: Fix minor typos

4 years agoFix BenchmarkMergeByLanguage
Bjørn Erik Pedersen [Wed, 9 Dec 2020 16:47:10 +0000 (17:47 +0100)]
Fix BenchmarkMergeByLanguage

Fixes #7914

4 years agodeps: Bump github.com/spf13/cobra from 0.15.0 to 0.20.0
Anthony Fok [Sat, 5 Dec 2020 03:43:03 +0000 (20:43 -0700)]
deps: Bump github.com/spf13/cobra from 0.15.0 to 0.20.0

The substring match in TestExecute deploy test is adjusted accordingly.

4 years agochore: configure proper link to discourse.gohugo.io (#8020)
Patrick Kollitsch [Fri, 4 Dec 2020 09:04:35 +0000 (16:04 +0700)]
chore: configure proper link to discourse.gohugo.io (#8020)

* chore: configure proper link to discourse.gohugo.io

This adds a configuration file to the issue templates for this repo. In this config file, an issue template is added that will look like the existing issue templates, but on click will lead directly to the discourse forum instead of hoping that people read what it says there. The support.md can be deleted.

* chore: remove obsolete support.md configuration

* chore: remove obsolete autoclosing workflow

4 years agotpl/internal/go_templates: Revert formatting
Bjørn Erik Pedersen [Thu, 3 Dec 2020 12:47:43 +0000 (13:47 +0100)]
tpl/internal/go_templates: Revert formatting

Should make future fork synch easier.

4 years agoall: Format code with gofumpt
Bjørn Erik Pedersen [Wed, 2 Dec 2020 12:23:25 +0000 (13:23 +0100)]
all: Format code with gofumpt

See https://github.com/mvdan/gofumpt

4 years agobuild(deps): bump github.com/evanw/esbuild from 0.8.15 to 0.8.17
dependabot[bot] [Mon, 30 Nov 2020 07:19:22 +0000 (07:19 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.8.15 to 0.8.17

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.8.15 to 0.8.17.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/master/CHANGELOG.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.8.15...v0.8.17)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agotpl: Add title parameter to YouTube shortcode
Andrew Zenk [Wed, 2 Dec 2020 11:53:53 +0000 (05:53 -0600)]
tpl: Add title parameter to YouTube shortcode

4 years agoUse --baseURL path for live-reload URL
sth [Wed, 2 Dec 2020 11:52:26 +0000 (12:52 +0100)]
Use --baseURL path for live-reload URL

Fixes #6595

4 years agoFix RelURL and AbsURL when path starts with language
ivan-meridianbanc-com [Wed, 2 Dec 2020 11:47:01 +0000 (13:47 +0200)]
Fix RelURL and AbsURL when path starts with language

4 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.31.0 to 0.32.0
dependabot[bot] [Thu, 26 Nov 2020 06:37:57 +0000 (06:37 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.31.0 to 0.32.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.31.0 to 0.32.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.31.0...v0.32.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agotpl: Fix substr when length parameter is zero
Cameron Moore [Sat, 28 Nov 2020 15:56:49 +0000 (09:56 -0600)]
tpl: Fix substr when length parameter is zero

When length parameter is zero, always return an empty string.

Updates #7993

4 years agotpl: Refactor and fix substr logic
Cameron Moore [Sat, 28 Nov 2020 05:43:01 +0000 (23:43 -0600)]
tpl: Refactor and fix substr logic

Fix miscalculations when start is negative.  Results should now match
PHP substr.

Fixes #7993

4 years agoreleaser: Prepare repository for 0.80.0-DEV
hugoreleaser [Fri, 27 Nov 2020 09:19:04 +0000 (09:19 +0000)]
releaser: Prepare repository for 0.80.0-DEV

[ci skip]

4 years agoreleaser: Add release notes to /docs for release of 0.79.0 v0.79.0
hugoreleaser [Fri, 27 Nov 2020 09:06:36 +0000 (09:06 +0000)]
releaser: Add release notes to /docs for release of 0.79.0

[ci skip]

4 years agoreleaser: Bump versions for release of 0.79.0
hugoreleaser [Fri, 27 Nov 2020 09:06:36 +0000 (09:06 +0000)]
releaser: Bump versions for release of 0.79.0

[ci skip]

4 years agoUpdate 0.79.0-relnotes.md
Bjørn Erik Pedersen [Fri, 27 Nov 2020 08:54:03 +0000 (09:54 +0100)]
Update 0.79.0-relnotes.md

4 years agoreleaser: Add release notes for 0.79.0
hugoreleaser [Fri, 27 Nov 2020 08:44:33 +0000 (08:44 +0000)]
releaser: Add release notes for 0.79.0

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

4 years agoMerge commit '9f1265fde4b9ef186148337c99f08601633b6056'
Bjørn Erik Pedersen [Fri, 27 Nov 2020 08:30:05 +0000 (09:30 +0100)]
Merge commit '9f1265fde4b9ef186148337c99f08601633b6056'

4 years agoSquashed 'docs/' changes from 57c1d1a67..1de7a358c
Bjørn Erik Pedersen [Fri, 27 Nov 2020 08:26:24 +0000 (09:26 +0100)]
Squashed 'docs/' changes from 57c1d1a67..1de7a358c

1de7a358c Clarify that "with" blocks do not render with empty values (#1287)
b48de8b0a Update js.md
e0124e4b1 Update js.md
087b39d74 Update hosting-on-render.md (#1286)
8f02b5412 Update js.md (#1284)
8dd8a8d1d Add link to "Build Websites with Hugo" book (#1174)
ae2dc138a Fix typo in page bundles (#1283)
ab14bfec3 Update configuration directory section
17da77ff1 Update multilingual.md (#1280)
5bce8db3a Fix for site-hierarchy image, issue #60
9d7a2366d Fix typo
ad4210c41 Fix typo
c88bc0383 Fix orphan branch url (#1262)
1cf6cf5b3 Hugo 0.78.2
538c3cb86 Merge branch 'tempv0.78.2'
e5e07fc81 releaser: Add release notes to /docs for release of 0.78.2
120a61a47 Fixed wrong var assignment example
4cebbb1a7 Ignore remote JSON errors (for now)
618fcf9ba Add a link to modules config option 'replacements'
e12722779 Fix typo ("wil" -> "will") (#1273)
0670e9894 Update js.md
5bde834cf Update GH docs to say "main" as default branch
26312f93d Update index.md
eb6f51df1 Update js.md
b890dc84d Merge branch 'tempv0.78.1'
6b73ea450 releaser: Add release notes to /docs for release of 0.78.1
46e582112 Update starter-kits.md (#1268)
a62786235 Update 404 docs: GitLab auto-detects 404.html (#1173)
cbd4fd2d9 Fix typo (#1271)
2ba3f9386 Update js.md
7b5109d90 Update js.md
bc75bc962 Release 0.78.0
0b2e8b0f1 releaser: Add release notes to /docs for release of 0.78.0
9ecba8480 Merge commit 'b74591123eac47a20d1f26ff3e2d291cd9c5cfc0'
60a475df7 js: Add avoidTDZ option
3b895261f Make js.Build fully support modules

git-subtree-dir: docs
git-subtree-split: 1de7a358cac94ac09a513456bdaae65e6ae94859

4 years agopublisher: Fix memory usage in writeStats
Bjørn Erik Pedersen [Fri, 27 Nov 2020 07:46:58 +0000 (08:46 +0100)]
publisher: Fix memory usage in writeStats

```
name                     old time/op    new time/op    delta
ClassCollectorWriter-16    72.1µs ± 0%    32.3µs ± 0%  -55.17%  (p=0.029 n=4+4)

name                     old alloc/op   new alloc/op   delta
ClassCollectorWriter-16    85.9kB ± 0%    35.1kB ± 0%  -59.16%  (p=0.029 n=4+4)

name                     old allocs/op  new allocs/op  delta
ClassCollectorWriter-16       329 ± 0%       149 ± 0%  -54.71%  (p=0.029 n=4+4)
```

Fixes #7945

4 years agobuild(deps): bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0
dependabot[bot] [Thu, 26 Nov 2020 06:37:31 +0000 (06:37 +0000)]
build(deps): bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0

Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.3.0...v2.4.0)

Signed-off-by: dependabot[bot] <support@github.com>
4 years agoFix server rebuild issue with partials referenced from render hooks
Bjørn Erik Pedersen [Thu, 26 Nov 2020 07:32:49 +0000 (08:32 +0100)]
Fix server rebuild issue with partials referenced from render hooks

Fixes #7990

4 years agoAllow setting the delimiter used for setting config via OS env, e.g. HUGO_
Bjørn Erik Pedersen [Tue, 24 Nov 2020 13:11:42 +0000 (14:11 +0100)]
Allow setting the delimiter used for setting config via OS env, e.g. HUGO_

Fixes #7829

4 years agodeps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14
Bjørn Erik Pedersen [Wed, 25 Nov 2020 16:39:51 +0000 (17:39 +0100)]
deps: Update to github.com/evanw/esbuild 0.8.11 to 0.8.14

Closes #7986

4 years agooutput: Add more layout lookup tests
Cameron Moore [Tue, 24 Nov 2020 20:49:06 +0000 (14:49 -0600)]
output: Add more layout lookup tests

Add more tests to cover more cases and to help with documentation and
discussion of template lookup order.

Updates #7964