Reputation: 3677
I wanted to help with one question, but was recieved my own. Where is a problem?
I tried to repeat some basics from there: https://bookdown.org/yihui/blogdown/a-quick-example.html
all instructions were followed and fulfilled;
hugo was downloaded and installed;
site was launched by blogdown::serve_site()
.
It works! But...
Launching the server via the command:
C:/Users/User/AppData/Roaming/Hugo/0.89.4/hugo.exe server --bind 127.0.0.1 -p 4321 --themesDir themes -t hugo-lithium -D -F --navigateToChanged
Serving the directory . at http://localhost:4321
Launched the hugo server in the background (process ID: 1780). To stop it, call blogdown::stop_server() or restart the R session.
... look, where is a message??? (as you can see there):
Rendering content/post/2020-12-01-r-rmarkdown/index.Rmd... Done.
Ok, I tried to add content to index.Rmd
:
```{r}
summary(Orange)
```
And, after saving, we can see this message:
Again these hellish replacement symbols and (Sys.setenv("LANGUAGE"="EN")
didn't help, but this isn't a story about them).
How to fix this problem with index.Rmd
in blogdown
? Maybe someone faced with it?
Very grateful for the help.
And a little addition.
I deleted and recreated "my website".
This string was displayed...
Rendering content/post/2020-12-01-r-rmarkdown/index.Rmd... Done.
... but error is the same ...
Upvotes: 1
Views: 285
Reputation: 3677
This answer is for the future sufferers and thoughtless persons (as I am):
Guys, we shouldn't touch the "index.Rmd" in the main directory of our site's folder!
Am I right?
Some proposals to Yihui Xie:
Why "the main index.Rmd" can't have an other name, f.e.:
mainIndex;
primaryIndex;
baseIndex;
etc...
... and it will be nice, if you add to this file some info, f.e.
<!-- If you want to add some new info to your site - come to "content - post - bla-bla - index.Rmd" -->
<!-- Please don't try to edit the current file -->
---
site: blogdown:::blogdown_site
---
Or nevertheless someone can add something and save after "index.Rmd"?
Upvotes: 1