Bjørn Erik Pedersen
6a365c2712
commands: Add some more info to "hugo config mounts"
...
* Add owner path and version.
* Also add thme meta info and Hugo version when run with -v flag
2021-06-27 16:08:28 +02:00
Bjørn Erik Pedersen
19aa95fc7f
Fix config handling with empty config entries after merge
...
Fixes #8701
2021-06-27 15:01:56 +02:00
Bjørn Erik Pedersen
923dd9d1c1
Fix config loading for "hugo mod init"
...
We have some commands that will continue even if the config loading fails (e.g. because a module can not be found). In Hugo 0.84.0 we introduced a new `_merge` flag that we removed once the configuration was loaded. But we did not do that in error situations, leading to failures in some situations.
This commit fixes that by making sure the configuration is always cleaned before return, even in error situations.
Fixes #8697
2021-06-27 12:03:43 +02:00
Bjørn Erik Pedersen
d9bdd37d35
deps: Update to Minify v2.9.18
...
Closes #8693
2021-06-26 17:15:55 +02:00
digitalcraftsman
b2eaf4c8c2
Remove credit from release notes
2021-06-25 21:14:11 +02:00
hugoreleaser
efb6ee6c1c
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-06-24 12:33:45 +00:00
hugoreleaser
4bd65e224f
releaser: Add release notes to /docs for release of 0.84.1
...
[ci skip]
2021-06-24 11:44:21 +00:00
hugoreleaser
ff2266300a
releaser: Bump versions for release of 0.84.1
...
[ci skip]
2021-06-24 11:44:21 +00:00
hugoreleaser
8677cfb04f
releaser: Add release notes for 0.84.1
...
[ci skip]
2021-06-24 11:44:21 +00:00
Bjørn Erik Pedersen
093dacab29
Fix language menu config regression
...
Fixes #8672
2021-06-24 13:03:09 +02:00
Bjørn Erik Pedersen
4a9d408fe0
config: Fix merge of config with map[string]string values.
...
Fixes #8679
2021-06-22 21:38:28 +02:00
Bjørn Erik Pedersen
9312059888
releaser: Bump to Goreleaser v0.171.0
...
Closes #8665
2021-06-21 16:12:18 +02:00
Bjørn Erik Pedersen
a7e3da242f
markup: Rename Header(s) to Heading(s) in ToC struct
...
Because that is what it is.
2021-06-19 18:19:46 +02:00
Bjørn Erik Pedersen
b70a12ec45
Merge commit '4dd90050f154c91373329a5d7e348289c40be12f'
2021-06-18 17:50:27 +02:00
Bjørn Erik Pedersen
4dd90050f1
Squashed 'docs/' changes from 3a923e155..710856e5a
...
710856e5a Release 0.84.0
362f4ea7b releaser: Add release notes to /docs for release of 0.84.0
6bb8800f7 docs: Regenerate docs helper
00a522e6a docs: Regenerate docshelper
bc171954b Merge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'
ef73ffc3b Misc config loading fixes
0b4117f7f docs: Regenerate docs helper
9b9452b9c Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'
9c4413dd9 tpl/fmt: Add erroridf template func
e1875742e tpl/data: Misc header improvements, tests, allow multiple headers of same key
e4560893c Add math.Max and math.Min
7dc282eaf common/maps: Add Scratch.DeleteInMap
b9cd77171 docs: Update querify function description and examples
git-subtree-dir: docs
git-subtree-split: 710856e5a6c683ce26d385960423303cc109c09e
2021-06-18 17:49:54 +02:00
hugoreleaser
3d544c9ae4
releaser: Prepare repository for 0.85.0-DEV
...
[ci skip]
2021-06-18 15:36:43 +00:00
hugoreleaser
2c4689f7b8
releaser: Add release notes to /docs for release of 0.84.0
...
[ci skip]
2021-06-18 14:55:51 +00:00
hugoreleaser
9c0860f749
releaser: Bump versions for release of 0.84.0
...
[ci skip]
2021-06-18 14:55:51 +00:00
Bjørn Erik Pedersen
a1694b06af
releaser: Increase timeout
2021-06-18 16:44:12 +02:00
hugoreleaser
219ec38007
releaser: Add release notes for 0.84.0
2021-06-18 14:42:14 +02:00
Bjørn Erik Pedersen
be6b901cf7
docs: Regenerate docs helper
2021-06-18 13:21:10 +02:00
Bjørn Erik Pedersen
643b671931
output: Make WebAppManifestFormat NotAlternative=true
...
Updates #8624
2021-06-18 13:19:37 +02:00
Bjørn Erik Pedersen
ab4e1dfa4e
media: Adjust test assertion
...
Closes #8625
2021-06-18 13:15:00 +02:00
Rohan Kumar
02f31897b4
media: support application/manifest+json
...
The standard file extension for Web App Manifest files is
".webmanifest". This commit allows Hugo to recognize .webmanifest files
as "application/manifest+json" files and to minify them using its
JSON minifier.
The .webmanifest file extension is recommended in the w3c spec to
simplify media type registration:
https://www.w3.org/TR/appmanifest/#media-type-registration
Webhint docs are also relevant:
https://webhint.io/docs/user-guide/hints/hint-manifest-file-extension/
Closes #8624
2021-06-18 13:11:44 +02:00
Bjørn Erik Pedersen
402da3f8f3
docs: Regenerate docshelper
2021-06-18 12:58:07 +02:00
Bjørn Erik Pedersen
92405e5b0a
Squashed 'docs/' changes from 4c81c6c2a..3a923e155
...
3a923e155 Update configuration.md
git-subtree-dir: docs
git-subtree-split: 3a923e15502520d1c4aa0481bcc528b2831d4c81
2021-06-18 12:57:19 +02:00
Bjørn Erik Pedersen
a074f758b0
Merge commit '92405e5b0adc5d8c3dfde88d6a8b67eb09169190'
2021-06-18 12:57:19 +02:00
Bjørn Erik Pedersen
bb2aa08709
Implement configuration in a directory for modules
...
Fixes #8654
2021-06-18 12:54:30 +02:00
Bjørn Erik Pedersen
9096842b04
tpl: Rename err-missing-instagram-accesstoken => error-missing-instagram-accesstoken
...
To get it in line with the other.
2021-06-18 12:27:37 +02:00
Bjørn Erik Pedersen
3aa7f0b27f
deps: Update github.com/alecthomas/chroma v0.9.1 => v0.9.2
...
Closes #8658
2021-06-18 12:14:52 +02:00
Bjørn Erik Pedersen
9b870aa788
deps: Run go mod tidy
2021-06-18 12:13:17 +02:00
Bjørn Erik Pedersen
93aad3c543
Split out the puthe path/filepath functions into common/paths
...
So they can be used from the config package without cyclic troubles.
Updates #8654
2021-06-18 10:55:00 +02:00
Bjørn Erik Pedersen
5af045ebab
resources/image: Fix fill with smartcrop sometimes returning 0 bytes images
...
Fixes #7955
2021-06-17 23:52:27 +02:00
Joe Mooring
8eafe0845d
deps: Update to Goldmark v1.3.8
...
Fixes #8648
2021-06-17 19:34:26 +02:00
Bjørn Erik Pedersen
31fb29fb3f
Do not read config from os.Environ when running tests
...
Fixes #8655
2021-06-16 18:58:40 +02:00
Bjørn Erik Pedersen
d392893cd7
Misc config loading fixes
...
The main motivation behind this is simplicity and correctnes, but the new small config library is also faster:
```
BenchmarkDefaultConfigProvider/Viper-16 252418 4546 ns/op 2720 B/op 30 allocs/op
BenchmarkDefaultConfigProvider/Custom-16 450756 2651 ns/op 1008 B/op 6 allocs/op
```
Fixes #8633
Fixes #8618
Fixes #8630
Updates #8591
Closes #6680
Closes #5192
2021-06-14 17:00:32 +02:00
Bjørn Erik Pedersen
a886dd53b8
github: Set a dummy Instagram token
...
For now, need to debug why this fails.
2021-06-13 11:09:50 +02:00
Bjørn Erik Pedersen
a91cd7652f
docs: Regenerate docs helper
2021-06-08 18:52:38 +02:00
Bjørn Erik Pedersen
162f41d0ef
Merge commit '32ba623541d74ee0b7ae4efb1b8326dc49af28b8'
2021-06-08 18:47:53 +02:00
Bjørn Erik Pedersen
32ba623541
Squashed 'docs/' changes from bcc4f9324..4c81c6c2a
...
4c81c6c2a live reload: add section about `--navigateToChanged`
271014257 Update netify hugo version to 0.83.1
14199cff1 Add pull_request event
0c33b05de Hosting on GitHub: Little wording fixes and update Ubuntu runner in example workflow to 20.04 (#1457 )
e47b6c33a Hugo Modules plural typo (#1266 )
0f2bbacdd Add node_modules to .gitignore
1d645d79f Overhaul scratch.md (#1451 )
572766889 Add link to golang regex syntax, change modified date
21b0c7459 Add info about contentType config
de7d96fa2 Document Go template's multiline support
0c8f2dcb1 Avoid scratch usage
696fa92e1 Rename scratch var
44193f267 Update usage instructions
4230f8fa5 Rename and refactor shortcode
e9953751e Strip leading whitespaces
d61a58010 Add `insertpages` shortcode
04d30677d Mention WebP under 'Target Format' (#1431 )
946784508 Update lookup-order.md (#1443 )
a7b587988 Update index.md
27907f7ea netlify: Hugo 0.83.1
044d37e57 Merge branch 'tempv0.83.1'
b81aedb03 Fix page `.Kind`
fcf7775ad releaser: Add release notes to /docs for release of 0.83.1
9b39c77c8 fix typo in 0.83 release notes
1c38993ce Update index.md
45b8aefa6 Update index.md
43902dfaa Update index.md
3d959c7ae Merge branch 'tempv0.83.0'
6c22dc327 Fix URL
497ea3224 Use Hugo version badge shortcode
a182d10dd releaser: Add release notes to /docs for release of 0.83.0
287fd9ac0 docs: Fix shortcode
e789c879a docs: Regenerate docs helper
1666c7f31 docs: Regenerate CLI docs
117de1d12 Merge commit 'c239c643fee10bfa217cb108755b798f8f5f3b10'
a6bf3f7d9 docs: Regen docs helper
git-subtree-dir: docs
git-subtree-split: 4c81c6c2ace6c23d0d5d24ee37e6a2f30acba01e
2021-06-08 18:46:58 +02:00
Bjørn Erik Pedersen
552cef5c57
Update to Go 1.16.5, Goreleaser 0.169.0
...
Fixes #8619
Fixes #8263
2021-06-08 18:46:35 +02:00
Joe Mooring
73483d0f9e
tpl: Add a terse pagination template variant to improve performance
...
These calls are equivalent:
{{ template "_internal/pagination.html" . }}
{{ template "_internal/pagination.html" (dict "page" .) }}
{{ template "_internal/pagination.html" (dict "page" . "format" "default") }}
To use an alternate format:
{{ template "_internal/pagination.html" (dict "page" . "format" "terse") }}
Fixes #8599
2021-06-08 10:41:21 +02:00
Bjørn Erik Pedersen
9b5debe4b8
Upgrade Instagram shortcode
...
Fixes #7879
2021-06-08 10:30:45 +02:00
Bjørn Erik Pedersen
12530519d8
Fix nested OS env config override when parent does not exist
...
Fixes #8618
2021-06-08 09:57:18 +02:00
Bjørn Erik Pedersen
f55d2f4376
tpl/fmt: Add erroridf template func
...
Fixes #8613
2021-06-07 19:11:03 +02:00
Bjørn Erik Pedersen
282f1aa3db
tpl/data: Print response body on HTTP errors
...
Which makes it easier to debug.
2021-06-07 12:06:27 +02:00
Bjørn Erik Pedersen
fcd63de3a5
tpl/data: Misc header improvements, tests, allow multiple headers of same key
...
Closes #5617
2021-06-06 13:32:12 +02:00
Paul Chamberlain
150d75738b
tpl/data: Allows user-defined HTTP headers with getJSON and getCSV
...
Updates #5617
2021-06-06 13:32:12 +02:00
Bjørn Erik Pedersen
06d295427f
hugofs: Set modTime at creation time
...
As `ModTime()` should return the same value on each invocation.
See #6161
2021-06-05 11:45:56 +02:00
Anthony Fok
26ae12c0c6
Fix invalid timestamp of the "public" folder
...
Special thanks to both Richard Mortimer (@oldelvet) and
Joshua M. Clulow (@jclulow) for their analysis and suggested fix:
* https://github.com/gohugoio/hugo/issues/6161#issuecomment-574336088
* https://github.com/gohugoio/hugo/issues/6161#issuecomment-596805273
Fixes #6161
2021-06-04 14:50:30 -06:00