Age | Commit message (Collapse) | Author |
|
And add tests for them.
Fixes #4757
|
|
Fixes #4462
|
|
|
|
|
|
And added key-trimming to prevent future mishaps.
See #4607
|
|
Like `--disableKinds` -- this handling was kind of broken when we recently moved this from global vars
See #4607
|
|
And add some more CLI tests.
See #4607
|
|
See #4607
|
|
|
|
We have no global `Hugo` object no more (yay!), and there are some external tools that depends on that value.
These tools need to use get that value from `Response.Result`.
Note that `commands.Execute` now also takes the arguments as a string slice. This should also make it easier to use, not having to modify `os.Args`.
This commit also wraps up this particular issue. Phew!
Test coverage in /commands before: 14.4%
Now: 53.5%
Still work to do, now it is at least possible.
Closes #4598
|
|
See #4598
|
|
It now also accepts the `-s` (source) flag.
See #4598
|
|
The CLI docs output is now identical with the master version.
See #4598
|
|
See #4598
|
|
See #4598
|
|
There are still some cleaning to do, but that felt good.
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
See #4598
|
|
To make it possible to compare the output.
See #4598
|
|
[ci skip]
|
|
[ci skip]
|
|
No practical difference.
|
|
We need to revisit the commands package re globals and tests, but this should fix the init order of flags and languages.
Fixes #4589
|
|
[ci skip]
|
|
[ci skip]
|
|
Fixes #4563
|
|
[ci skip]
|
|
A sample config:
```toml
defaultContentLanguage = "en"
defaultContentLanguageInSubdir = true
[Languages]
[Languages.en]
weight = 10
title = "In English"
languageName = "English"
contentDir = "content/english"
[Languages.nn]
weight = 20
title = "På Norsk"
languageName = "Norsk"
contentDir = "content/norwegian"
```
The value of `contentDir` can be any valid path, even absolute path references. The only restriction is that the content dirs cannot overlap.
The content files will be assigned a language by
1. The placement: `content/norwegian/post/my-post.md` will be read as Norwegian content.
2. The filename: `content/english/post/my-post.nn.md` will be read as Norwegian even if it lives in the English content folder.
The content directories will be merged into a big virtual filesystem with one simple rule: The most specific language file will win.
This means that if both `content/norwegian/post/my-post.md` and `content/english/post/my-post.nn.md` exists, they will be considered duplicates and the version inside `content/norwegian` will win.
Note that translations will be automatically assigned by Hugo by the content file's relative placement, so `content/norwegian/post/my-post.md` will be a translation of `content/english/post/my-post.md`.
If this does not work for you, you can connect the translations together by setting a `translationKey` in the content files' front matter.
Fixes #4523
Fixes #4552
Fixes #4553
|
|
This allows a `config.toml` (or `yaml`, ´yml`, or `json`) in the theme to set:
1) `params` (but cannot override params in project. Will also get its own "namespace", i.e. `{{ .Site.Params.mytheme.my_param }}` will be the same as `{{ .Site.Params.my_param }}` providing that the main project does not define a param with that key.
2) `menu` -- but cannot redefine/add menus in the project. Must create its own menus with its own identifiers.
3) `languages` -- only `params` and `menu`. Same rules as above.
4) **new** `outputFormats`
5) **new** `mediaTypes`
This should help with the "theme portability" issue and people having to copy and paste lots of setting into their projects.
Fixes #4490
|
|
To prepare for config in themes
See #4490
|
|
|
|
Issue introduced some days ago.
Fixes #4516
|
|
[ci skip]
|
|
[ci skip]
|
|
Fixes #4456
|
|
[ci skip]
|
|
That logic fails in multi-host mode when no baseURL is set on top level.
Fixes #4397
|