aksakalli / jekyll-doc-theme

Jekyll theme for creating project documentation websites
https://aksakalli.github.io/jekyll-doc-theme/
MIT License
290 stars 264 forks source link

maybe add ".html" to /allposts #16

Closed t-h-e closed 5 years ago

t-h-e commented 6 years ago

I use nginx to run this website. I got a 404 error after setting it up and trying to access all blog posts through the link "All posts ..." in the blog, because it links to "https://your-domain.com/allposts" instead of "https://your-domain.com/allposts.html".

To solve this, you either have to add .html to /allposts in _layouts/post.html line 15

Or make nginx rewrite the url, which seems more complicated.

Thanks for providing this theme. I really like it 😃

aksakalli commented 5 years ago

you can have a look at the nginx.con for solving this problem.