Bjørn Erik Pedersen
b0b1b76dc9
markup/goldmark: Fail on invalid Markdown attributes
2023-03-15 08:54:34 +01:00
Bjørn Erik Pedersen
0fbab7cbc5
commands: Fix data race in test
...
Note that this is a test fix only.
2023-03-14 12:18:42 +01:00
septs
f5eddf89bf
tpl/math: Return error if less than 2 input numbers
...
Fixes #10827
2023-03-14 09:28:38 +01:00
hugoreleaser
0e8ab20a84
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-12 11:51:49 +00:00
hugoreleaser
5d4eb5154e
releaser: Bump versions for release of 0.111.3
...
[ci skip]
2023-03-12 11:40:50 +00:00
Niklas Fasching
1c841ec914
deps: Update go-org to v1.6.6
...
among other things, fixes a race condition in html writer and bug preventing
explicit line breaks immediately following emphasis
2023-03-12 12:38:12 +01:00
Bjørn Erik Pedersen
e7148f335f
Fix "unknown shortcode token" when calling shortcode within fenced code block
...
Fixes #10819
2023-03-12 11:39:38 +01:00
Andreas Deininger
d55af2abf0
Run gofmt -s on source files
2023-03-12 10:32:29 +01:00
Joe Mooring
b6f44aaf1a
docs: Improve examples of variadic math functions
2023-03-12 10:32:01 +01:00
septs
84201e8d5d
tpl/math: Allow multi numbers in add, sub, mul, div, min and max
2023-03-11 11:21:08 +01:00
Andreas Deininger
04b9811643
readme: Update dependency list
2023-03-11 10:15:16 +01:00
Andreas Deininger
9818724b5b
Improve error message for unclosed shortcode with inner content
2023-03-10 18:41:17 +01:00
Bjørn Erik Pedersen
34a86e13f6
Don't fail when calling Paginate with an empty pages.PagesGroup
...
Fixes #10802
2023-03-10 16:34:17 +01:00
Oleksandr Redko
0f01bd4637
server: Replace golang.org/x/net/context with context
2023-03-08 10:19:25 +01:00
Jonathan Fisher
d171d1543d
tpl: Add hasSuffix alias
...
strings.HasPrefix already has an alias of hasPrefix
but strings.HasSuffix has no such alias.
This PR adds a hasSuffix alias to the tpl function with corresponding
function documentation.
It also adds a Minor update to the hasPrefix function documentation
re: keywords and relatedfuncs.
Completes https://github.com/gohugoio/hugo/issues/10474
2023-03-08 10:18:34 +01:00
Oleksandr Redko
02ab77da3e
watcher: use time.NewTicker to prevent leaks
...
Replace time.Tick with time.NewTicker.
2023-03-08 10:16:34 +01:00
davidejones
873be9f90a
ensure we default to 10 correctly
2023-03-07 15:38:26 +01:00
davidejones
bebb2b8d0a
switch transfers to workers
2023-03-07 15:38:26 +01:00
davidejones
e6f029bdee
customize parallel transfer count
2023-03-07 15:38:26 +01:00
johannesengl
bdbfacb868
metadecoders: Add support for native org dates in frontmatter
...
PR #7433 added support for Org timestamps for the DATE header. This PR widens the support with additional front matter headers LASTMOD, PUBLISHDATE and EXPIRYDATE.
Fixes #8536
2023-03-06 20:37:31 +01:00
hugoreleaser
32ea40aa82
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-05 12:43:18 +00:00
hugoreleaser
4164f8fef9
releaser: Bump versions for release of 0.111.2
...
[ci skip]
2023-03-05 12:32:20 +00:00
Bjørn Erik Pedersen
b83050cb40
Fix .Fragments when called cross sites on uninitialized output format
...
Fixes #10794
2023-03-05 12:51:57 +01:00
Bjørn Erik Pedersen
df5608f8a0
Allow page.TableOfContents on self in shortcode
...
Fixes #10791
2023-03-05 12:51:57 +01:00
Bjørn Erik Pedersen
f56ce01ae1
tpl/partial: Consolidate GoDoc
2023-03-04 22:04:01 +01:00
Bjørn Erik Pedersen
3bbeb5688c
Fix "context canceled" with partial
...
Make sure the context used for timeouts isn't created based on the incoming
context, as we have cases where this can cancel the context prematurely.
Fixes #10789
2023-03-04 21:29:05 +01:00
Oleksandr Redko
184a67ac47
cache: Fix --gc failure on Windows
...
Fixes "Error: failed to prune cache" on Windows and removes
work around from ec1c97e7e9
.
Follows #10781 .
2023-03-04 18:47:43 +01:00
Bjørn Erik Pedersen
6c798eba60
Page context handling in i18n
...
This is a workaround. We need to improve on this, but not today.
Fixes #10782
2023-03-04 17:19:14 +01:00
Bjørn Erik Pedersen
ec1c97e7e9
Work around --gc failure on Windows <= 10
...
This applies two related fixes/improvements:
* The --gc now keeps empty `_resources/_gen/images` etc folders, even if empty. This should have been the behaviour
from the start.
* Also, if removal of an empty dir on Windows fails with the "used by another process" error, just ignore it for now.
Fixes #10781
2023-03-04 13:40:55 +01:00
Bjørn Erik Pedersen
f10009e7f1
Update to Go 1.20.1
...
Fixes #10785
2023-03-04 10:36:59 +01:00
Joe Mooring
a950950f1b
snap: Fix dart-sass-embedded installation
...
Closes #10783
2023-03-04 10:15:03 +01:00
Oleksandr Redko
36ce3a4a9d
Correct typos in Go comments
2023-03-02 16:32:32 +01:00
hugoreleaser
17e60b77e1
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-02 10:19:25 +00:00
hugoreleaser
39a4a3cf67
releaser: Bump versions for release of 0.111.1
...
[ci skip]
2023-03-02 10:08:26 +00:00
Bjørn Erik Pedersen
52f339dada
Merge branch 'release-0.111.0'
2023-03-02 11:05:24 +01:00
Bjørn Erik Pedersen
eef23a7f27
Fix "page" not defined
...
Fixes #10774
2023-03-02 10:39:44 +01:00
hugoreleaser
18cf75805c
releaser: Prepare repository for 0.112.0-DEV
...
[ci skip]
2023-03-01 21:08:27 +00:00
hugoreleaser
3fa8bb8318
releaser: Bump versions for release of 0.111.0
...
[ci skip]
2023-03-01 20:57:44 +00:00
Bjørn Erik Pedersen
db9f74d24d
Revert "build(deps): bump gocloud.dev from 0.24.0 to 0.28.0 ( #10610 )"
...
This reverts commit c3a59a7d5a
.
See #10770
2023-03-01 21:55:47 +01:00
Bjørn Erik Pedersen
60e6fa798f
build: Bump build images
...
To fix changed Shuffle behaviour on Go 1.20.
2023-03-01 21:32:12 +01:00
Bjørn Erik Pedersen
7e51ba03ca
build: Update Linux ARM build image
2023-03-01 18:55:22 +01:00
Joe Mooring
66f94b4945
tpl/tplimpl: Remove the Google News internal template
...
This was deprecated, with a warning message, on 21 Nov 2021.
Reference #9190
2023-03-01 18:11:44 +01:00
Khayyam Saleem
c0d15a2897
strings: fix Truncate behavior for formatted html
...
Before this fix, strings.Truncate would erroneously re-include
attributes from the opening tag in the closing tag when closing
formatted html, due to a bug in how tagnames were extracted from the
regex capture group for html tags used in `truncate.go`. This change
ensures that only the tagname is retained and all attributes are discarded
when storing the tags for closing them later.
Fixes #10399
2023-03-01 17:59:50 +01:00
Bjørn Erik Pedersen
2a61910e82
tpl/strings: Adjust benchmark
2023-03-01 17:59:02 +01:00
Bjørn Erik Pedersen
079d1b6540
tpl/strings: Add BenchmarkTruncate
2023-03-01 17:51:09 +01:00
Bjørn Erik Pedersen
a56b9071db
cods: Regen docs helper
2023-03-01 16:35:23 +01:00
Bjørn Erik Pedersen
5c317c55e7
Move the Related doc counter to prevent a race
...
Closes #10768
2023-03-01 16:28:43 +01:00
Bjørn Erik Pedersen
a669467d98
Misc ioutil deprecation adjustments
...
To make the tests pass.
* Replace io => os.ReadFile in magefile.go
* Adjust failing image test vs fs.DirEntry
* Adjust poller test
See #10732
2023-03-01 16:28:43 +01:00
Oleksandr Redko
d453c12742
Replace deprecated ioutil with io and os
...
https://pkg.go.dev/io/ioutil is deprecated since Go 1.16.
2023-03-01 16:28:43 +01:00
Bjørn Erik Pedersen
336622d5e7
Squashed 'docs/' changes from 36dd5483f..6e32d0591
...
6e32d0591 Update quick-start.md (#1984 )
eddd25ff4 Mermaid: reflect latest docs specifications
b2a23b6f5 Mermaid: switch to ESM import
43d83c131 Update index.md
git-subtree-dir: docs
git-subtree-split: 6e32d05910fb9d623ef26b647def10ea0e00cd15
2023-03-01 11:56:07 +01:00