Bjørn Erik Pedersen
f3560aa0e1
server: Fix 404 redirects on Windows
...
Fixes #10314
2022-09-23 13:07:56 +02:00
Bjørn Erik Pedersen
08f0984f91
commands: Skip flaky test on CI
2022-09-22 11:24:42 +02:00
Bjørn Erik Pedersen
6be6752c8a
server: Fix redirects when file path contains bytes > 0x80
...
Fixes #10287
2022-09-18 15:16:11 +02: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
Bjørn Erik Pedersen
a5cda5ca4d
server: Add 404 support
2022-09-14 14:25:33 +02:00
satotake
ab5ce59894
Fix usage description
2022-09-08 15:35:11 +02:00
satotake
7d40da876c
Add --force
to hugo new
...
Closes #9243
2022-09-08 15:35:11 +02:00
Bjørn Erik Pedersen
45e1084ff2
Add linux/arm64 extended to release setup
...
Fixes #8257
2022-08-28 18:23:01 +02:00
Bjørn Erik Pedersen
35fa192838
deps: Udpate to github.com/alecthomas/chroma/v2
...
Fixes #9932
Fixes #9931
2022-06-14 14:08:40 +02:00
Bjørn Erik Pedersen
cbc35c48d2
Respect NO_COLOR
...
Fixes #10004
2022-06-13 18:07:37 +02:00
Paul van Brouwershaven
c7d5f9f067
resources: Register MediaTypes before build
...
Fixes #9971
2022-06-03 21:37:50 +02:00
Bjørn Erik Pedersen
653ab2cc1f
commands: Fix case where languages cannot be configured
...
There are some commands that needs to complete without a complete configuration.
2022-05-27 13:34:20 +02:00
Bjørn Erik Pedersen
8ca7052528
server: Skip watching dirs in ignoreFiles
...
Fixes #9838
2022-05-25 18:31:00 +02:00
satotake
6f7fbe03b1
basefs: add noBuildLock
flag
...
If the flag is enabled, `.hugo_build.lock` will not be created.
This ensures safe running on read-only filesystem etc.
Close #9780
2022-05-24 13:57:23 +02:00
satotake
2fc2e9c871
import: Fix importing jekyll site
...
Just use `afero.OsFs` without building site.
Close #9817
2022-05-21 23:44:40 +02:00
Bjørn Erik Pedersen
2f9eac480f
server: Fix multihost crash
...
As introduced in v0.99.0.
Fixes #9901
2022-05-18 11:10:04 +02:00
Bjørn Erik Pedersen
657d1a2d95
server: Refresh the error template
...
We cannot cache it forever, as that will not allow the end user to edit and preview it.
2022-05-16 09:24:30 +02:00
Bjørn Erik Pedersen
87a22eb6d6
server: Fix SIGINT handling after loading bad configuration
...
Also fix the config error messages.
Fixes #9664
2022-05-15 22:58:05 +02:00
Bjørn Erik Pedersen
fc9f315d86
Improve SASS errors
...
Fixes #9897
2022-05-15 20:25:25 +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
4a96df96d9
server: Always rebuild the files involved in an error
...
Fixes #9884
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
Bjørn Erik Pedersen
9b352f04a3
Fix syncing of /static regression
...
As introduced in Hugo `v0.76.1`.
And add a proper test for it.
Fixes #9794
Closes #9788
2022-04-18 19:17:27 +02:00
Bjørn Erik Pedersen
e66e2e9ce5
Revert "Revert "Fix PostProcess regression for hugo server""
...
This reverts commit 6c35a1a9ea
.
Updates #9794
2022-04-18 19:17:27 +02:00
Bjørn Erik Pedersen
6c35a1a9ea
Revert "Fix PostProcess regression for hugo server"
...
This reverts commit 4deb5c6066
.
2022-04-17 10:35:01 +02:00
Bjørn Erik Pedersen
4deb5c6066
Fix PostProcess regression for hugo server
...
Fixes #9788
2022-04-16 18:43:13 +02:00
Bjørn Erik Pedersen
d070bdf10f
Rework the Destination filesystem to make --renderStaticToDisk work
...
See #9626
2022-04-08 13:26:17 +02:00
Bjørn Erik Pedersen
b08193971a
Revert "Revert "Some minor adjustments to the new static filesystem logic""
...
This reverts commit 5ef8a9f32c
.
2022-04-08 13:26:17 +02:00
Bjørn Erik Pedersen
0a56f2af4e
Revert "Revert "Allow rendering static files to disk and dynamic to memory in server mode""
...
This reverts commit 64b7b7a897
.
2022-04-08 13:26:16 +02:00
Joe Mooring
a6fa290f67
commands: Change link protocol to https
2022-03-25 15:29:50 +01:00
Bjørn Erik Pedersen
9539069f5e
commands: Improve server startup to make tests less flaky
...
Do this by announcing/listen on the local address before we start the server.
2022-03-21 09:32:35 +01:00
Bjørn Erik Pedersen
b80853de90
all: gofmt -w -r 'interface{} -> any' .
...
Updates #9687
2022-03-17 22:03:27 +01:00
Bjørn Erik Pedersen
31fbc081c9
Improve server startup/shutdown
...
Closes #9671
2022-03-14 19:38:17 +01:00
Bjørn Erik Pedersen
cebd886ac1
commands: Improve server tests
...
Updates #9647
2022-03-14 09:16:33 +01:00
Bjørn Erik Pedersen
64b7b7a897
Revert "Allow rendering static files to disk and dynamic to memory in server mode"
...
This reverts commit 7d8011ed63
.
Updates #9647
2022-03-11 13:10:47 +01:00
Bjørn Erik Pedersen
5ef8a9f32c
Revert "Some minor adjustments to the new static filesystem logic"
...
This reverts commit 63bb2a5b18
.
2022-03-11 13:10:47 +01:00
Bjørn Erik Pedersen
63bb2a5b18
Some minor adjustments to the new static filesystem logic
...
Closes #9625
2022-03-08 19:27:54 +01:00
SatowTakeshi
7d8011ed63
Allow rendering static files to disk and dynamic to memory in server mode
...
Updates #9625
2022-03-08 19:27:54 +01:00
Marshall Cottrell
06bac57ab0
Add support for CODEOWNERS
...
Fixes #9474
2022-02-23 22:43:19 +01:00
Bjørn Erik Pedersen
aebde49b88
commands: Fix server panic regression
...
And now with a proper server test.
Fixes #9518
Fixes #9530
Fixes #9539
2022-02-21 21:43:26 +01:00
Bjørn Erik Pedersen
f2e7b49acf
Add --printUnusedTemplates
...
Fixes #9502
2022-02-15 20:01:57 +01:00
Bjørn Erik Pedersen
837fdfdf45
commands: Rename --i18n-warnings to printI18nWarnings
...
To get it in line with the others.
2022-02-15 13:03:36 +01:00
Bjørn Erik Pedersen
6819feab6c
commands: Rename --path-warnings, --print-men to --printPathWarnings, --printMemoryUsage
...
To get it in line with the others.
2022-02-15 13:00:06 +01:00
Bjørn Erik Pedersen
a2a660ed12
commands: Fix server deadlock on config error
...
Fixes #9486
2022-02-10 19:43:47 +01:00
Joe Mooring
54f8d8a70a
Remove the "check" command
...
Closes #9454
2022-02-10 16:25:23 +01:00
Joe Mooring
3336762939
Remove hugo gen autocomplete
...
Closes #8862
2022-02-01 23:23:30 +01:00
Bjørn Erik Pedersen
e334a40661
commands: Fix CLI help text for hugo new
...
Updates #9363
2022-01-07 12:36:12 +01:00