Skip to content

Live reload does not work ARTICLE_URL does not end at ".html" #2595

@talha131

Description

@talha131
  1. Create a default blog using pelican-quickstart
  2. Add a test .md file
  3. In your pelicanconf.py set this option
    ARTICLE_URL = "{slug}"
  4. Run invoke livereload

All links to articles will NOT end with a .html. For example,

http://localhost:8000/contributing-new-features

But clicking on them gives error.

404: Not Found

live-reload server logs show

[I 190719 22:27:29 handlers:135] Browser Connected: http://localhost:8000/
[W 190719 22:27:35 log:200] 404 GET /contributing-new-features (127.0.0.1) 0.62ms
[W 190719 22:28:32 log:200] 404 GET /contributing-new-features (127.0.0.1) 0.58ms

This issue is because, live-reload does not support extension less files. There is a PR for it in 2016 but it has not been accepted.

lepture/python-livereload#131

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions