Bjørn Erik Pedersen
e77b2e3aa0
Pull in latest Go 1.16 template source
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
b5485aeae7
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
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
ccb822eb5a
Pull in latest Go template source
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
21e9eb18ac
Expand template newline testcase to commands
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
ae57ba6a9d
Add a test case for Go 1.16 template action newlines
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
cf3e077da3
tpl/internal: Synch Go templates fork with Go 1.16dev
2021-02-18 14:11:48 +01:00
Bjørn Erik Pedersen
66beac99c6
deps: Update github.com/tdewolff/minify/v2 v2.6.2 => v2.9.13
...
Fixes #8258
2021-02-18 10:19:22 +01:00
dependabot[bot]
968dd7a711
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>
2021-02-16 22:10:33 +01:00
dependabot[bot]
38f29e817f
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>
2021-02-16 21:18:35 +01:00
dependabot[bot]
cd87813aa0
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>
2021-02-16 18:43:30 +01:00
dependabot[bot]
4e815b063e
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>
2021-02-16 18:42:55 +01:00
dependabot[bot]
652a59d385
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>
2021-02-16 18:39:44 +01:00
Bjørn Erik Pedersen
84f0ec7f80
deps: Update to esbuild v0.8.46
2021-02-16 18:37:30 +01:00
Bjørn Erik Pedersen
bdfbcf6f4b
modules: Add config option modules.vendorClosest
...
Fixes #8235
Fixes #8242
2021-02-16 16:30:01 +01:00
Bjørn Erik Pedersen
b60e9279ab
js: Fix potential path issue on Windows
2021-02-16 16:10:46 +01:00
dependabot[bot]
a9b0fea6a3
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>
2021-02-16 16:10:12 +01:00
Anthony Fok
e8df097745
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
2021-02-16 16:08:24 +01:00
Bjørn Erik Pedersen
3a5ee0d2d6
modules: Allow absolute paths for any modules resolved via project replacement
...
Fixes #8240
2021-02-15 11:11:34 +01:00
Bjørn Erik Pedersen
4ffaeaf155
modules: Throw an error running hugo mod vendor on mountless module
2021-02-15 10:47:32 +01:00
susiwen8
bf55afd71f
Fix some humanize issues
...
Fixes #7912
2021-02-14 18:30:59 +01:00
Anthony Fok
5f621df257
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 a7c515e1b5
.
2021-02-09 13:37:36 -07:00
Anthony Fok
7118f89cf3
Refer to mage instead of make in comment regarding commitHash
2021-02-09 09:57:18 -07:00
Bjørn Erik Pedersen
e6dd312812
markup/goldmark: Fix handling of legacy attribute config
...
See #7548
2021-02-09 09:23:18 +01:00
Bjørn Erik Pedersen
2681633db8
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
2021-02-08 19:52:55 +01:00
Bjørn Erik Pedersen
1b24728256
deps: Update to Goldmark v1.3.2
...
Closes #8143
2021-02-08 12:16:21 +01:00
Bjørn Erik Pedersen
441b11beec
Update to Dart Sass Protocol beta6
...
Note that this version is not backwards compatible, so you have to update the protocol binary.
2021-02-06 18:34:19 +01:00
Jeremy Epstein
4867cd1dea
tpl/embedded: Exclude pages without Permalink from sitemap
2021-02-06 18:30:09 +01:00
Bjørn Erik Pedersen
92c6c40419
langs/i18n: Support translation files with suffix *.yml
...
Fixes #8212
2021-02-06 18:12:54 +01:00
Ben Mezger
d36fd5b3ee
Refactor: Write to stdout by default
2021-02-04 15:32:51 -07:00
Ben Mezger
a7c515e1b5
Refactor: Remove powershell support
2021-02-04 15:32:51 -07:00
Ben Mezger
216b00f358
Feat: Add zsh, fish and powershell completion support
...
See issue #4296
2021-02-04 15:32:51 -07:00
Bjørn Erik Pedersen
144943798c
github: Enable NPM tests on Windows
...
Fixes #8196
2021-02-01 11:32:17 +01:00
Bjørn Erik Pedersen
440fdb0eb9
deps: Update to esbuild v0.8.39
...
Fixes #8189
2021-02-01 11:28:12 +01:00
Pavlo Matiash
b2a48dce58
Trim whitespace in elements written to hugo_stats.json
...
Fixes #7958
2021-02-01 09:32:39 +01:00
Baris Ceviz
35def0ae45
tpl/data: Add default user-agent header for getJSON requests
2021-02-01 09:31:02 +01:00
dependabot[bot]
2f9dadae40
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>
2021-01-28 22:20:00 +01:00
Aleksandr Demakin
ed3071b753
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 .
2021-01-23 14:14:51 +01:00
Aleksandr Demakin
ee9c136763
tpl/os: remove 1mb limit for readFile.
2021-01-23 00:39:14 +01:00
Bjørn Erik Pedersen
32b86076ee
js: Add Inject config option
...
Fixes #8164
2021-01-22 23:43:44 +01:00
Cameron Moore
241b7483ea
tpl: Fix race condition in text template baseof
...
Copy most of the htmltemplate cloning to the textemplate implementation
in the same function.
2021-01-22 19:25:45 +01:00
Bjørn Erik Pedersen
e19a046c4b
js: Add Shims option
...
This commit adds a new `shims` option to `js.Build` that allows swapping out a component with another.
Fixes #8165
2021-01-22 09:03:24 +01:00
Bjørn Erik Pedersen
a1fe552fc9
Fix nilpointer in js.Build error handling
...
Fixes #8162
2021-01-21 10:09:33 +01:00
Bjørn Erik Pedersen
a1a9f088b1
Merge commit 'e48ffb763572814a3788780bb9653dfa2daeae22'
2021-01-20 12:48:39 +01:00
Bjørn Erik Pedersen
e48ffb7635
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
2021-01-20 12:47:49 +01:00
Robert-André Mauchin
07ad283f68
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>
2021-01-19 17:25:20 +01:00
Andreas Richter
2c8b5d9165
pipes: Add external source map support to js.Build and Babel
...
Fixes #8132
2021-01-18 10:38:09 +01:00
Cameron Moore
0004a733c8
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
2021-01-08 20:01:11 +01:00
Cameron Moore
8a26ab0bc5
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
2021-01-08 10:13:10 +01:00
Cameron Moore
788e50ad3a
tpl: Add missing test scenario for strings.Substr
2021-01-08 10:13:10 +01:00
Bjørn Erik Pedersen
4d2b6fc4c0
Run go mod tidy
2021-01-03 18:48:35 +01:00