Skip to content

Acknowledge livereload_port from site config too#9606

Merged
jekyllbot merged 1 commit intojekyll:masterfrom
gouravkhunger:9605/live-reload-port
Sep 8, 2024
Merged

Acknowledge livereload_port from site config too#9606
jekyllbot merged 1 commit intojekyll:masterfrom
gouravkhunger:9605/live-reload-port

Conversation

@gouravkhunger
Copy link
Copy Markdown
Contributor

@gouravkhunger gouravkhunger commented Jun 1, 2024

This is a 🙋 feature or enhancement.

  • I've adjusted the documentation.
  • The test suite passes locally.

Summary

The livereload_port option is already supported internally but is hardcoded to 35729:

LIVERELOAD_PORT = 35_729

opts["livereload_port"] ||= LIVERELOAD_PORT

In order to give preference to user defined livereload_port instead of the hardcoded value, the above line needed to be moved from the init_with_program function to process.

Context

Fixes #9605

@ashmaroli
Copy link
Copy Markdown
Member

Thanks @gouravkhunger
@jekyllbot: merge +minor

@jekyllbot jekyllbot merged commit f63a68b into jekyll:master Sep 8, 2024
jekyllbot added a commit that referenced this pull request Sep 8, 2024
github-actions bot pushed a commit that referenced this pull request Sep 8, 2024
Gourav Khunger: fix: acknowledge livereload_port from site config too (#9606)

Merge pull request 9606
@jekyll jekyll locked and limited conversation to collaborators Sep 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Allow configuring the LiveReload port as an option in the configuration file

3 participants