Oleksandr Redko
6b65b2fae6
common: Remove unused constants
2023-09-24 11:59:49 +02:00
Bjørn Erik Pedersen
ef0e7149d6
Add $image.Process
...
Which supports all the existing actions: resize, crop, fit, fill.
But it also allows plain format conversions:
```
{{ $img = $img.Process "webp" }}
```
Which will be a simple re-encoding of the source image.
Fixes #11483
2023-09-24 11:54:29 +02:00
hugoreleaser
2ae4786ca1
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 11:35:48 +00:00
hugoreleaser
da7983ac4b
releaser: Bump versions for release of 0.118.2
...
[ci skip]
2023-08-31 11:23:51 +00:00
hugoreleaser
7362ba2204
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 09:56:08 +00:00
hugoreleaser
0eb480aa1d
releaser: Bump versions for release of 0.118.1
...
[ci skip]
2023-08-31 09:42:31 +00:00
hugoreleaser
0200eaf58f
releaser: Prepare repository for 0.119.0-DEV
...
[ci skip]
2023-08-31 07:49:58 +00:00
hugoreleaser
28b640a220
releaser: Bump versions for release of 0.118.0
...
[ci skip]
2023-08-31 07:36:55 +00:00
Oleksandr Redko
65871d5cf4
common/loggers: Fix typo in option name
2023-08-23 22:52:37 +02:00
Bjørn Erik Pedersen
7d74cd0cc8
commands: Handle floats without decimals in hugo config
...
Updates #11345
2023-08-08 09:13:17 +02:00
hugoreleaser
239f2e2c99
releaser: Prepare repository for 0.117.0-DEV
...
[ci skip]
2023-08-01 07:36:32 +00:00
hugoreleaser
3e1ea030a5
releaser: Bump versions for release of 0.116.1
...
[ci skip]
2023-08-01 07:24:54 +00:00
hugoreleaser
92c1594372
releaser: Prepare repository for 0.117.0-DEV
...
[ci skip]
2023-07-31 10:40:27 +00:00
hugoreleaser
5a7e0da84e
releaser: Bump versions for release of 0.116.0
...
[ci skip]
2023-07-31 10:28:28 +00:00
Bjørn Erik Pedersen
bec9b80d95
Deprecate taxonomyTerm
...
In favour of 'taxonomy'
Closes #11256
2023-07-28 15:14:24 +02:00
Bjørn Erik Pedersen
4d7af757c9
Add a common regexp cache
...
```
BenchmarkGetOrCompileRegexp-10 73959368 13.71 ns/op 0 B/op 0 allocs/op
BenchmarkCompileRegexp-10 3143529 380.1 ns/op 872 B/op 10 allocs/op
```
2023-07-27 19:23:12 +02:00
hugoreleaser
0dbe0f1a07
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-20 07:02:18 +00:00
hugoreleaser
dc95245212
releaser: Bump versions for release of 0.115.4
...
[ci skip]
2023-07-20 06:49:57 +00:00
Joe Mooring
2f11e673c5
common/htime: Fix localization of abbreviated month names
...
Fixes #11267
2023-07-19 19:00:18 +02:00
Bjørn Erik Pedersen
387c5f60f9
Improve error messages for PostCSS etc.
...
Fixes #9730
2023-07-17 20:42:32 +02:00
hugoreleaser
79f15be5b0
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-13 16:23:50 +00:00
hugoreleaser
5c2e014a51
releaser: Bump versions for release of 0.115.3
...
[ci skip]
2023-07-13 16:11:34 +00:00
hugoreleaser
91b02091a5
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-08 17:19:03 +00:00
hugoreleaser
8966424e0e
releaser: Bump versions for release of 0.115.2
...
[ci skip]
2023-07-08 17:06:56 +00:00
Anthony Fok
bf7ee8a91a
Bump github.com/bep/clock v0.3.0 to renamed github.com/bep/clocks v0.5.0
2023-07-04 09:14:48 +02:00
hugoreleaser
d912491f2d
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-07-03 17:39:56 +00:00
hugoreleaser
857374e693
releaser: Bump versions for release of 0.115.1
...
[ci skip]
2023-07-03 17:28:25 +00:00
hugoreleaser
87886f40d1
releaser: Prepare repository for 0.116.0-DEV
...
[ci skip]
2023-06-29 16:09:06 +00:00
hugoreleaser
67caf50698
releaser: Bump versions for release of 0.115.0
...
[ci skip]
2023-06-29 15:56:39 +00:00
khayyam
b74b8d6478
common/collections: Fix append regression to allow appending nil
...
Closes #11180
2023-06-28 09:41:36 +02:00
hugoreleaser
5e12bf7dc3
releaser: Prepare repository for 0.115.0-DEV
...
[ci skip]
2023-06-19 17:12:27 +00:00
hugoreleaser
9df2ec7988
releaser: Bump versions for release of 0.114.0
...
[ci skip]
2023-06-19 17:01:43 +00:00
Bjørn Erik Pedersen
6dfbd24797
common/loggers: Drop the bold INFO etc. prefixes
...
That looked a little too much.
2023-06-19 17:35:43 +02:00
Bjørn Erik Pedersen
f59c3c0214
loggers: Avoid using Logf for the LevelLoggerToWriter
...
To prevent issues with percentage chars.
2023-06-19 15:56:44 +02:00
Oleksandr Redko
9009c8cdca
all: Fix typos in function names and comments
2023-06-19 09:26:29 +02:00
Bjørn Erik Pedersen
1b85303ac2
common/loggers: Re-add trailing newline in logger.Printf
...
Fixes #11130
2023-06-18 18:56:45 +02:00
Bjørn Erik Pedersen
7c9fada778
Replace the old log setup, with structured logging etc.
...
Fixes #11124
2023-06-18 13:03:04 +02:00
Bjørn Erik Pedersen
f73c567534
common/collections: Always make a copy of the input slice in Append
...
Fixes #10458 .
2023-06-14 20:18:54 +02:00
Bjørn Erik Pedersen
d178fe94fe
tpl/collections: Fix append when appending a slice to a slice of slices
...
Fixes #11093
2023-06-14 20:18:54 +02:00
Bjørn Erik Pedersen
f210188da3
Upgrade to v2 of the Dart Sass Embedded Protocol
...
Fixes #11059
2023-06-12 13:47:38 +02:00
hugoreleaser
73779707a2
releaser: Prepare repository for 0.114.0-DEV
...
[ci skip]
2023-06-05 15:16:33 +00:00
hugoreleaser
085c1b3d61
releaser: Bump versions for release of 0.113.0
...
[ci skip]
2023-06-05 15:04:51 +00:00
hugoreleaser
536bf71abe
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-06-02 07:19:22 +00:00
hugoreleaser
ea3c95a7b0
releaser: Bump versions for release of 0.112.7
...
[ci skip]
2023-06-02 07:07:11 +00:00
hugoreleaser
8c7a4e995b
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-06-01 09:15:08 +00:00
hugoreleaser
2ca0fcc448
releaser: Bump versions for release of 0.112.6
...
[ci skip]
2023-06-01 09:03:29 +00:00
hugoreleaser
d47225ce9e
releaser: Bump versions for release of 0.112.5
...
[ci skip]
2023-05-29 06:43:02 +00:00
hugoreleaser
cd59216de4
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-28 13:15:07 +00:00
hugoreleaser
e285153d7f
releaser: Bump versions for release of 0.112.4
...
[ci skip]
2023-05-28 13:04:00 +00:00
hugoreleaser
3297b395d8
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-24 14:54:43 +00:00
hugoreleaser
ba6f74e404
releaser: Bump versions for release of 0.112.3
...
[ci skip]
2023-05-24 14:42:50 +00:00
hugoreleaser
5adc837904
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-24 10:57:20 +00:00
hugoreleaser
f89108f2b1
releaser: Bump versions for release of 0.112.2
...
[ci skip]
2023-05-24 10:45:31 +00:00
hugoreleaser
99407c39ba
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-23 17:38:44 +00:00
hugoreleaser
7c90c19d28
releaser: Bump versions for release of 0.112.1
...
[ci skip]
2023-05-23 17:26:16 +00:00
hugoreleaser
d666edad71
releaser: Prepare repository for 0.113.0-DEV
...
[ci skip]
2023-05-23 08:25:56 +00:00
hugoreleaser
0a95d6704a
releaser: Bump versions for release of 0.112.0
...
[ci skip]
2023-05-23 08:14:20 +00:00
Bjørn Erik Pedersen
7c7baa6183
Add hugo.WorkingDir
...
Fixes #10969
2023-05-20 17:45:56 +02:00
Oleksandr Redko
610cedaa61
all: Fix comments for exported functions and packages
2023-05-18 21:25:27 +02:00
Bjørn Erik Pedersen
7ce033a89d
Support, but warn, about top level language custom params
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
241b21b0fd
Create a struct with all of Hugo's config options
...
Primary motivation is documentation, but it will also hopefully simplify the code.
Also,
* Lower case the default output format names; this is in line with the custom ones (map keys) and how
it's treated all the places. This avoids doing `stringds.EqualFold` everywhere.
Closes #10896
Closes #10620
2023-05-16 18:01:29 +02:00
Bjørn Erik Pedersen
0988b76a78
Add a counter helper
2023-05-15 09:23:26 +02:00
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
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
Andreas Deininger
d55af2abf0
Run gofmt -s on source files
2023-03-12 10:32:29 +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
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
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
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
ce524d0b5e
Add a page template func
...
Fixes #9339
2023-02-25 19:53:18 +01:00
Bjørn Erik Pedersen
ecf3cd514f
tocss: Simplify the hugo:vars type handling
...
Instead of maintaing a list of all CSS units and functions this commit:
* Uses 3 regexps to detect typed CSS values (e.g. `24px`) + properly handle numeric Go types.
* These regexps may have some false positives -- e.g. strings that needs to be quoted.
* For that rare case, you can mark the string with e.g. `"32xxx" | css.Quoted`
* For the opposite case: `"32" | css.Unquoted`
Updates #10632
2023-02-22 13:26:10 +01:00
Bjørn Erik Pedersen
6abd15e781
Adjust tests for GO 1.20
...
Updates #10691
2023-02-22 11:26:52 +01:00
Bjørn Erik Pedersen
90da7664bf
Add page fragments support to Related
...
The main topic of this commit is that you can now index fragments (content heading identifiers) when calling `.Related`.
You can do this by:
* Configure one or more indices with type `fragments`
* The name of those index configurations maps to an (optional) front matter slice with fragment references. This allows you to link
page<->fragment and page<->page.
* This also will index all the fragments (heading identifiers) of the pages.
It's also possible to use type `fragments` indices in shortcode, e.g.:
```
{{ $related := site.RegularPages.Related .Page }}
```
But, and this is important, you need to include the shortcode using the `{{<` delimiter. Not doing so will create infinite loops and timeouts.
This commit also:
* Adds two new methods to Page: Fragments (can also be used to build ToC) and HeadingsFiltered (this is only used in Related Content with
index type `fragments` and `enableFilter` set to true.
* Consolidates all `.Related*` methods into one, which takes either a `Page` or an options map as its only argument.
* Add `context.Context` to all of the content related Page API. Turns out it wasn't strictly needed for this particular feature, but it will
soon become usefil, e.g. in #9339 .
Closes #10711
Updates #9339
Updates #10725
2023-02-21 17:56:41 +01:00
hugoreleaser
0d1161b263
releaser: Prepare repository for 0.111.0-DEV
...
[ci skip]
2023-01-17 12:28:17 +00:00
hugoreleaser
e32a493b78
releaser: Bump versions for release of 0.110.0
...
[ci skip]
2023-01-17 12:16:09 +00:00
Bjørn Erik Pedersen
e402d91ee1
Misc doc, code refactoring to improve documentation
2023-01-04 18:01:26 +01:00
hugoreleaser
e127d3e5c6
releaser: Prepare repository for 0.110.0-DEV
...
[ci skip]
2022-12-23 10:50:52 +00:00
hugoreleaser
47b12b83e6
releaser: Bump versions for release of 0.109.0
...
[ci skip]
2022-12-23 10:38:11 +00:00
Bjørn Erik Pedersen
59af05cabc
Add HUGO_PUBLISHDIR to the Node environment
...
So you can do `process.env.HUGO_PUBLISHDIR` in your `postcss.config.js` to figure out where Hugo publishes
its files.
Note that the value will always be an absolute file path and will point to a directory on disk even when running `hugo server` in memory mode.
If you write to this folder from PostCSS when running the server, you could run the server with one of these flags:
```
hugo server --renderToDisk
hugo server --renderStaticToDisk
```
Fixes #10554
2022-12-22 12:43:50 +01:00
Bjørn Erik Pedersen
ad2059878a
Also consider wrapped errors when checking for file IsNotExist errors
...
Fixes #10534
2022-12-14 13:51:06 +01:00
hugoreleaser
cc574ef120
releaser: Prepare repository for 0.109.0-DEV
...
[ci skip]
2022-12-06 13:50:51 +00:00
hugoreleaser
a0d64a46e3
releaser: Bump versions for release of 0.108.0
...
[ci skip]
2022-12-06 13:37:56 +00:00
Bjørn Erik Pedersen
f97544a830
Make the hugo env non verbose output slightly more verbose
...
This is how it may look like with a extended build:
```
hugo v0.107.0-6445b1e9ff963b07c55d9d69cb9abef8ef21fc5d+extended darwin/arm64 BuildDate=2022-12-06T11:21:50Z
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.19.3"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
github.com/sass/dart-sass-embedded/protocol="1.1.0"
github.com/sass/dart-sass-embedded/compiler="1.56.1"
github.com/sass/dart-sass-embedded/implementation="1.56.1"
```
2022-12-06 13:37:08 +01:00
Bjørn Erik Pedersen
d8efe085ca
Add dart-sass-embedded version info to hugo env -v
...
```
~ ❯❯❯ hugo env -v | grep dart
github.com/bep/godartsass="v0.16.0"
github.com/sass/dart-sass-embedded/compiler="1.56.1"
github.com/sass/dart-sass-embedded/implementation="1.56.1"
github.com/sass/dart-sass-embedded/protocol="1.1.0"
```
2022-12-06 13:37:08 +01:00
Bjørn Erik Pedersen
5067775a6f
common/hugio: Fix multiWriteCloser.Close
...
Fixes #10505
2022-12-06 10:32:33 +01:00
hugoreleaser
2221b5b30a
releaser: Bump versions for release of 0.107.0
...
[ci skip]
2022-11-24 13:59:45 +00:00
hugoreleaser
df85cb9ae2
releaser: Prepare repository for 0.107.0-DEV
...
[ci skip]
2022-11-17 18:46:38 +00:00
hugoreleaser
e08ce30fe4
releaser: Bump versions for release of 0.106.0
...
[ci skip]
2022-11-17 18:33:40 +00:00
Bjørn Erik Pedersen
e00220a06a
deps: Update the libweb version string
2022-11-15 18:21:08 +01:00
hugoreleaser
77fc74a5b2
releaser: Prepare repository for 0.106.0-DEV
...
[ci skip]
2022-10-28 12:41:15 +00:00
hugoreleaser
0e3b42b4a9
releaser: Bump versions for release of 0.105.0
...
[ci skip]
2022-10-28 12:29:05 +00:00
JB
01ebb6e304
Don't use self-closing generator tag
2022-10-14 12:16:53 +02:00
hugoreleaser
2734f956c3
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-10-04 14:39:43 +00:00
hugoreleaser
58b8245813
releaser: Bump versions for release of 0.104.3
...
[ci skip]
2022-10-04 14:25:23 +00:00
hugoreleaser
ec02c537ed
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-29 10:47:15 +00:00
hugoreleaser
84cbe72498
releaser: Bump versions for release of 0.104.2
...
[ci skip]
2022-09-29 10:31:09 +00:00
hugoreleaser
51010a69bc
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-26 17:17:27 +00:00
hugoreleaser
8958b8741f
releaser: Bump versions for release of 0.104.1
...
[ci skip]
2022-09-26 17:05:45 +00:00
hugoreleaser
d8aba18e05
releaser: Prepare repository for 0.105.0-DEV
...
[ci skip]
2022-09-23 14:44:31 +00:00
hugoreleaser
c744dbd6ed
releaser: Bump versions for release of 0.104.0
...
[ci skip]
2022-09-23 14:32:56 +00:00
hugoreleaser
c46d104985
releaser: Prepare repository for 0.104.0-DEV
...
[ci skip]
2022-09-18 13:31:21 +00:00
hugoreleaser
b665f1e8f1
releaser: Bump versions for release of 0.103.1
...
[ci skip]
2022-09-18 13:19:01 +00:00
hugoreleaser
00b71668b2
releaser: Prepare repository for 0.104.0-DEV
...
[ci skip]
2022-09-15 16:35:38 +00:00
hugoreleaser
beebf2afb0
releaser: Bump versions for release of 0.103.0
...
[ci skip]
2022-09-15 16:23:56 +00:00
Bjørn Erik Pedersen
74daca6b30
Support PostProcess for all file types
...
Not just HTML.
Fixes #10269
2022-09-14 19:09:20 +02:00
hugoreleaser
bef31b58aa
releaser: Prepare repository for 0.103.0-DEV
...
[ci skip]
2022-09-01 10:34:57 +00:00
hugoreleaser
b76146b129
releaser: Bump versions for release of 0.102.3
...
[ci skip]
2022-09-01 10:16:19 +00:00
hugoreleaser
9eb9b70a29
releaser: Prepare repository for 0.103.0-DEV
...
[ci skip]
2022-08-28 16:41:06 +00:00
hugoreleaser
0ff4a9326f
releaser: Bump versions for release of 0.102.0
...
[ci skip]
2022-08-28 16:29:34 +00:00
Bjørn Erik Pedersen
f5ba6fd45c
common/hugio: One more fix for non-OS fs
...
Note that these are only used with OS fs, so no practical bugs, but still-
2022-08-13 19:22:45 +02:00
Bjørn Erik Pedersen
c4bbc1eeeb
common/hugio: Fix CopyDir when fs is not OS
2022-08-13 18:26:16 +02:00
Anthony Fok
8ebcaa5394
Accept vendor-specified build date if .git/ is unavailable
...
Fixes #10053
2022-06-28 20:51:18 +02:00
hugoreleaser
15463f835b
releaser: Prepare repository for 0.102.0-DEV
...
[ci skip]
2022-06-16 07:51:58 +00:00
hugoreleaser
466fa43c16
releaser: Bump versions for release of 0.101.0
...
[ci skip]
2022-06-16 07:09:16 +00:00
Khayyam Saleem
09ac733381
common: Add hugo.GoVersion
...
Closes #9849 . This enables `hugo.GoVersion` in templates to access the
version of Go that the Hugo binary was built with.
2022-06-14 09:48:45 +02:00
Bjørn Erik Pedersen
cbc35c48d2
Respect NO_COLOR
...
Fixes #10004
2022-06-13 18:07:37 +02:00
hugoreleaser
4276075c78
releaser: Prepare repository for 0.101.0-DEV
...
[ci skip]
2022-06-08 11:07:37 +00:00
hugoreleaser
d25cb2943f
releaser: Bump versions for release of 0.100.2
...
[ci skip]
2022-06-08 10:25:57 +00:00
Bjørn Erik Pedersen
0566bbf7c7
Fix raw TOML dates in where/eq
...
Note that this has only been a problem with "raw dates" in TOML files in /data and similar. The predefined front matter
dates `.Date` etc. are converted to a Go Time and has worked fine even after upgrading to v2 of the go-toml lib.
Fixes #9979
2022-06-07 13:02:58 +02:00
hugoreleaser
bfebd8c02c
releaser: Prepare repository for 0.101.0-DEV
...
[ci skip]
2022-06-01 10:54:16 +00:00
hugoreleaser
0afb4866e3
releaser: Bump versions for release of 0.100.1
...
[ci skip]
2022-06-01 10:11:48 +00:00
hugoreleaser
4daac654d9
releaser: Prepare repository for 0.101.0-DEV
...
[ci skip]
2022-05-31 09:19:15 +00:00
hugoreleaser
27b077544d
releaser: Bump versions for release of 0.100.0
...
[ci skip]
2022-05-31 08:37:12 +00:00
Bjørn Erik Pedersen
9e904d756b
Make .RenderString render shortcodes
...
Fixes #6703
2022-05-30 11:32:55 +02:00
Bjørn Erik Pedersen
d2cfaede5b
Improve shortcode indentation handling
...
* Record the leading whitespace (tabs, spaces) before the shortcode when parsing the page.
* Apply that indentation to the rendered result of shortcodes without inner content (where the user will apply indentation).
Fixes #9946
2022-05-30 11:32:55 +02:00
hugoreleaser
e164834f0a
releaser: Prepare repository for 0.100.0-DEV
...
[ci skip]
2022-05-18 12:01:09 +00:00
hugoreleaser
d524067382
releaser: Bump versions for release of 0.99.1
...
[ci skip]
2022-05-18 11:18:14 +00:00
hugoreleaser
7bc3401eb5
common/hugo: Fix version logic
...
[ci skip]
2022-05-16 13:01:52 +02:00
hugoreleaser
1de333e7a3
releaser: Bump versions for release of 0.99.0
...
[ci skip]
2022-05-16 08:10:56 +00:00
Bjørn Erik Pedersen
fc9f315d86
Improve SASS errors
...
Fixes #9897
2022-05-15 20:25:25 +02:00
Bjørn Erik Pedersen
4b189d8fd9
postcss: Fix import error handling
...
Note that we will now fail if `inlineImports` is enabled and we cannot resolve an import.
You can work around this by either:
* Use url imports or imports with media queries.
* Set `skipInlineImportsNotFound=true` in the options
Also get the argument order in the different NewFileError* funcs in line.
Fixes #9895
2022-05-15 20:25:25 +02:00
Bjørn Erik Pedersen
48ea24f89a
common/herrors: Remove unused struct
2022-05-14 13:56:28 +02:00
Bjørn Erik Pedersen
5c96bda70a
errors: Misc improvements
...
* Redo the server error template
* Always add the content file context if relevant
* Remove some now superflous error string matching
* Move the server error template to _server/error.html
* Add file context (with position) to codeblock render blocks
* Improve JS build errors
Fixes #9892
Fixes #9891
Fixes #9893
2022-05-14 13:40:56 +02:00
Bjørn Erik Pedersen
51f08b0b6a
Revise the use of htime.Since/htime.Now
...
We cannot (also, it doesn't add any value) use that when the `clock` is set,
* To measure time (before that global is set)
* To compare file timestamps re cache eviction
Fixes #9868
2022-05-09 14:18:40 +02:00
Bjørn Erik Pedersen
35c88a7f90
Use configured timeZone for the clock
...
And some other related adjustments.
Updates #8787
2022-05-08 16:56:26 +02:00
satotake
e77ca3c105
Add clock
cli flag
...
Close #8787
2022-05-08 16:56:26 +02:00
Bjørn Erik Pedersen
f2946da9e8
Improve error messages, esp. when the server is running
...
* Add file context to minifier errors when publishing
* Misc fixes (see issues)
* Allow custom server error template in layouts/server/error.html
To get to this, this commit also cleans up and simplifies the code surrounding errors and files. This also removes the usage of `github.com/pkg/errors`, mostly because of https://github.com/pkg/errors/issues/223 -- but also because most of this is now built-in to Go.
Fixes #9852
Fixes #9857
Fixes #9863
2022-05-06 19:43:22 +02:00
hugoreleaser
89c1655ec8
releaser: Prepare repository for 0.99.0-DEV
...
[ci skip]
2022-04-28 11:02:45 +00:00
hugoreleaser
165d299cde
releaser: Bump versions for release of 0.98.0
...
[ci skip]
2022-04-28 10:23:30 +00:00
hugoreleaser
41cc4e4ba3
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-18 18:01:38 +00:00
hugoreleaser
078053a43d
releaser: Bump versions for release of 0.97.3
...
[ci skip]
2022-04-18 17:22:19 +00:00
hugoreleaser
5de6f8a02c
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-17 09:16:40 +00:00
hugoreleaser
5099abe600
releaser: Bump versions for release of 0.97.2
...
[ci skip]
2022-04-17 08:39:27 +00:00
hugoreleaser
363bc907c0
releaser: Prepare repository for 0.98.0-DEV
...
[ci skip]
2022-04-16 17:35:04 +00:00