Joe Mooring
27b22cd87e
commands/new: Remove format flag from new content cmd
...
Fixes #11462
2023-10-30 09:02:26 +01:00
Joe Mooring
a2488b1c95
hugolib: Display correct markup identifier in error message
...
Fixes #11538
2023-10-30 09:01:34 +01:00
Bjørn Erik Pedersen
8f60c0c1ec
livereloadinject: Save some allocations
...
As suggested by @DominoPivot
```
name old time/op new time/op delta
LiveReloadInject-10 1.11µs ± 2% 1.04µs ± 2% -6.45% (p=0.029 n=4+4)
name old alloc/op new alloc/op delta
LiveReloadInject-10 1.23kB ± 0% 0.89kB ± 0% -27.69% (p=0.029 n=4+4)
name old allocs/op new allocs/op delta
LiveReloadInject-10 12.0 ± 0% 10.0 ± 0% -16.67% (p=0.029 n=4+4)
```
2023-10-29 18:37:05 +01:00
Domino Goupil
9dc608084b
livereloadinject: Use more robust injection method
2023-10-29 18:37:05 +01:00
Joe Mooring
a349aafb7f
tpl/urls: Return strings from URL functions
...
Closes #11511
2023-10-29 18:12:24 +01:00
Bjørn Erik Pedersen
b8fbd4a578
transform/livereloadinject: Add benchmark
2023-10-29 17:50:55 +01:00
dependabot[bot]
e2b2092ce6
build(deps): bump golang.org/x/tools from 0.13.0 to 0.14.0
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/tools
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-29 16:38:06 +01:00
dependabot[bot]
f4df7b88b3
build(deps): bump github.com/tdewolff/minify/v2 from 2.12.9 to 2.20.0
...
Bumps [github.com/tdewolff/minify/v2](https://github.com/tdewolff/minify ) from 2.12.9 to 2.20.0.
- [Release notes](https://github.com/tdewolff/minify/releases )
- [Commits](https://github.com/tdewolff/minify/compare/v2.12.9...v2.20.0 )
---
updated-dependencies:
- dependency-name: github.com/tdewolff/minify/v2
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-29 11:36:23 +01:00
dependabot[bot]
3d9bd404ee
build(deps): bump github.com/mattn/go-isatty from 0.0.19 to 0.0.20
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.19 to 0.0.20.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.19...v0.0.20 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-isatty
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-29 11:35:16 +01:00
dependabot[bot]
5f5e55aa8d
build(deps): bump golang.org/x/image from 0.12.0 to 0.13.0
...
Bumps [golang.org/x/image](https://github.com/golang/image ) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/image/compare/v0.12.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/image
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-29 11:34:13 +01:00
Bjørn Erik Pedersen
0baa4f9837
Merge commit 'aaaf1c8df5d6aa061609d20510f7fa6c42e5cc1a'
2023-10-29 11:33:05 +01:00
Bjørn Erik Pedersen
aaaf1c8df5
Squashed 'docs/' changes from 417593493..4d936aee6
...
4d936aee6 Fix function signatures
8182a27ed Simplify example usage of apply function
git-subtree-dir: docs
git-subtree-split: 4d936aee622b779ef5541154750b51051dc0bf14
2023-10-29 11:33:05 +01:00
Bjørn Erik Pedersen
d3d4ab41a9
docs: Regenerate docshelper
2023-10-29 11:31:51 +01:00
Bjørn Erik Pedersen
28d844642a
Revert "modules: Throttle the "downloading modules …" log entries"
...
This reverts commit 66904097e0
.
2023-10-29 10:57:27 +01:00
Bjørn Erik Pedersen
eb5fd3127f
Revert "modules: Adjust the log throttle logic a little"
...
This reverts commit 3f64b5a3de
.
2023-10-29 10:57:25 +01:00
Joe Mooring
3ed28e4bfe
resources/images: Create padding image filter
...
Closes #11599
2023-10-29 10:16:37 +01:00
OMOTO Tsukasa
db14238ba3
markup/goldmark: Update the CJK extension to allow specifying line break styles
...
This commit follows https://github.com/yuin/goldmark/pull/411
2023-10-29 10:13:56 +01:00
Bjørn Erik Pedersen
3f64b5a3de
modules: Adjust the log throttle logic a little
2023-10-28 17:40:07 +02:00
Bjørn Erik Pedersen
66904097e0
modules: Throttle the "downloading modules …" log entries
2023-10-28 17:15:34 +02:00
Bjørn Erik Pedersen
e54139c85b
tpl/collections: Make delimit return a string
...
Closes #10876
Closes #11502
2023-10-28 11:54:23 +02:00
Bjørn Erik Pedersen
3710a5ec7e
Squashed 'docs/' changes from cb18a5183..417593493
...
417593493 Fix broken link
9829e2862 Mention Go variable naming rules
11ce3a59c Fix typo
0d62feed5 Update glossary
5e9ecb217 Prepare for pending deprecations
c5f76c776 Update Twitter Cards URL
git-subtree-dir: docs
git-subtree-split: 4175934933feca8fa1f9936ccf7d16b90b41e833
2023-10-27 10:06:44 +02:00
Bjørn Erik Pedersen
705e3cd5f5
Merge commit '3710a5ec7efe6baca6e452f43632c05d22bab3c4'
2023-10-27 10:06:44 +02:00
dependabot[bot]
8c61fd2541
build(deps): bump golang.org/x/net from 0.15.0 to 0.17.0
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.15.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.15.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 09:57:12 +02:00
dependabot[bot]
d3145e4e5d
build(deps): bump github.com/evanw/esbuild from 0.19.3 to 0.19.5
...
Bumps [github.com/evanw/esbuild](https://github.com/evanw/esbuild ) from 0.19.3 to 0.19.5.
- [Release notes](https://github.com/evanw/esbuild/releases )
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG.md )
- [Commits](https://github.com/evanw/esbuild/compare/v0.19.3...v0.19.5 )
---
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>
2023-10-27 09:56:40 +02:00
dependabot[bot]
743a1da3ef
build(deps): bump github.com/spf13/afero from 1.9.5 to 1.10.0
...
Bumps [github.com/spf13/afero](https://github.com/spf13/afero ) from 1.9.5 to 1.10.0.
- [Release notes](https://github.com/spf13/afero/releases )
- [Commits](https://github.com/spf13/afero/compare/v1.9.5...v1.10.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/afero
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 09:56:05 +02:00
dependabot[bot]
123901b741
build(deps): bump github.com/bep/logg from 0.2.0 to 0.3.0
...
Bumps [github.com/bep/logg](https://github.com/bep/logg ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/bep/logg/releases )
- [Commits](https://github.com/bep/logg/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: github.com/bep/logg
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-27 09:55:05 +02:00
Bjørn Erik Pedersen
71fd79a3f4
Revise the deprecation logging
...
This introduces a more automatic way of increasing the log levels for deprecation log statements based on the version it was deprecated.
The thresholds are a little arbitrary, but
* We log INFO for 6 releases
* We log WARN for another 6 releases
* THen ERROR (failing the build)
This should give theme authors plenty of time to catch up without having the log filled with warnings.
2023-10-26 20:41:19 +02:00
Bjørn Erik Pedersen
c4a530f104
Remove rest of the now unused emoji code
...
See #11598
2023-10-26 09:20:56 +02:00
Joe Mooring
272484f8bf
markdown: Pass emoji codes to yuin/goldmark-emoji
...
Removes emoji code conversion from the page and shortcode parsers. Emoji
codes in markdown are now passed to Goldmark, where the goldmark-emoji
extension converts them to decimal numeric character references.
This disables emoji rendering for the alternate content formats: html,
asciidoc, org, pandoc, and rst.
Fixes #7332
Fixes #11587
Closes #11598
2023-10-24 12:04:13 +02:00
Razon Yang
de4e466036
Fix so hugo get -u updates transitively
2023-10-22 16:32:01 +02:00
Oleksandr Redko
c23a0c4a0f
watcher/filenotify: Remove redundant duplicated comments
2023-10-21 18:57:35 +02:00
Oleksandr Redko
a95670b981
docs: Remove outdated note from CONTRIBUTING.md
2023-10-21 18:57:01 +02:00
Bjørn Erik Pedersen
46bdc03885
tpl/debug: Add average and median to timer output
2023-10-21 15:41:21 +02:00
Bjørn Erik Pedersen
5160c7efa5
tpl/debug: Add debug.Timer
...
Closes #11580
2023-10-20 09:46:45 +02:00
Bjørn Erik Pedersen
e2dd4cd05f
Merge commit 'e509cac533600cf4fa8382c9cdab78ddd82db688'
2023-10-20 09:43:56 +02:00
Bjørn Erik Pedersen
e509cac533
Squashed 'docs/' changes from 7ef2dbce4..cb18a5183
...
cb18a5183 Fix broken link
07a0198bf Config: Place Google Analytics tag ID under the services key
4bf0c719f Fix typo
50d8ad1af Fix muiltilingual menu definition instructions
1a32519a9 Fix typos
6f34ca8e0 Explain usage of front matter to target a template
5bd977257 Improve goldmark config docs
447632938 Remove Docker notes from installation instructions
84741d173 Update reference to hugo.work
0338d7c71 Fix menu template
f5d2f5ed4 Fix typos in content/en/functions/fmt
a3a40ff99 Add return type to functions
85ac3e779 Remove outdated feature image
d47d889e4 Fix signatures
7551ba28f Document safe.JSStr function
e77993be0 Document keyVals function
4dba20db3 Update theme
babf91544 Update echoparam
8c8203efa Adjust related functions
4cb1b30fc Fix example
ba95eca64 Improve showcase prose
5d3dcf366 Add Overmind Studios showcase
8d634ac70 Change code blocks from indented to fenced
cfab978e6 Add missing code fences
407dd5c47 Limit related pages for functions to other functions
9fa67d981 Fix .Site.LastChange doc
393aa16d0 netlify: Hugo 0.119.0
f864af97a docs: Even more about images.Process
9d772d5f0 docs: More about images.Process
bc655f869 docs: Regen docshelper
41c3536d1 Merge commit '9aec42c5452b3eb224888c50ba1c3f3b68a447e9'
918ed53f4 Add images.Process filter
573645883 Add $image.Process
a1151b0fd Add images.Opacity filter
git-subtree-dir: docs
git-subtree-split: cb18a5183fc62f301ffde50b8c39f03e4b897aec
2023-10-20 09:42:39 +02:00
Bjørn Erik Pedersen
fd38171810
Add some convenient integration test helpers
2023-10-18 18:54:15 +02:00
Joe Mooring
2eca1b3cc1
hugolib: Deprecate .Site.DisqusShortname
...
Use .Site.Config.Services.Disqus.Shortname instead.
2023-10-18 17:35:54 +02:00
Lars Lehtonen
625162674d
tpl/tplimpl: Fix dropped error
2023-10-18 17:33:00 +02:00
Joe Mooring
a692278bc6
hugolib: Deprecate .Site.GoogleAnalytics
...
Use .Site.Config.Services.GoogleAnalytics.ID instead.
2023-10-17 20:06:42 +02:00
Joe Mooring
d4016dd5cd
tpl/tplimpl: Deprecate .Site.Author usage in RSS template
2023-10-17 20:04:49 +02:00
Joe Mooring
4910312ee7
tpl/tplimpl: Deprecate .Site.Social usage with internal templates
2023-10-17 20:04:24 +02:00
Joe Mooring
1b5f78b6b7
markup/tableofcontents: Return template.HTML from .Fragments.ToHTML
...
Closes #11545
2023-10-09 18:42:03 +02:00
Joe Mooring
d5d0f420d8
deps: Update github.com/tdewolff/minify/v2 v2.12.7 => v2.12.9
...
Fixes #11533
2023-10-06 19:44:25 +02:00
Joe Mooring
5993afa4c5
commands: Update message displayed when running CLI from GUI
...
Fixes #11525
2023-10-06 19:39:35 +02:00
Joe Mooring
d1b4458536
common/hugo: Add hugo.IsServer and hugo.IsDevelopment
...
And deprecate site.IsServer.
Closes #11510
2023-10-06 16:26:51 +02:00
Oleksandr Redko
274852bcf2
all: Format files with gofmt
2023-10-05 14:45:55 +02:00
abdullah-alaadine
37a2d5eb4e
magefile: Update isGoLatest to check for Go 1.21
2023-10-04 16:07:40 +02:00
Joe Mooring
4c95389c25
resources/integrity: Return string instead of template.HTMLAttr
...
Closes #11513
2023-10-02 20:14:50 +02:00
Bjørn Erik Pedersen
3af8bded26
Update README.md
2023-09-27 19:32:41 +02:00