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
Bjørn Erik Pedersen
51d0a0ab01
commands: Add the common build flags to the config commands
...
Which allows to see the config with `--theme` applied.
Updates #11018
2023-05-28 13:06:26 +02:00
Bjørn Erik Pedersen
43f1282e73
commands: Reinstate some of the removed build flags (e.g. --theme) to new and mod
...
Fixes #11018
2023-05-28 12:55:44 +02:00
Bjørn Erik Pedersen
273d9f69a6
commands: Fail the build when no config file or config dir
...
Fixes #11019
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
8f293a1855
Fix --renderStaticToDisk regression
...
Fixes #11026
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
901cd970db
commands: Re-introduce the -f shorthand for hugo new site
...
Fixes #11015
2023-05-27 16:56:54 +02:00
Bjørn Erik Pedersen
f86b5f70a6
commands: Move the --format flag to only the commands that support it
...
Fixes #11022
2023-05-27 16:56:54 +02: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
Bjørn Erik Pedersen
231374a1fa
Fix regression when loading config -e is empty or HUGO_ENV or HUGO_ENVIRONMENT is set
...
Fixes #11013
2023-05-24 16:39:31 +02: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
Bjørn Erik Pedersen
9a235d0afc
Fix regression with site.IsServer when not running a server
...
Fixes #11006
2023-05-24 12:42:56 +02: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
0a95d6704a
releaser: Bump versions for release of 0.112.0
...
[ci skip]
2023-05-23 08:14:20 +00:00
Bjørn Erik Pedersen
85b13c105a
Add --format to hugo config
...
Now default to TOML.
2023-05-22 20:26:02 +02:00
Bjørn Erik Pedersen
943ff7f7ce
commands: Add missing gen docshelper command
...
Updates #10953
2023-05-22 18:54:34 +02:00
Bjørn Erik Pedersen
2c3d4dfb74
Add cache busting config to support Tailwind 3
...
Fixes #10974
2023-05-22 14:14:35 +02:00
Bjørn Erik Pedersen
6ca8a40f25
commands: Make all list commands list what 'all' did before
...
Also, always include the CSV header.
Updates #10953
2023-05-22 12:27:19 +02:00
Bjørn Erik Pedersen
e6dc8053bf
commands: Fix build logic when listing expired/future draft content
...
Fixes #10972
2023-05-21 10:16:25 +02:00
Bjørn Erik Pedersen
7c7baa6183
Add hugo.WorkingDir
...
Fixes #10969
2023-05-20 17:45:56 +02:00
Bjørn Erik Pedersen
0a51dfac9e
commands: Fix data race
...
By wrapping all use of the shared config in a lock.
Updates #10953
2023-05-19 16:34:22 +02:00
Bjørn Erik Pedersen
d6197a41fa
Re-add --printUnusedTemplates and --printPathWarnings
...
And now with tests.
Updates #10953
2023-05-19 11:37:05 +02:00
Benjamin Elder
008170c8a9
Make GOMAXPROCS to be CPU limit aware
...
Fixes #10950
2023-05-18 19:32:49 +02:00
Bjørn Erik Pedersen
3f00f47535
commands: Load config before creating the filesystem
...
To allow publishDir to be set in config file.
2023-05-18 15:38:25 +02:00
Bjørn Erik Pedersen
834b3d7e41
Fix some recently introduced error handling issues
...
Updates #10953
2023-05-18 12:47:23 +02:00
Bjørn Erik Pedersen
8a69ccbb00
commands: Improve the common build flag handling
...
Updates #10947
2023-05-17 22:13:29 +02:00
Bjørn Erik Pedersen
5251f015bf
Re-establish all the server flags
...
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
0fbab7cbc5
commands: Fix data race in test
...
Note that this is a test fix only.
2023-03-14 12:18:42 +01:00
Oleksandr Redko
0f01bd4637
server: Replace golang.org/x/net/context with context
2023-03-08 10:19:25 +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
Oleksandr Redko
36ce3a4a9d
Correct typos in Go comments
2023-03-02 16:32:32 +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
ce524d0b5e
Add a page template func
...
Fixes #9339
2023-02-25 19:53:18 +01:00
Bjørn Erik Pedersen
1477d0ba90
commands: Fix server url rewrites (http status 200)
...
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-31 12:42:31 +01:00
Bjørn Erik Pedersen
f38a2fbd2e
Make hugo.toml the new config.toml
...
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-16 15:34:16 +01:00
Bjørn Erik Pedersen
e402d91ee1
Misc doc, code refactoring to improve documentation
2023-01-04 18:01:26 +01: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
d20d2651ea
Allow "fast render mode" even if --disableLiveReload is set
...
Fixes #10561
2022-12-21 11:02:21 +01:00
Bjørn Erik Pedersen
6db527483d
Add any configured Go Workspace file to the config watcher
...
Fixes #10556
2022-12-19 20:17:33 +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
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
Joe Mooring
85e2ac1a44
commands: Create assets directory with new site
...
Closes #10460
2022-11-21 09:42:40 +01:00
Bjørn Erik Pedersen
20ef6dcf95
Skip flakey server tests on GitHub Action on Windows
2022-10-26 09:29:55 +02:00
Anthony Fok
0addb302ac
server: Fix flaky TestServerPathEncodingIssues tests
...
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-10-04 14:48:29 +02:00
Bjørn Erik Pedersen
4611b6920b
Fix htimes /: operation not permitted error on config changes
...
Regression introduced in v0.104.1.
2022-09-29 12:27:25 +02:00