If you indeed go for setting up the baseurl
, you can view your site locally via localhost: 4000
by adding this flag when serving Jekyll: --baseurl ""
. So, jekyll serve --watch --baseurl ""
. This means like "Jekyll, ignore ths baserurl set in the config".
macOS
jekyll serve --watch --baseurl ""
windows
jekyll serve --watch --baseurl=""
Use raw
block, such as {% raw %} {{ temp }} {% endraw %}