ronv / sidey

Sidey is a simple and minimalistic jekyll blogging theme.
https://sidey-jekyll.netlify.app
MIT License
561 stars 201 forks source link

Posts not linking with file extension. #14

Closed AlefNaught closed 4 years ago

AlefNaught commented 4 years ago

Hi forgive me because I'm kind of a noob.

When I use the local development server I can access my posts like this. /2020/06/29/blogpostname

But on the live server it tries link to that same post and 404's. I can still access the post but I have to add .html to it like this. /2020/06/29/blogpostname.html

Any idea how I fix this?

ronv commented 4 years ago

Hi,

Check your config file, looks like something with permalinks or baseurl. Maybe this can help you: https://jekyllrb.com/docs/troubleshooting/#base-url-problems or https://jekyllrb.com/docs/permalinks/

Hope this helps 😉

Best, R

RoskiDeluge commented 4 years ago

Just for future reference and to help any other folks like me that got stuck here.

I had to disable/comment out "permalink: pretty" in _config.yml

I also made these changes in _config.yml:

collections: pages: output: true

permalink: /:name

posts: output: true permalink: /:categories/:year/:month/:day/:title:output_ext

permalink: /:year/:month/:day/:slug

Finally, I had to add permalinks to the front matter of about.md and search.md: permalink: /about/ permalink: /search/

Then deployed to vercel and everything is linking properly.

This was just my work around, since I just needed it to work quickly. Thanks for an awesome theme @ronv !