brevno-suite/hugo
3 years agoreleaser: Bump versions for release of 0.90.1 v0.90.1
hugoreleaser [Fri, 10 Dec 2021 10:56:40 +0000 (10:56 +0000)]
releaser: Bump versions for release of 0.90.1

[ci skip]

3 years agoreleaser: Add release notes for 0.90.1
hugoreleaser [Fri, 10 Dec 2021 10:56:40 +0000 (10:56 +0000)]
releaser: Add release notes for 0.90.1
[ci skip]

3 years agoRemove the retries on error in remote resources.Get
Bjørn Erik Pedersen [Fri, 10 Dec 2021 08:55:41 +0000 (09:55 +0100)]
Remove the retries on error in remote resources.Get

Fixes #9271
See  #9259

3 years agoAllow user to handle/ignore errors in resources.Get
Bjørn Erik Pedersen [Thu, 9 Dec 2021 15:57:05 +0000 (16:57 +0100)]
Allow user to handle/ignore errors in resources.Get

In Hugo 0.90.0 we introduced remote support in `resources.Get`.

But with remote resources comes with a higher chance of failing a build (network issues, remote server down etc.).

Before this commit we always failed the build on any unexpected error.

This commit allows the user to check for any error (and potentially fall back to a default local resource):

```htmlbars
{{ $result := resources.Get "https://gohugo.io/img/hugo-logo.png" }}
{{ with $result }}
        {{ if .Err }}
        {{/* log the error, insert a default image etc. *}}
        {{ else }}
        <img src="{{ .RelPermalink }}" width="{{ .Width }}" height="{{ .Height }}" alt="">
        {{ end }}
{{ end }}
```

Note that the default behaviour is still to fail the build, but we will delay that error until you start using the `Resource`.

Fixes #9529

3 years agoMake resource.Get return nil on 404 not found
Bjørn Erik Pedersen [Thu, 9 Dec 2021 15:16:35 +0000 (16:16 +0100)]
Make resource.Get return nil on 404 not found

This is in line with the interface declaration and also how local lookups work.

Fixes #9267

3 years agoUpdate to Go 1.17.5
Bjørn Erik Pedersen [Fri, 10 Dec 2021 09:36:02 +0000 (10:36 +0100)]
Update to Go 1.17.5

Fixes #9269

3 years agoUpdate to Go 1.17.4 and remove timeout in resources.Get
Bjørn Erik Pedersen [Thu, 9 Dec 2021 11:49:17 +0000 (12:49 +0100)]
Update to Go 1.17.4 and remove timeout in resources.Get

Fixes #9265

3 years agoreleaser: Prepare repository for 0.91.0-DEV vanilla/release-0.90.0
hugoreleaser [Wed, 8 Dec 2021 10:11:31 +0000 (10:11 +0000)]
releaser: Prepare repository for 0.91.0-DEV

[ci skip]

3 years agoreleaser: Bump versions for release of 0.90.0 v0.90.0
hugoreleaser [Wed, 8 Dec 2021 09:33:46 +0000 (09:33 +0000)]
releaser: Bump versions for release of 0.90.0

[ci skip]

3 years agoreleaser: Add release notes for 0.90.0
hugoreleaser [Wed, 8 Dec 2021 09:33:46 +0000 (09:33 +0000)]
releaser: Add release notes for 0.90.0
[ci skip]

3 years agoreleaser: Simplify the release process
Bjørn Erik Pedersen [Wed, 8 Dec 2021 08:23:18 +0000 (09:23 +0100)]
releaser: Simplify the release process

Make it into a one step even for major releases.

3 years agoreleaser: Remove unused code
Bjørn Erik Pedersen [Wed, 8 Dec 2021 08:02:45 +0000 (09:02 +0100)]
releaser: Remove unused code

3 years agodocs: Regenerate docs helper
Bjørn Erik Pedersen [Wed, 8 Dec 2021 07:56:16 +0000 (08:56 +0100)]
docs: Regenerate docs helper

3 years agoMerge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'
Bjørn Erik Pedersen [Wed, 8 Dec 2021 07:54:25 +0000 (08:54 +0100)]
Merge commit '8d9511a08f14260cbfb73119e4afae50e5a9966d'

3 years agoSquashed 'docs/' changes from 39a7fac34..316cec249
Bjørn Erik Pedersen [Wed, 8 Dec 2021 07:42:31 +0000 (08:42 +0100)]
Squashed 'docs/' changes from 39a7fac34..316cec249

316cec249 Update future events template example (#1595)
3bde7d489 Install mage outside module (#1592)
762e27eff Clarify ignoreFiles regex matching
4d0032051 Add id attribute to h2 elements (#1590)
8262b077c Improve inline resource examples (#1587)
2eae7c7ec fix disqus example name (#1588)
a772f4804 Added install instructions for openSUSE Tumbleweed (#1459)
7ad1c301b Remove screen capture from Hosting on GitHub page (#1586)
a58541f49 add more details on about gh-pages and baseURL on hosting-on-github.md (#1346)
3bd0b46dc Update configuration page (#1585)
4cf1f013e Update OS functions
2c45a95c2 Remove getting-started/code-toggle/
40fdff598 Describe artificial language private use subtags (#1577)
91011d210 Remove google_news from list of internal templates (#1576)
36c7879e4 Update the .Unix function
731063488 Remove a showcase
818c371a0 Update index.md
3136d39d9 netlify: Hugo 0.89.4
092bc9278 Merge branch 'tempv0.89.4'
18e01f105 releaser: Add release notes to /docs for release of 0.89.4
79135281f Correct and sort list of target image formats (#1574)
af4170c7e netlify: Hugo 0.89.3
7f5444251 Merge branch 'tempv0.89.3'
a32e4a6c2 releaser: Add release notes to /docs for release of 0.89.3
6dd3dc3f9 Update configuration.md
5fbe741d7 Update index.md (#1570)
37a69496f netlify: Bump to Hugo 0.89.2
3b293f1f4 Merge branch 'tempv0.89.2'
64c934e7a releaser: Add release notes to /docs for release of 0.89.2
919c51c7d Update index.md
13dd463b1 netlify: Hugo 0.89.1
d8cda1474 releaser: Add release notes to /docs for release of 0.89.1
a2adf7742 releaser: Add release notes to /docs for release of 0.89.1
c3088c4fc Add code toggle to menus page (#1568)
2d0f38978 Remove blank lines from code-toggle output (#1564)
7cf058bfd Add localization examples (#1563)
cf8627c2e Fixing typos, fixing incomplete link (#1561)
c78cc014b Document the removePathAccents setting
70beddaf4 Make corrections to 0.89.0 release notes (#1560)
1917195f0 Update index.md
7fb8e070c Run hugo --gc
1772d45fb Release 0.89.0
d9006179b Merge branch 'tempv0.89.0'
8db86b61e releaser: Add release notes to /docs for release of 0.89.0
abf268571 docs: Regen CLI docs
fbbdb0ab1 Update the timeout default
9cbd1c15a Fix description of lang.FormatNumberCustom
6043b54cc Remove "render" keyword from Host on Render page
f8ea8e84f Clarify description of front matter url (#1557)
91a0c9954 Update Twitter shortcode oEmbed endpoint
79a7405b8 Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'
57667bae6 hugofs: Add includeFiles and excludeFiles to mount configuration
0c9ee0a04 Allow multiple plugins in the PostCSS options map
155799e6b docs: Create path.Clean documentation

git-subtree-dir: docs
git-subtree-split: 316cec2494dc5f908283289371d74f36a73d3d8d

3 years agoAdd custom font support to images.Text
Bjørn Erik Pedersen [Tue, 7 Dec 2021 11:49:53 +0000 (12:49 +0100)]
Add custom font support to images.Text

Fixes #9253

3 years agoimages: Fix cache busting of image text filter
Bjørn Erik Pedersen [Tue, 7 Dec 2021 10:48:48 +0000 (11:48 +0100)]
images: Fix cache busting of image text filter

See #9238

3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.80.0 to 0.85.0
dependabot[bot] [Fri, 3 Dec 2021 17:32:07 +0000 (17:32 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.80.0 to 0.85.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.80.0 to 0.85.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.80.0...v0.85.0)

---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoimages: Text filter that draws text with the given options (#9239)
Paul van Brouwershaven [Tue, 7 Dec 2021 10:29:55 +0000 (11:29 +0100)]
images: Text filter that draws text with the given options (#9239)

Fixes #9238

3 years agotpl/transform: Optional options for highlight func
Joe Mooring [Mon, 6 Dec 2021 22:53:09 +0000 (14:53 -0800)]
tpl/transform: Optional options for highlight func

Closes #9249
Fixes gohugoio/hugoDocs#63

3 years agodeps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note)
Bjørn Erik Pedersen [Sat, 4 Dec 2021 15:28:50 +0000 (16:28 +0100)]
deps: Upgrade github.com/evanw/esbuild v0.13.12 => v0.14.2 (note)

Note: ESBuild v0.14.0 contains backwards-incompatible changes, see https://github.com/evanw/esbuild/releases/tag/v0.14.0

Fixes #9244

3 years agoreleaser: Add "note" to Note regexp
Bjørn Erik Pedersen [Sat, 4 Dec 2021 15:27:56 +0000 (16:27 +0100)]
releaser: Add "note" to Note regexp

3 years agobuild(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3
dependabot[bot] [Fri, 3 Dec 2021 16:13:25 +0000 (16:13 +0000)]
build(deps): bump github.com/mitchellh/mapstructure from 1.4.2 to 1.4.3

Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) from 1.4.2 to 1.4.3.
- [Release notes](https://github.com/mitchellh/mapstructure/releases)
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.2...v1.4.3)

---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoreleaser: Rework and simplify to use GitHub only for release notes
Bjørn Erik Pedersen [Thu, 2 Dec 2021 21:08:52 +0000 (22:08 +0100)]
releaser: Rework and simplify to use GitHub only for release notes

3 years agobuild(deps): bump google.golang.org/api from 0.51.0 to 0.61.0
dependabot[bot] [Fri, 3 Dec 2021 08:22:20 +0000 (08:22 +0000)]
build(deps): bump google.golang.org/api from 0.51.0 to 0.61.0

Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.51.0 to 0.61.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/main/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.51.0...v0.61.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agomedia: Add rss suffix for application/rss+xml
Paul van Brouwershaven [Fri, 3 Dec 2021 11:45:49 +0000 (12:45 +0100)]
media: Add rss suffix for application/rss+xml

Closes #9233

3 years agoparser: Add a test case in format resolution
Bjørn Erik Pedersen [Fri, 3 Dec 2021 09:34:34 +0000 (10:34 +0100)]
parser: Add a test case in format resolution

See #9233

3 years agolazy: Reset error in Reset
Bjørn Erik Pedersen [Thu, 2 Dec 2021 15:49:44 +0000 (16:49 +0100)]
lazy: Reset error in Reset

To prevent sticky errors on server rebuilds.

Fixes #7043
Closes #9194

3 years agoImplement XML data support
Paul van Brouwershaven [Thu, 2 Dec 2021 16:30:36 +0000 (17:30 +0100)]
Implement XML data support

Example:

```
{{ with resources.Get "https://example.com/rss.xml" | transform.Unmarshal }}
    {{ range .channel.item }}
        <strong>{{ .title | plainify | htmlUnescape }}</strong><br />
        <p>{{ .description | plainify | htmlUnescape }}</p>
        {{ $link := .link | plainify | htmlUnescape }}
        <a href="{{ $link }}">{{ $link }}</a><br />
        <hr>
    {{ end }}
{{ end }}
```

Closes #4470

3 years agoValidate private use language tags
Joe Mooring [Sun, 7 Nov 2021 15:06:48 +0000 (07:06 -0800)]
Validate private use language tags

Fixes #9119

3 years agoresources: Add timeout to the HTTP request in Get
Bjørn Erik Pedersen [Thu, 2 Dec 2021 13:13:24 +0000 (14:13 +0100)]
resources: Add timeout to the HTTP request in Get

Workaround for https://github.com/golang/go/issues/49366

3 years agoAdd a remote retry for resources.Get
Bjørn Erik Pedersen [Thu, 2 Dec 2021 12:31:22 +0000 (13:31 +0100)]
Add a remote retry for resources.Get

3 years agoMake resources.Get use a file cache for remote resources
Paul van Brouwershaven [Thu, 2 Dec 2021 11:56:25 +0000 (12:56 +0100)]
Make resources.Get use a file cache for remote resources

Closes #9228

3 years agoRemove empty href element from pagination template
Joe Mooring [Sun, 21 Nov 2021 05:29:04 +0000 (21:29 -0800)]
Remove empty href element from pagination template

Closes #9149

3 years agoCheck for empty deployment targets and matchers
Joe Mooring [Tue, 30 Nov 2021 21:39:47 +0000 (13:39 -0800)]
Check for empty deployment targets and matchers

Fixes #9220

3 years agoresources: Adjust the remote Get cache so it does not get evicted on restarts
Bjørn Erik Pedersen [Tue, 30 Nov 2021 15:54:01 +0000 (16:54 +0100)]
resources: Adjust the remote Get cache so it does not get evicted on restarts

We fill improve this, soon.

3 years agoAdd remote support to resources.Get
Paul van Brouwershaven [Tue, 30 Nov 2021 10:49:51 +0000 (11:49 +0100)]
Add remote support to resources.Get

Closes #5255
Supports #9044

3 years agoAdd deprecation warning to google_news template
Joe Mooring [Sun, 21 Nov 2021 01:49:47 +0000 (17:49 -0800)]
Add deprecation warning to google_news template

Closes #9172

3 years agohelpers: Make UniqueStringsReuse allocation free
Bjørn Erik Pedersen [Tue, 16 Nov 2021 18:20:33 +0000 (19:20 +0100)]
helpers: Make UniqueStringsReuse allocation free

This should be faster for all of our use cases (small string slices), but more important, it makes UniqueStringsReuse allocation free.

```bash
name                                 old time/op    new time/op    delta
UniqueStrings/Safe-16                   776ns ± 0%     305ns ± 0%   -60.68%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16            621ns ± 3%     174ns ± 0%   -72.01%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16     319ns ± 4%     313ns ± 0%    -2.01%  (p=0.029 n=4+4)

name                                 old alloc/op   new alloc/op   delta
UniqueStrings/Safe-16                    224B ± 0%      128B ± 0%   -42.86%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16            96.0B ± 0%      0.0B       -100.00%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16     24.0B ± 0%     24.0B ± 0%      ~     (all equal)

name                                 old allocs/op  new allocs/op  delta
UniqueStrings/Safe-16                    7.00 ± 0%      1.00 ± 0%   -85.71%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice-16             6.00 ± 0%      0.00       -100.00%  (p=0.029 n=4+4)
UniqueStrings/Reuse_slice_sorted-16      1.00 ± 0%      1.00 ± 0%      ~     (all equal)
```

3 years agoreleaser: Prepare repository for 0.90.0-DEV vanilla/release-0.89.4
hugoreleaser [Wed, 17 Nov 2021 09:05:38 +0000 (09:05 +0000)]
releaser: Prepare repository for 0.90.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.89.4 v0.89.4
hugoreleaser [Wed, 17 Nov 2021 08:24:08 +0000 (08:24 +0000)]
releaser: Add release notes to /docs for release of 0.89.4

[ci skip]

3 years agoreleaser: Bump versions for release of 0.89.4
hugoreleaser [Wed, 17 Nov 2021 08:24:08 +0000 (08:24 +0000)]
releaser: Bump versions for release of 0.89.4

[ci skip]

3 years agoreleaser: Add release notes for 0.89.4
hugoreleaser [Wed, 17 Nov 2021 08:24:08 +0000 (08:24 +0000)]
releaser: Add release notes for 0.89.4
[ci skip]

3 years agoFix content dir resolution when main project is a Hugo Module
Bjørn Erik Pedersen [Tue, 16 Nov 2021 18:54:41 +0000 (19:54 +0100)]
Fix content dir resolution when main project is a Hugo Module

Fixes #9177

3 years agoreleaser: Prepare repository for 0.90.0-DEV vanilla/release-0.89.3
hugoreleaser [Mon, 15 Nov 2021 12:56:41 +0000 (12:56 +0000)]
releaser: Prepare repository for 0.90.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.89.3 v0.89.3
hugoreleaser [Mon, 15 Nov 2021 12:17:45 +0000 (12:17 +0000)]
releaser: Add release notes to /docs for release of 0.89.3

[ci skip]

3 years agoreleaser: Bump versions for release of 0.89.3
hugoreleaser [Mon, 15 Nov 2021 12:17:45 +0000 (12:17 +0000)]
releaser: Bump versions for release of 0.89.3

[ci skip]

3 years agoreleaser: Add release notes for 0.89.3
hugoreleaser [Mon, 15 Nov 2021 12:17:45 +0000 (12:17 +0000)]
releaser: Add release notes for 0.89.3
[ci skip]

3 years agoImprove error when we cannot determine content directory in "hugo new"
Bjørn Erik Pedersen [Mon, 15 Nov 2021 09:25:30 +0000 (10:25 +0100)]
Improve error when we cannot determine content directory in "hugo new"

See #9166

3 years agodeps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4
Joe Mooring [Sun, 14 Nov 2021 18:53:49 +0000 (10:53 -0800)]
deps: Upgrade github.com/yuin/goldmark v1.4.3 => v1.4.4

Fixes #9159

3 years agocommands: Make sure pollInterval is always set
Bjørn Erik Pedersen [Sat, 13 Nov 2021 20:45:51 +0000 (21:45 +0100)]
commands: Make sure pollInterval is always set

Fixes #9165

3 years agocreate: Improve archetype directory discovery and tests
Bjørn Erik Pedersen [Fri, 12 Nov 2021 09:29:13 +0000 (10:29 +0100)]
create: Improve archetype directory discovery and tests

Updates #9146

3 years agocreate: Add a log statement when archetype is a directory
Bjørn Erik Pedersen [Fri, 12 Nov 2021 08:57:20 +0000 (09:57 +0100)]
create: Add a log statement when archetype is a directory

See #9157

3 years agocreate: Always print "Content ... created"
Bjørn Erik Pedersen [Fri, 12 Nov 2021 08:51:13 +0000 (09:51 +0100)]
create: Always print "Content ... created"

This indeliberately changed to INFO level in Hugo 0.89.0.

Fixes #9157

3 years agocommands: Fix missing file locking in server partial render
Bjørn Erik Pedersen [Fri, 12 Nov 2021 08:28:27 +0000 (09:28 +0100)]
commands: Fix missing file locking in server partial render

Fixes #9162

3 years agomodules: Improve error message
Patrick Kollitsch [Wed, 10 Nov 2021 08:32:17 +0000 (15:32 +0700)]
modules: Improve error message

3 years agoreleaser: Prepare repository for 0.90.0-DEV vanilla/release-0.89.2
hugoreleaser [Mon, 8 Nov 2021 15:56:14 +0000 (15:56 +0000)]
releaser: Prepare repository for 0.90.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.89.2 v0.89.2
hugoreleaser [Mon, 8 Nov 2021 15:22:23 +0000 (15:22 +0000)]
releaser: Add release notes to /docs for release of 0.89.2

[ci skip]

3 years agoreleaser: Bump versions for release of 0.89.2
hugoreleaser [Mon, 8 Nov 2021 15:22:23 +0000 (15:22 +0000)]
releaser: Bump versions for release of 0.89.2

[ci skip]

3 years agoreleaser: Add release notes for 0.89.2
hugoreleaser [Mon, 8 Nov 2021 15:22:23 +0000 (15:22 +0000)]
releaser: Add release notes for 0.89.2
[ci skip]

3 years agoFix path resolution in hugo new
Bjørn Erik Pedersen [Mon, 8 Nov 2021 10:50:51 +0000 (11:50 +0100)]
Fix path resolution in hugo new

With theme and project with content directories and command on the form `hugo new posts/test.md`.

Fixes #9129

3 years agodeps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3
Bjørn Erik Pedersen [Mon, 8 Nov 2021 10:09:10 +0000 (11:09 +0100)]
deps: Upgrade github.com/yuin/goldmark v1.4.2 => v1.4.3

Fixes #9137

3 years agoreleaser: Prepare repository for 0.90.0-DEV vanilla/release-0.89.1
hugoreleaser [Fri, 5 Nov 2021 16:24:06 +0000 (16:24 +0000)]
releaser: Prepare repository for 0.90.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.89.1 v0.89.1
hugoreleaser [Fri, 5 Nov 2021 15:44:32 +0000 (15:44 +0000)]
releaser: Add release notes to /docs for release of 0.89.1

[ci skip]

3 years agoreleaser: Bump versions for release of 0.89.1
hugoreleaser [Fri, 5 Nov 2021 15:44:32 +0000 (15:44 +0000)]
releaser: Bump versions for release of 0.89.1

[ci skip]

3 years agoreleaser: Add release notes for 0.89.1
hugoreleaser [Fri, 5 Nov 2021 15:44:32 +0000 (15:44 +0000)]
releaser: Add release notes for 0.89.1
[ci skip]

3 years agoRevert "releaser: Fat MacOS binaries"
Bjørn Erik Pedersen [Fri, 5 Nov 2021 15:31:19 +0000 (16:31 +0100)]
Revert "releaser: Fat MacOS binaries"

This had some side effect that I'm not prepared to fix today ...

This reverts commit 3a977485eb7d5f913da5cc10ef58715ffd273613.

Updates #9131
Updates #9128

3 years agocreate: Make sure the build lock is released before we open editor
Bjørn Erik Pedersen [Thu, 4 Nov 2021 07:57:11 +0000 (08:57 +0100)]
create: Make sure the build lock is released before we open editor

Fixes #9121

3 years agoreadme: Update dependency list
Andreas Deininger [Wed, 3 Nov 2021 16:15:33 +0000 (17:15 +0100)]
readme: Update dependency list

3 years agoreleaser: Prepare repository for 0.90.0-DEV vanilla/release-0.89.0
hugoreleaser [Tue, 2 Nov 2021 10:40:00 +0000 (10:40 +0000)]
releaser: Prepare repository for 0.90.0-DEV

[ci skip]

3 years agoreleaser: Add release notes to /docs for release of 0.89.0 v0.89.0
hugoreleaser [Tue, 2 Nov 2021 10:00:17 +0000 (10:00 +0000)]
releaser: Add release notes to /docs for release of 0.89.0

[ci skip]

3 years agoreleaser: Bump versions for release of 0.89.0
hugoreleaser [Tue, 2 Nov 2021 10:00:17 +0000 (10:00 +0000)]
releaser: Bump versions for release of 0.89.0

[ci skip]

3 years agoreleaser: Add release notes for 0.89.0
hugoreleaser [Tue, 2 Nov 2021 08:14:29 +0000 (08:14 +0000)]
releaser: Add release notes for 0.89.0

3 years agodocs: Regen CLI docs
Bjørn Erik Pedersen [Tue, 2 Nov 2021 08:01:26 +0000 (09:01 +0100)]
docs: Regen CLI docs

3 years agosource: Make ContentBaseName() return the directory for branch bundles
Bjørn Erik Pedersen [Mon, 1 Nov 2021 19:30:34 +0000 (20:30 +0100)]
source: Make ContentBaseName() return the directory for branch bundles

Fixes #9112

3 years agoFix description of lang.FormatNumberCustom
Joe Mooring [Mon, 1 Nov 2021 17:43:41 +0000 (10:43 -0700)]
Fix description of lang.FormatNumberCustom

It currently refers to itself as a simple alternative, when it should
refer to lang.FormatNumber.

3 years agoUpdate Twitter shortcode oEmbed endpoint
Joe Mooring [Sun, 31 Oct 2021 10:56:36 +0000 (03:56 -0700)]
Update Twitter shortcode oEmbed endpoint

The existing endpoint will be retired and removed on November 23, 2021.
References:

- https://twittercommunity.com/t/consolidating-the-oembed-functionality/154690
- https://developer.twitter.com/en/docs/twitter-for-websites/oembed-api#Embedded

This is a backward compatible change.

The existing endpoint requires a single parameter: the id of the tweet.

The new endpoint requires two parameters: the id of the tweet, and the
user with whom it is associated. For the moment, if you supply the wrong
user, the request will be redirected (with a small delay) to the correct
user/id pair. This behavior is undocumented, but we will take advantage
of it as Hugo site authors transition to the new syntax.

{{< tweet 1453110110599868418 >}} --> works, throws warning, deprecate at some point

{{< tweet user="SanDiegoZoo" id="1453110110599868418" >}} --> new syntax

Fixes #8130

3 years agocommon/htime: Fix time.Format with Go layouts
Bjørn Erik Pedersen [Mon, 1 Nov 2021 14:20:57 +0000 (15:20 +0100)]
common/htime: Fix time.Format with Go layouts

Fixes #9107

3 years agobuild(deps): bump github.com/evanw/esbuild from 0.13.10 to 0.13.12
dependabot[bot] [Mon, 1 Nov 2021 08:14:48 +0000 (08:14 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.13.10 to 0.13.12

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.13.10 to 0.13.12.
- [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.13.10...v0.13.12)

---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/yuin/goldmark from 1.4.1 to 1.4.2
dependabot[bot] [Sat, 30 Oct 2021 09:25:08 +0000 (09:25 +0000)]
build(deps): bump github.com/yuin/goldmark from 1.4.1 to 1.4.2

Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoMerge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'
Bjørn Erik Pedersen [Sun, 31 Oct 2021 12:53:55 +0000 (13:53 +0100)]
Merge commit 'aa5ac36a3eb68b86c803caec703869efefc8447e'

3 years agoSquashed 'docs/' changes from 327003421..39a7fac34
Bjørn Erik Pedersen [Sun, 31 Oct 2021 12:51:51 +0000 (13:51 +0100)]
Squashed 'docs/' changes from 327003421..39a7fac34

39a7fac34 Add .hugo_build.lock to .gitignore
920c716a4 fix a typo: to -> two (#1545)
6f0ba9593 Remove godocref from front matter (#1543)
8ec3d5948 remove link to wercker (#1544)
b56008719 Delete deployment-with-wercker.md (#1542)
e33d29b02 Fix broken links (#1538)
29e9d4c21 Sort commenting systems (#1541)
0b7ea60a7 Delete the news page "HTTP/2 Server Push in Hugo"
6e1515857 Fix quick-start.md (#1525)
62168ab35 Update comments.md (#1535)
d92191512 Small typo (#1539)
129c8834a Correct the PostCSS noMap default value (#1534)
6a5b29fcc Add example to index function (#1536)
e3dd8c507 Update output-formats.md
0c9321ca0 Remove reference to using LiveReload in production environment
4072d6776 Mod testing
09fabf7d6 Fix typo (#1524)
2fce813c8 Fix grammatical error in quick-start.md (#1523)
45230ab4a Hugo Mod testing
2dd4cd9e7 Update index.md
2c3ed62fd netlify: Bump to 0.88.1
648e2a007 Merge branch 'tempv0.88.1'
f216eade1 releaser: Add release notes to /docs for release of 0.88.1
8a7b64d4b Fix typographical errors in 0.88.0 release notes
a4bf86300 Release 0.88
738bb8f38 releaser: Add release notes to /docs for release of 0.88.0
8fcf2c55d highlight: Remove some pygments references
f2b173de2 HTTPS link
c88881c8e Adding link to nginx documentation
6b0a74fe0 Fix typos in docs (#1516)
498b8f0f1 Fix typos in time.Format (#1515)
28723fad6 Fix taxonomy and term examples (#1514)
3ffd00e12 Update front-matter.md
7cc1da82e Fix grammar in 0.86.1 release notes (#1510)
0009c51c3 Update docs helper
7e2f430f4 Update index.md
7857eae7e releaser: Add release notes to /docs for release of 0.87.0
1f08b684b releaser: Add release notes to /docs for release of 0.87.0
36a9e701c docs: Adjust config docs
0f588438e docs: Regen CLI docs
1b4682cd8 docs: Regen docs helper
bc8bbaae9 Merge commit 'bd77f6e1c99e04a476f0b1bb4e44569134e02399' into release-0.87.0
6f2480643 docs: Adjust time zone docs

git-subtree-dir: docs
git-subtree-split: 39a7fac343c289906db644c96079fdcc0298582f

3 years agoreleaser: Fat MacOS binaries
Bjørn Erik Pedersen [Sat, 30 Oct 2021 08:07:27 +0000 (10:07 +0200)]
releaser: Fat MacOS binaries

Fixes #9035

3 years agoreleaser: Only build amd64 binary for freebsd, netbsd, openbsd, dragonfly
Bjørn Erik Pedersen [Sat, 30 Oct 2021 09:25:04 +0000 (11:25 +0200)]
releaser: Only build amd64 binary for freebsd, netbsd, openbsd, dragonfly

Fixes #9102

3 years agotpl/time: Use configured location when date passed to Format is string
Bjørn Erik Pedersen [Sat, 30 Oct 2021 14:06:00 +0000 (16:06 +0200)]
tpl/time: Use configured location when date passed to Format is string

Updates #9084

3 years agobuild(deps): bump github.com/aws/aws-sdk-go from 1.40.8 to 1.41.14
dependabot[bot] [Sat, 30 Oct 2021 07:44:20 +0000 (07:44 +0000)]
build(deps): bump github.com/aws/aws-sdk-go from 1.40.8 to 1.41.14

Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.40.8 to 1.41.14.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.40.8...v1.41.14)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/getkin/kin-openapi from 0.79.0 to 0.80.0
dependabot[bot] [Sat, 30 Oct 2021 07:43:20 +0000 (07:43 +0000)]
build(deps): bump github.com/getkin/kin-openapi from 0.79.0 to 0.80.0

Bumps [github.com/getkin/kin-openapi](https://github.com/getkin/kin-openapi) from 0.79.0 to 0.80.0.
- [Release notes](https://github.com/getkin/kin-openapi/releases)
- [Commits](https://github.com/getkin/kin-openapi/compare/v0.79.0...v0.80.0)

---
updated-dependencies:
- dependency-name: github.com/getkin/kin-openapi
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agobuild(deps): bump github.com/evanw/esbuild from 0.13.8 to 0.13.10
dependabot[bot] [Thu, 28 Oct 2021 08:18:39 +0000 (08:18 +0000)]
build(deps): bump github.com/evanw/esbuild from 0.13.8 to 0.13.10

Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild) from 0.13.8 to 0.13.10.
- [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.13.8...v0.13.10)

---
updated-dependencies:
- dependency-name: github.com/evanw/esbuild
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoresources: Rename excepted filenames for image golden testdata
Anthony Fok [Thu, 28 Oct 2021 22:14:14 +0000 (16:14 -0600)]
resources: Rename excepted filenames for image golden testdata

As documented in commit 30eea3915b67f72611a3b2f4547146d4c6a96864,
some filenames have changed due to cache busting of PNG and Webp images.

This resolves recent TestImageOperationsGolden failure on arm64, ppc64le
and s390x.

See #6387 and #8729

3 years agobuild(deps): bump github.com/frankban/quicktest from 1.13.1 to 1.14.0
dependabot[bot] [Wed, 20 Oct 2021 16:34:52 +0000 (16:34 +0000)]
build(deps): bump github.com/frankban/quicktest from 1.13.1 to 1.14.0

Bumps [github.com/frankban/quicktest](https://github.com/frankban/quicktest) from 1.13.1 to 1.14.0.
- [Release notes](https://github.com/frankban/quicktest/releases)
- [Commits](https://github.com/frankban/quicktest/compare/v1.13.1...v1.14.0)

---
updated-dependencies:
- dependency-name: github.com/frankban/quicktest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoFix typo in error message
Joe Mooring [Mon, 25 Oct 2021 20:35:35 +0000 (13:35 -0700)]
Fix typo in error message

3 years agocreate: Validate the target path in hugo new
Bjørn Erik Pedersen [Mon, 25 Oct 2021 10:28:12 +0000 (12:28 +0200)]
create: Validate the target path in hugo new

Fixes #9072

3 years agoFix panic when specifying multiple excludeFiles directives
Bjørn Erik Pedersen [Mon, 25 Oct 2021 10:18:00 +0000 (12:18 +0200)]
Fix panic when specifying multiple excludeFiles directives

Fixes #9076

3 years agohtime: Set zone of datetime from from `go-toml`
satotake [Mon, 25 Oct 2021 17:49:44 +0000 (02:49 +0900)]
htime: Set zone of datetime from from `go-toml`

`go-toml/v2`'s unmarshaler does not specify zone name even if value has
offset explicitly.
To make time-formatting behaviour consistent, convert them into string
in hugo.

Close #8895

3 years agoAdded nodesource apt repository to snap package
Sergio Garcia [Mon, 11 Oct 2021 21:39:02 +0000 (18:39 -0300)]
Added nodesource apt repository to snap package

3 years agoconfig: Set HUGO_ENABLEGITINFO=false override in Set_in_string
Anthony Fok [Fri, 22 Oct 2021 11:12:09 +0000 (05:12 -0600)]
config: Set HUGO_ENABLEGITINFO=false override in Set_in_string

This allows TestLoadConfigWithOsEnvOverrides/Set_in_string to PASS
even if there is no .git directory, e.g. during Debian package build.

3 years agohugofs: Add includeFiles and excludeFiles to mount configuration
Bjørn Erik Pedersen [Sat, 16 Oct 2021 14:24:49 +0000 (16:24 +0200)]
hugofs: Add includeFiles and excludeFiles to mount configuration

Fixes #9042

3 years agobuild(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2
dependabot[bot] [Thu, 14 Oct 2021 08:38:44 +0000 (08:38 +0000)]
build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2

Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases)
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
3 years agoresources: Always preserve the original transform error
Bjørn Erik Pedersen [Tue, 19 Oct 2021 18:38:38 +0000 (20:38 +0200)]
resources: Always preserve the original transform error

3 years agoreadme: Add hyperlink to the banner
itsAftabAlam [Tue, 19 Oct 2021 13:59:12 +0000 (19:29 +0530)]
readme: Add hyperlink to the banner