osteele / gojekyll

A fast Go implementation of the Jekyll blogging engine
MIT License
332 stars 14 forks source link

Websocket error when navigate to non-root URL #52

Open abhijeetbodas2001 opened 1 year ago

abhijeetbodas2001 commented 1 year ago

Checklist

System information

Liquid version: gojekyll --version develop Commit hash: (if version = develop) 9718b42d9c4d9f3275560699ff2eb7a7f9446371

Expected behavior

Hyperlinks and all URLs work correctly.

Actual behavior and reproducer

Only the index page loads. All other pages (which are linked from the index page) give 404. I get the following error in gojekyll serve console output when I navigate to some other page (for example, clicking on the "articles" hyperlink on the home page).

# I run "gojekyll serve", server is running
Configuration file: /home/apb/code/abhijeetbodas2001.github.io/_config.yml
            Source: /home/apb/code/abhijeetbodas2001.github.io
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.
# I now open my browser, and click on the "articles" hyperlink on the homepage (which goes to the localhost:4000/articles URL)
# I now get a 404 (I have a custom 404 page, which shows up in the browser.
# The following error pops up in console output:
[LiveReload] websocket: close 1001 (going away)
[LiveReload] websocket: close 1001 (going away)

I have my site source at https://github.com/abhijeetbodas2001/abhijeetbodas2001.github.io and am currently trying out gojekyll (have used only the ruby gem earlier). I am running Debian 12 bookworm.

Would appreciate any sort of help on how to fix this. Thanks for all your efforts on this project!