Well, I managed, that there’s no way to eliminate the /blog/ slug in Grav - if there is, please let me know
I also have problems with the rest. I use the slug: variable in item.md to change the slug the way I want. The .html works fine for me. But if I use numbers in the slug, they don’t show in the URL.
Usually the number is the ID for the post (which is good for search engines). But since there’s no way to use numbers in the slug, blog posts like »10 ways to strenghten your self confidence« wouldn’t work either.
Is there a workaround for that? Didn’t found anything in the documentation.
blog/ is there because the blog posts are subpages of the blog page.
You could add the posts as top-level pages, but then you’d need to rewrite their templates, and the homepage template to list them.
I just tested, the numbers in the slug (e.g. slug: 10-test) work fine.
Well, if the blog page weren’t the home page, blog/would be fine. But so it’s not very logical
I just tested it again… First 10-test.htmlworked, but 1-test.htmldoesn’t (404 error). I cleared the cache several times, now only test.htmlworks, but I get a 404 again on each number I test.
The slug will use the folder name of the page by default. It automatically strips out any numbers in the formation XX. (ie. XX.folder-name). So the resulting slug for a page in 03.folder-name will be /folder-name.
If you wish to have a numeric in the slug, then you should create your folder like this 10-test/ then you put your default.md or post.md in that folder.
This default.md is named to referenced the default.html.twig template file from the theme to render the page. This is not related to the slug!
Yes, of course, but only without the numbers. slug: this-is-the-title.htmlworks perfectly fine
Aliases aren’t an option for me… I start with about 150 blog posts. So I would start with 150 aliases and any other blog post would need another alias.