mkusz / mkdocs-publisher

Publisher for MkDocs - a set of plugins for content creators
https://mkusz.github.io/mkdocs-publisher/
MIT License
44 stars 1 forks source link

Renaming the "Blog" slug? #79

Open mkusz opened 1 month ago

mkusz commented 1 month ago

Discussed in https://github.com/mkusz/mkdocs-publisher/discussions/78

Originally posted by **jdoescyber** June 8, 2024 Hi there! First and foremost, I want to thank you for your work on this project. It fits my needs almost perfectly, and I'm very excited to start publishing publicly soon. If you have any way for us to support you (e.g. Ko-Fi or similar), I'd love to do so. One minor hiccup I'm noticing: it seems that my blog has an odd slug to it: ![image](https://github.com/mkusz/mkdocs-publisher/assets/24984165/57485d70-2a9d-4d95-8710-2b56bb9c1d48) - Expected: `http://127.0.0.1:8000/blog` - Actual: `http://127.0.0.1:8000/index-0/` I have the blog dir configured in my `mkdocs.yml` as shown below. If I try to name the file `index.md`, I get an odd error about the index being out of range, so I've settled on `README.md`: ![image](https://github.com/mkusz/mkdocs-publisher/assets/24984165/13ca6d72-be9e-435e-924d-ec0973939490) My `README.md` at `99_blog\README.md` looks like this: ``` --- title: Blog slug: blog date: 2024-06-06 21:14:12 update: 2024-06-06 23:27:17 --- ``` This seems to be the case with the official docs website, too: ![image](https://github.com/mkusz/mkdocs-publisher/assets/24984165/3d6e7bba-58b1-4834-8016-e72ec86225c6) Also noteworthy that posts have the right URL slug: ![image](https://github.com/mkusz/mkdocs-publisher/assets/24984165/00c7163a-9737-4718-a36d-66ba3f6178c9) My question is, can we customize that `index-0` slug somehow? Many thanks!!! I appreciate your project a ton. Have a great day!