Code for Newark is a platform for civic innovation. As an open source organization, you can fork our code including our website. Help us make the site better by forking it, adding new content or features, and submitting a pull request!
Note: This site is hosted with GitHub pages and, as such, any changes you make to the repository will immediately be reflected on codefornewark.org.
Most minor content updates can be made simply by making changes on your forked copy of this repository, then submitting a pull request. For example, following every event, the file _layouts/home/cta.html
should always be updated to reflect the date of the next event.
Note: If you have admin privileges to this GH org, you may committ your updates directly to the repository without forking your own copy, but do so with vigilance.
The CTA block just below the hero image can be quickly updated fairly easily:
_includes/home/cta.html
Pull Requests
and issue a Pull Request
to merge your changes into the main repository.Everything starts with index.md
at the root level of the project structure. The layout of the home page (and other pages) is pulled in from the _layouts
folder, and content is pulled in from _includes
with {% include <file-to-include> %}
statements. More information about how this works can be found in the Jekyll documentation.
Some more tips for exploring the layout of the website:
pages
folderheader.html
in _includes/shared
which contains links to most of the pages on the site.MORE TK
If you want to make significant changes to the site, it's recommended you do so on your local machine first so as to speed up the development process. Here's how to do that.
Notes: https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/
git clone https://github.com/code4newark/codefornewark.org.git
bundle
If it asks for your password, there should be a message recommending to instead run
bundle install --path vendor/bundle
Do that instead.
jekyll build
or if you did the bundle install
command with the path option
bundle exec jekyll build
jekyll serve --watch
Or if you did the bundle install
command with the path option
bundle exec jekyll serve --watch
With jekyll serve --watch
running, you should be able to access the site on http://localhost:4000! Thanks to the --watch
flag, any changes you make to the markdown (md) files will update automatically!
For reference, here's an awesome markdown cheatsheet.
Contribute, change things, submit a pull request! We will all contribute.