liang2kl / mkdocs-blogging-plugin

Add blogging feature to your MkDocs site.
https://liang2kl.github.io/mkdocs-blogging-plugin
MIT License
84 stars 17 forks source link

Need mkdocs.yml sample for blog setup #37

Closed tyeeman closed 1 year ago

tyeeman commented 1 year ago

This part in the setup is a little confusing to me -

In the page you want to insert the blog content, add a line {{ blog_content }} into your desired place:
blog index page

# Blogs

{{ blog_content }}

I created blog/index.md and put the above into it. I also added - Blog: blog/index.md to the nav. When I click that in the nav, I see the index page as part of the blog listing. How do I get rid of it there.

liang2kl commented 1 year ago

Finally, to exclude certain pages from the blog collection, add a meta tag exclude_from_blog in the meta section of the markdown file:

---
exclude_from_blog: true
---

This can be found in the docs.

tyeeman commented 1 year ago

Great, thanks!