We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Take this test.Rmd file
test.Rmd
--- links: - icon: images icon_pack: fas name: slides url: - icon: github icon_pack: fab name: code url: --- Content
new_post() will at some point try to modify the YAML header, and this is where we loose the correct YAML format:
new_post()
save_copy <- file.copy("test.Rmd", "test.Rmd.save") xfun::file_string("test.Rmd") #> --- #> links: #> - icon: images #> icon_pack: fas #> name: slides #> url: #> - icon: github #> icon_pack: fab #> name: code #> url: #> --- #> #> Content blogdown:::modify_yaml("test.Rmd") xfun::file_string("test.Rmd") #> --- #> links: #> icon: images #> icon_pack: fas #> name: slides #> url: ~ #> icon: github #> icon_pack: fab #> name: code #> url: ~ #> --- #> #> Content rmarkdown::yaml_front_matter("test.Rmd") #> Error in yaml::yaml.load(..., eval.expr = TRUE): Duplicate map key: 'icon' # restore file.rename("test.Rmd.save", "test.Rmd") #> [1] TRUE
All the - in front of the YAML list item are removed which leads to incorrect YAML.
-
First reported in https://community.rstudio.com/t/having-nested-elements-on-blogdown-hugo-archetypes/127761/2 by @llrs
The text was updated successfully, but these errors were encountered:
38e16a5
Should be fixed now. Please try the dev version:
remotes::install_github('rstudio/blogdown')
Thanks!
The problem was from this line introduced from the PR #118:
blogdown/R/utils.R
Line 803 in be26f3a
Sorry, something went wrong.
Thanks
No branches or pull requests
Take this
test.Rmd
filenew_post()
will at some point try to modify the YAML header, and this is where we loose the correct YAML format:All the
-
in front of the YAML list item are removed which leads to incorrect YAML.First reported in https://community.rstudio.com/t/having-nested-elements-on-blogdown-hugo-archetypes/127761/2 by @llrs
The text was updated successfully, but these errors were encountered: