-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Live reload does not work ARTICLE_URL does not end at ".html" #2595
Comments
OK... What would you suggest |
Yeah, I think I’m with @avaris on this one. I suggest either using `{slug}/index.html`, using some other URL setting that includes an extension, or submitting an issue to the LiveReload repo. Otherwise, these kinds of edge cases start to dis-incentivize including ancillary tooling alongside Pelican core — at some point the support burden starts to outweigh the intended benefits.
That said, perhaps this could be addressed by including an advisory warning such that folks are at least aware that extension-less URLs don’t currently function correctly with LiveReload. PRs welcome.
|
@avaris @justinmayer totally agree with you guys. My intention behind this issue was not to make Pelican team fix a bug or lack of feature in an external project, but to save times of other users who may stumble on this bug. Anyone else coming to this issue from Google. Easiest WorkaroundRemove this setting from your configuration or move it to publish configuration ARTICLE_URL = "{slug}" This should work for most users. You local links will end at Use Alternative ToolsI opted to use gulp.js and BrowserSync. You can read about why here. And on how to setup, see these links: Related to Pelican-Elegant/elegant#285 |
pelican-quickstart
.md
filepelicanconf.py
set this optioninvoke livereload
All links to articles will NOT end with a
.html
. For example,But clicking on them gives error.
live-reload server logs show
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
The text was updated successfully, but these errors were encountered: