-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hugo server does not parse config/_default/outputs.toml in First Run #7434
Comments
Both workaround are not working for me. This is my config: This markup is not working in my project: New Workaround finally, put this shortcode at the end of every md file In my project, only pages that don't use any shortcode (with amp version) present this problem (thats was the way I realized the problem) |
There are lot more configurations based on the specification. Mine is:
Filepath: https://gitlab.com/zoralab/bissetii/-/blob/next/.sites/config/_default/outputs.toml You need be very careful with amp shortcode because it was the shortcode that I picked up this consistent bug (amp.html version did not render until I save the |
Also, I do not recall any seeker with search I'm looking at https://gohugo.io/templates/output-formats/. |
Please test again with 0.74. I suspect this was resolved with #7455. |
Hello, I have recently tested with version 0.74 and the problem persists. |
@jmooring. same as @jmsalazar84 . Here's my test result: Test results with Direct run with
|
Updated on latest test with Issue is still persist. I still need to explicitly save New findings: it is affecting build command. Currently, building with |
Updated on latest test with Issue is still persisting. |
Close this issue as duplicate of #7160. Proceed to track issue over there. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Tested versions:
v0.73
Hugo Static Site Generator v0.74.1-15163266/extended linux/amd64 BuildDate: 2020-07-13T19:02:45Z
Hugo Static Site Generator v0.74.3-DA0437B4/extended linux/amd64 BuildDate: 2020-07-23T16:30:30Z
Hugo Static Site Generator v0.75.0-FEF924BA linux/amd64 BuildDate: 2020-09-14T09:20:23Z
Issue
Hugo server does not parse
config/_default/outputs.toml
when first run. Thatoutputs.toml
contains the multiple outputs definitions (e.g.HTML
,AMP
, etc.).Workaround
There are
2"1" workaround:outputs.toml
one time to let hugo server picks up the settings upon self-reload.Migrate the settings back to(EDIT: same outcome. Only first workaround works.)config/_default/configs.toml
.When Does This Issue Found
During theme module AMP integrations. The shortcode with AMP rendering (
.amp.html
) does not pick up and render<img>
tag instead of<amp-img>
.The text was updated successfully, but these errors were encountered: