awood / hawkins Goto Github PK
View Code? Open in Web Editor NEWA Jekyll plugin that incorporates LiveReload
License: MIT License
A Jekyll plugin that incorporates LiveReload
License: MIT License
Hey there,
could you provide an update for Jekyll 4.0.0?
-Nico
Will this work with static sites served by GitHub pages?
I'm seeing an issue where it does not live reload, on CSS changes (SCSS specifically) while passing --incremental
to jekyll liveserve
. Is this the expected behaviour?
Hi,
I'm trying to setup a container image that serves my Jekyll sites for my development environment. Because of this, is use host: 0.0.0.0
in my _config.yml file. This allows my container to serve the site from all interfaces.
However, this causes Hawkins to serve the Livereload script from http://0.0.0.0:35729/livereload.js
which is a non-routable address and doesn't work on some browsers (e.g. Chrome on Windows).
Is there any workaround to make the plugin override the host value when rendering the script tag and use something like http://localhost:35729/livereload.js
? Or use a relative URL, like /livereload.js
?
Thanks!
Just run jekyll liveserve
, and then visit localhost:4000, click refresh page 3 times, then server crashed, this is the whole logs:
Configuration file: /home/fangxing/fffx/_config.yml
Source: /home/fangxing/fffx
Destination: /home/fangxing/fffx/_site
Incremental build: enabled
Generating...
done in 0.42 seconds.
Auto-regeneration: enabled for '/home/fangxing/fffx'
Configuration file: /home/fangxing/fffx/_config.yml
Server address: http://0.0.0.0:4000/
LiveReload Server: 0.0.0.0:35729
Server running... press ctrl-c to stop.
LiveReload: Browser connected
jekyll 3.6.2 | Error: Could not parse data entirely (0 != 251)
If this didn't happens to you, try keep click refresh , it should happened.
Update: This issue should belong to http-parser httprb/http#22
On windows, at least, the post command doesn't accept the -e
or --editor
options, however, or at least I can't get it to work.
jekyll 3.1.3 | Error: Whoops, we can't understand your command.
jekyll 3.1.3 | Error: invalid option: -e
jekyll 3.1.3 | Error: Run your command again with the --help switch to see available options.
--help isn't very...helpful.
From https://talk.jekyllrb.com/t/a-tool-for-automatic-browser-refreshes/2150#post_3
When I use the strategy of a main.scss file that imports scss partials I get an unstyled page. I believe it is because LiveReload is only watching the main.scss
and only reloads that main.scss file and not the main.css? But I have to manually refresh the page each time the site is re-generated. I created a demo repo to illustrate the issue. Any ideas on how to fix this?
I ran jekyll liveserve --verbose
and the output is below.
Rendering: index.html
Pre-Render Hooks: index.html
Rendering Liquid: index.html
Rendering Markup: index.html
Rendering Layout: index.html
Rendering: assets/css/styles.scss
Pre-Render Hooks: assets/css/styles.scss
Rendering Liquid: assets/css/styles.scss
Rendering Markup: assets/css/styles.scss
LiveReload: Ignoring []
LiveReload: Reloading index.html
LiveReload: Reloading assets/css/styles.scss
Here is a repo that demos the issue. https://github.com/NickStees/jekyll-live-reload-bootstrap-scss
Github-pages is still using Jekyll 3.0 (3.0.5), your code is highly dependent on the codebase of 3.1.
You should change your gemspec to reflect that it needs ~> 3.1.0
Hi
I'm new to Ruby, I'm running Windows and installed ruby via choc install ruby
. This is currently my gemfile:
source "https://rubygems.org"
gem 'jekyll'
gem 'hawkins'
When I run bundle install
I get the following error:
Gem::InstallError: The 'http_parser.rb' native gem requires installed build
tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
An error occurred while installing http_parser.rb (0.6.0), and Bundler cannot
continue.
Make sure that `gem install http_parser.rb -v '0.6.0'` succeeds before bundling.
Whenever I'm working on my Jekyll site with livereload, any links using {{site.url}}/page
go to mydomain.com
instead of localhost:4000
, so whenever I click on a link in my site it redirects to the production domain instead of development.
The jekyll docs say that:
site.url: Contains the url of your site as it is configured in the _config.yml. For example, if you have url: http://mysite.com in your configuration file, then it will be accessible in Liquid as site.url. For the development environment there is an exception, if you are running jekyll serve in a development environment site.url will be set to the value of host, port, and SSL-related options. This defaults to url: http://localhost:4000.
Can this be fixed? Thanks.
as noted in https://talk.jekyllrb.com/t/a-tool-for-automatic-browser-refreshes/2150/7, the post
command creates a new post file with the correct title and filename, but it's missing some of the basic yaml front-matter, specifically the layout entry that styles the post as a post (and therefore loads the rest of the site style as well as the liveserver js if running under the liveserver
command.
Perhaps this is intended behavior, and not hard to fix once the problem is understood, though.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.