I think that the Hugo’s configuration directory designed were very powerful, in the document write that will merge two different environment settings when run hugo server
command, but the action result wasn’t I wanted.
Let me show you the coding , such as below:
configuration directory
├── config
│ ├── _default
│ │ ├── config.yaml
│ └── develop
│ └── config.yaml
In the _default/config.yaml
file there were set some parameters which use for comments, such as below:
...
params:
comments:
enable: true
waline:
el: "#wl-container"
pageView: true
# This flag will be replace when deploy to Github pages through Github action.
serverURL: "#{wl-backend-server}"
....
then create develop/config.yaml
file there were set same comment parameters which use for develop in local, such as below:
...
params:
comments:
waline:
serverURL: "https://waline.js.org"
....
So I hoped the develop environment settings which parameter’s name called serverURL
will merged (Override) the default setting, but actually that not. It was still used the default setting, why?
Do you had same problement?