Skip to content

kristenzirkler/kz-wordpress-boilerplate

Repository files navigation

Wordpress & Jekyll Boilerplate

kristenzirkler

To Work on Site Locally

  • in terminal, navigate to the repo directory.
  • jekyll serve --watch --baseurl='' (the baseurl option is empty on purpose)
  • open browser and go to http://localhost:4000/

Other Tips

  • all css/scss/js for the local temp files is within the wordpress theme folder
  • do not edit any files in _site
  • do not edit css files directly
  • you can have files in the main dir (todays-benefits.html) or directories to make pretty urls (/todays-benefits/index.html)
  • URL set up static files & navigation like this so the urls are correct on production & local http://stackoverflow.com/questions/14322329/site-root-github-pages-vs-jekyll-server
  • In the _config.yml file, add the variable baseurl (without trailing slash):

baseurl: "http://user.github.io/project-name"

  • In the layouts or pages, use absolute references, using the site.baseurl variable:

<link rel="stylesheet" href="{{ site.baseurl }}/css/styles.css">

Then, run the local server (the baseurl option is empty on purpose):

jekyll serve --watch --baseurl=''

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published