This is the website for Savas Labs.
The site is built using Jekyll. To run locally:
- Make sure Bundler and Jekyll are installed
gem install bundler
gem install jekyll
- Clone the repo
bundle install
bundle exec jekyll serve --config _config.yml,_config.test.yml,_config.dev.yml
- This convenient script also captures the config files specified above:
./_scripts/jekyll.sh
To run the tests:
$ bash _tests/run-tests.sh
Since updating to Jekyll 3.0.2 which uses Kramdown/Rouge, to use syntax highlighting in a post you just need to use backticks (similar to GitHub or Slack highlighting).
Special tips:
- You can include the language name after the first set of backticks with no space e.g. ```bash
- The syntax block must be proceeded and followed by blank lines.
- For php you must including an opening php tag to get proper highlighting.
To add a new tag, complete the following:
- Add the tag to _data/tags.yml.
- Add a new markdown file for the tag in news/tag. This creates a page for posts with that tag.
- Add the tag to the front matter of your post.
We have a password protected staging site! Among other use cases, it can be used to share a site update with the team that we don't yet want to make available to the public.
The staging site lives on the savasdev.com server.
If you would like to add your private repo to stage your code feel free
www@savasdev:~/blabs.savasdev.com/site$ git remote -v
origin git@bitbucket.org:illmasterc/savas-labs-website.git (fetch)
origin git@bitbucket.org:illmasterc/savas-labs-website.git (push)
upstream git@github.com:savaslabs/savaslabs.github.io.git (fetch)
upstream git@github.com:savaslabs/savaslabs.github.io.git (push)
The site is served from /home/www/blabs.savasdev.com/site/_site
which can
be rebuilt by issuing jekyll build
from within /home/www/blabs.savasdev.com/site