summaryrefslogtreecommitdiffstats
path: root/commands
AgeCommit message (Collapse)Author
2023-01-31commands: Fix server url rewrites (http status 200)Bjørn Erik Pedersen
Broken by me in Hugo 0.103.0 it seems. A little bit mysterious as it has worked for me after that, but started to fail just recently. Closes #10668
2023-01-16Make hugo.toml the new config.tomlBjørn Erik Pedersen
Both will of course work, but hugo.toml will win if both are set. We should have done this a long time ago, of course, but the reason I'm picking this up now is that my VS Code setup by default picks up some JSON config schema from some random other software which also names its config files config.toml. Fixes #8979
2023-01-04Misc doc, code refactoring to improve documentationBjørn Erik Pedersen
2022-12-22Add HUGO_PUBLISHDIR to the Node environmentBjørn Erik Pedersen
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-21Allow "fast render mode" even if --disableLiveReload is setBjørn Erik Pedersen
Fixes #10561
2022-12-19Add any configured Go Workspace file to the config watcherBjørn Erik Pedersen
Fixes #10556
2022-12-14Also consider wrapped errors when checking for file IsNotExist errorsBjørn Erik Pedersen
Fixes #10534
2022-12-06Make the hugo env non verbose output slightly more verboseBjørn Erik Pedersen
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-11-21commands: Create assets directory with new siteJoe Mooring
Closes #10460
2022-10-26Skip flakey server tests on GitHub Action on WindowsBjørn Erik Pedersen
2022-10-04server: Fix flaky TestServerPathEncodingIssues testsAnthony Fok
Set getNumHomes: 1 to enable 567 ms or 2 s of wait for the server to be ready in TestServerPathEncodingIssues/Unicode_paths and TestServerPathEncodingIssues/Windows_multilingual_404. Fixes #10332
2022-09-29Fix htimes /: operation not permitted error on config changesBjørn Erik Pedersen
Regression introduced in v0.104.1.
2022-09-26Fix /static performance regression from Hugo 0.103.0Bjørn Erik Pedersen
In `v0.103.0` we added support for `resources.PostProcess` for all file types, not just HTML. We had benchmarks that said we were fine in that department, but those did not consider the static file syncing. This fixes that by: * Making sure that the /static syncer always gets its own file system without any checks for the post process token. * For dynamic files (e.g. rendered HTML files) we add an additional check to make sure that we skip binary files (e.g. images) Fixes #10328
2022-09-23server: Fix 404 redirects on WindowsBjørn Erik Pedersen
Fixes #10314
2022-09-22commands: Skip flaky test on CIBjørn Erik Pedersen
2022-09-18server: Fix redirects when file path contains bytes > 0x80Bjørn Erik Pedersen
Fixes #10287
2022-09-14Support PostProcess for all file typesBjørn Erik Pedersen
Not just HTML. Fixes #10269
2022-09-14server: Add 404 supportBjørn Erik Pedersen
2022-09-08Fix usage descriptionsatotake
2022-09-08Add `--force` to `hugo new`satotake
Closes #9243
2022-08-28Add linux/arm64 extended to release setupBjørn Erik Pedersen
Fixes #8257
2022-06-14deps: Udpate to github.com/alecthomas/chroma/v2Bjørn Erik Pedersen
Fixes #9932 Fixes #9931
2022-06-13Respect NO_COLORBjørn Erik Pedersen
Fixes #10004
2022-06-03resources: Register MediaTypes before buildPaul van Brouwershaven
Fixes #9971
2022-05-27commands: Fix case where languages cannot be configuredBjørn Erik Pedersen
There are some commands that needs to complete without a complete configuration.
2022-05-25server: Skip watching dirs in ignoreFilesBjørn Erik Pedersen
Fixes #9838
2022-05-24basefs: add `noBuildLock` flagsatotake
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-21import: Fix importing jekyll sitesatotake
Just use `afero.OsFs` without building site. Close #9817
2022-05-18server: Fix multihost crashBjørn Erik Pedersen
As introduced in v0.99.0. Fixes #9901
2022-05-16server: Refresh the error templateBjørn Erik Pedersen
We cannot cache it forever, as that will not allow the end user to edit and preview it.
2022-05-15server: Fix SIGINT handling after loading bad configurationBjørn Erik Pedersen
Also fix the config error messages. Fixes #9664
2022-05-15Improve SASS errorsBjørn Erik Pedersen
Fixes #9897
2022-05-14errors: Misc improvementsBjørn Erik Pedersen
* 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-14server: Always rebuild the files involved in an errorBjørn Erik Pedersen
Fixes #9884
2022-05-09Revise the use of htime.Since/htime.NowBjørn Erik Pedersen
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-08Use configured timeZone for the clockBjørn Erik Pedersen
And some other related adjustments. Updates #8787
2022-05-08Add `clock` cli flagsatotake
Close #8787
2022-05-06Improve error messages, esp. when the server is runningBjørn Erik Pedersen
* 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-04-18Fix syncing of /static regressionBjørn Erik Pedersen
As introduced in Hugo `v0.76.1`. And add a proper test for it. Fixes #9794 Closes #9788
2022-04-18Revert "Revert "Fix PostProcess regression for hugo server""Bjørn Erik Pedersen
This reverts commit 6c35a1a9eacf2aa86a11ecd31c4022ce330b2f16. Updates #9794
2022-04-17Revert "Fix PostProcess regression for hugo server"Bjørn Erik Pedersen
This reverts commit 4deb5c60661bdb1d686664f0207f45517a086f29.
2022-04-16Fix PostProcess regression for hugo serverBjørn Erik Pedersen
Fixes #9788
2022-04-08Rework the Destination filesystem to make --renderStaticToDisk workBjørn Erik Pedersen
See #9626
2022-04-08Revert "Revert "Some minor adjustments to the new static filesystem logic""Bjørn Erik Pedersen
This reverts commit 5ef8a9f32c25a9b4cc821393c58733e57a7ad234.
2022-04-08Revert "Revert "Allow rendering static files to disk and dynamic to memory ↵Bjørn Erik Pedersen
in server mode"" This reverts commit 64b7b7a89753a39661219b2fcb92d7f185a03f63.
2022-03-25commands: Change link protocol to httpsJoe Mooring
2022-03-21commands: Improve server startup to make tests less flakyBjørn Erik Pedersen
Do this by announcing/listen on the local address before we start the server.
2022-03-17all: gofmt -w -r 'interface{} -> any' .Bjørn Erik Pedersen
Updates #9687
2022-03-14Improve server startup/shutdownBjørn Erik Pedersen
Closes #9671
2022-03-14commands: Improve server testsBjørn Erik Pedersen
Updates #9647