Closed maelle closed 2 years ago
Noting that while the Rmd is not created, a .md is created in the right folder (but not with the right medata).
The problem is in new_content()
where when using the archetype, path2
is e.g. post/2022-02-05-try2
instead of post/2022-02-05-try2/index.md
Rather in what's passed to new_content()
Thanks for the report! I just identified the problem in Hugo: https://github.com/gohugoio/hugo/issues/9157 (it was a regression that affected three versions of Hugo, including 0.89.0, which you were using in your project).
I think your fix #686 is correct (which revealed a blogdown bug), and will merge it soon.
I just identified the problem in Hugo: https://github.com/gohugoio/hugo/issues/9157 (it was a regression that affected three versions of Hugo, including 0.89.0, which you were using in your project).
Interesting!! I didn't even think about why that part didn't work.
I was quite puzzled in the beginning, because in theory the newly created file should be identified from Hugo's message, but Hugo was silent for some reason. Then my buggy plan B failed, too, and you correctly identified that bug.
Minimal website https://github.com/maelle/blogdowntest
If I try to create a .Rmd or .Rmarkdown post with the addin, using the newsletter archetype, I get an error.
Creating an Rmd with the default archetype, or a .md, seems to work.
Checklist
When filing a bug report, please check the boxes below to confirm that you have provided us with the information we need. Have you:
[x] formatted your issue so it is easier for us to read?
[x] used
blogdown::check_site()
function to diagnose your site and corrected potential problems?[x] included a minimal, self-contained, and reproducible example?
[x] pasted the output from
xfun::session_info('blogdown')
in your issue?[x] upgraded all your packages to their latest versions (including your versions of R, the RStudio IDE, and relevant R packages)?
[x] installed and tested your bug with the development version of the blogdown package using
remotes::install_github('rstudio/blogdown')
?