My initial menu
for my blogdown site is taken directly from the blogdown book.
[[menu.main]]
name = "Home"
url = "/"
weight = 1
[[menu.main]]
name = "About"
url = "/about/"
weight = 2
[[menu.main]]
name = "GitHub"
url = "https://github.com/rstudio/blogdown"
weight = 3
[[menu.main]]
name = "CV"
url = "/vitae/"
weight = 4
[[menu.main]]
name = "Twitter"
url = "https://twitter.com/rstudio"
weight = 5
The index of my site automatically populates with any posts I add via Addins > New Post
. If I alter my index.Rmd
file in my main project directory (shown below) no changes occur on my front landing 'homepage'.
├── archetypes/
├── content/
├── data/
├── layouts/
├── public/
├── ...
├── config.toml
├── index.Rmd
└── my-website.Rproj
My index.Rmd
file looks like this, although my website won't publish my intended paragraph on my main 'homepage'.
---
site: blogdown:::blogdown_site
---
# Intended first paragraph
Hi. Thank you for visiting my website... more words... etc
To further complicate matters, there is no _index.md
file in my content/
directory. Could this be the issue? I'd like to post some introductory paragraphs before all my posts appear on the main page (homepage) of my blogdown website.
Yes, you need to create _index.md
under content/
. Then the content of _index.md
will be displayed on your homepage.
There was a minor issue with the hugo-lithium
theme, which I just fixed on Github. In the old version, if _index.md
is not empty, the list of posts will not be displayed. Now both the content and the list of posts will be displayed. If that is not what you want, you can certainly revert my change in layouts/_default/list.html
.