Hi,
The latest version of the hugo academic theme changed the default location of the config.toml
file from the root directory to config/_default/config.toml
which breaks the blogdown:::new_post_addin()
. You can see that with this version of the CDSB community website source files https://github.com/ComunidadBioInfo/cdsbsource/tree/1f869d72c7d06d8274b1716a34b0249b15e41f5f.
Initially I wanted to test if the new post addin would work in this multi-lingual site. Anyhow, I'm posting the issue here in case anyone has a solution before posting it on the blogdown repo. Maybe this could be solved by making a soft link on the root directory to the config/_default/config.toml
file instead of having to change the blogdown code.
Best,
Leo
> blogdown:::new_post_addin()
Error in blogdown:::site_root() :
Could not find config.toml / config.yaml under
/Users/lcollado/Dropbox/Code/cdsbsource
/Users/lcollado/Dropbox/Code
/Users/lcollado/Dropbox
/Users/lcollado
/Users
/
> options(width = 120)
> sessioninfo::session_info()
─ Session info ───────────────────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.5.2 Patched (2019-02-17 r76113)
os macOS Mojave 10.14.4
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz America/New_York
date 2019-04-05
─ Packages ───────────────────────────────────────────────────────────────────────────────────────────────────────────
package * version date lib source
assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.5.2)
blogdown 0.11.1 2019-04-05 [1] Github (rstudio/blogdown@5179caf)
bookdown 0.9 2018-12-21 [1] CRAN (R 3.5.0)
cli 1.1.0 2019-03-19 [1] CRAN (R 3.5.2)
colorout * 1.2-0 2019-02-18 [1] Github (jalvesaq/colorout@cc5fbfa)
crayon 1.3.4 2017-09-16 [1] CRAN (R 3.5.0)
knitr 1.22 2019-03-08 [1] CRAN (R 3.5.2)
packrat 0.5.0 2018-11-14 [1] CRAN (R 3.5.0)
rstudioapi 0.10 2019-03-19 [1] CRAN (R 3.5.2)
sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.5.0)
withr 2.1.2 2018-03-15 [1] CRAN (R 3.5.0)
xfun 0.6 2019-04-02 [1] CRAN (R 3.5.2)
[1] /Library/Frameworks/R.framework/Versions/3.5/Resources/library
>
$ hugo version
Hugo Static Site Generator v0.54.0/extended darwin/amd64 BuildDate: unknown
$ git --git-dir=themes/academic/.git log | head -1
commit 6778929449aed94edc1eaf642c0c44ac89fff819