-
ContextNo response Descriptionhi Martin wondering if it would be possible to have mutiple blogs on the same instance... categories, tags etc can all be common... Related linksn/a Use Casesone blog for dev talk VisualsNo response Before submitting
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Yes, this is already possible! You can use two instances of the blog plugin next to each other as long as they are hosted in different directories. Something like the following should work: .
├─ docs/
│ ├─ blog-1/
│ │ ├─ posts/
│ │ └─ index.md
│ └─ blog-2/
│ ├─ posts/
│ └─ index.md
└─ mkdocs.yml Then, in plugins:
- blog:
blog_dir: blog-1
- blog:
blog_dir: blog-2
nav:
- Blog-1:
- blog-1/index.md
- Blog-2:
- blog-2/index.md |
Beta Was this translation helpful? Give feedback.
-
you rock @squidfunk !! thanks ! |
Beta Was this translation helpful? Give feedback.
-
thanks a lot Martin ! |
Beta Was this translation helpful? Give feedback.
Yes, this is already possible! You can use two instances of the blog plugin next to each other as long as they are hosted in different directories. Something like the following should work:
. ├─ docs/ │ ├─ blog-1/ │ │ ├─ posts/ │ │ └─ index.md │ └─ blog-2/ │ ├─ posts/ │ └─ index.md └─ mkdocs.yml
Then, in
mkdocs.yml
: