Closed linogaliana closed 2 years ago
We have this because for format: hugo
, we are using a special template
https://github.com/quarto-dev/quarto-cli/blob/2b4efc1c83ebe7affa1b0acbd21bdc1cf0447c96/src/resources/pandoc/templates/default.markdown?plain=1#L1-L10
which will output title, date and author.
@jjallaire when you added this template in f9ee6765fe22394819bf95c58863496dcecfa3b7, what it suppose to cover format: hugo
? I am not sure title, date and author are desired in a Hugo markdown format.
No, that should not have targeted hugo (or any markdown generation where keep-yaml
is in play). Fixed here: https://github.com/quarto-dev/quarto-cli/commit/29ffff9cd35eb433414e91e12b28e8ad9bf3ed04
Oh I see ! I did not spotted this part with keep-yaml
. Thanks!
Yes this solved the issue, thanks (tested locally)
When using hugo format, I experienced that title and date will be duplicated in output. They will be present two times: once in the YAML but also in the document.
For instance, the example in the document
will lead to the following
.md
when usingquarto render --to hugo
:which does not mix well with
wowchemy/academic
themes (see my personal project https://62726a7214f35700b4efbea7--linogaliana-teaching.netlify.app/rappelsclasses/ : title and date are duplicated)If possible, the best option would be to avoid creating the
section.
quarto version
I used version
0.9.345