index.html
file (e.g. the one from the Jekyll tutorial)jekyll serve --livereload
localhost:4000
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Home</title>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
@behrangs-sportsbet There are two things required for --livereload
to work:
<head></head>
markup tag in the main layout or index.html
In your case, the index.html
is missing front matter dashes. So, Jekyll sees index.html
as a static_file
instead of a page
..
Thanks! Adding the front matter made livereload kick in.
Closing this ticket now..
Most helpful comment
@behrangs-sportsbet There are two things required for
--livereload
to work:<head></head>
markup tag in the main layout orindex.html
In your case, the
index.html
is missing front matter dashes. So, Jekyll seesindex.html
as astatic_file
instead of apage
..