This is Code for South Africa's static template for GitHub pages apps.
This template makes it easy to build GitHub pages static websites that fit the Code for South Africa best practices and guidelines.
- Jekyll-powered GitHub pages template
- Code for South Africa app templates and layouts using the Code4SA style guide
- Google Analytics
- Bower to install assets
- jQuery
- Bootstrap
- FontAwesome
- Fork this repo on GitHub into your own repo and clone the repo locally.
- Install RVM
- Install Jekyll
bundle install
- Edit
_config.yml
and setgoogle_analytics_id
correctly - Run Jekyll:
jekyll serve --watch
- For an app with Code4SA styling, use
index.html
or theapp
layout. - For an empty page, use
naked.html
or thedefault
layout.
To add more javascript files, either add your code to js/app.js
or add extra
files to the js/
directory, and add their paths to your frontmatter:
extra_js:
- /js/foo.js
- /js/bar.js
To add more CSS or SCSS, either add it to css/app.scss
or copy the files
to the css
directory and add their paths to your frontmatter:
extra_stylesheets:
- /css/foo.css
- /css/bar.css
You can also install files with Bower: bower install -Sp package-to-install
Just deploy to your gh-pages branch with git push!
MIT License