Erica Mays
258884f44f
cache: Set default cache path based on $USER
...
Change the default cache directory to `$TMPDIR/hugo_cache_$USER`, so
that multi-user systems do not have caches that interfere with each
other. The other cache-choosing logic (e.g. Netlify exceptions,
configuration options) are not affected.
Fixes #7391
2023-06-12 21:33:35 +02:00
Oleksandr Redko
b8526f32fa
commands,config: Fix typo in log and error messages
2023-06-12 16:45:20 +02:00
hugoreleaser
085c1b3d61
releaser: Bump versions for release of 0.113.0
...
[ci skip]
2023-06-05 15:04:51 +00:00
Bjørn Erik Pedersen
5446900dee
commands: Update CLI docs vs server and production
...
Fixes #11067
2023-06-05 11:53:14 +02:00
Bjørn Erik Pedersen
cf38c73f53
commands: Add TLS/HTTPS support to hugo server
...
* commands: Add TLS/HTTPS support to hugo server
The "auto cert" handling in this PR is backed by mkcert (see link below).
To get this up and running on a new PC, you can:
```
hugo server trust
hugo server --tlsAuto
```
When `--tlsAuto` (or `--tlsCertFile` and `--tlsKeyFile`) is set and no `--baseURL` is provided as a flag, the server is
started with TLS and `https` as the protocol.
Note that you only need to run `hugo server trust` once per PC.
If you already have the key and the cert file (e.g. by using mkcert directly), you can do:
```
hugo server --tlsCertFile mycert.pem --tlsKeyFile mykey.pem
```
See https://github.com/FiloSottile/mkcert
Fixes #11064
2023-06-05 09:53:53 +02: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
Oleksandr Redko
4c46f9400b
all: Replace deprecated ioutil with io and os
2023-06-01 17:52:21 +02: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
Bjørn Erik Pedersen
0ef2952846
commands: Add --lang to hugo config
...
Fixes #11057
2023-06-01 10:49:21 +02: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
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