This repository houses the source code for the Simple.org website.
We use Middleman to build the static pages which are hosted on GitHub Pages.
To run the site on your own machine, simply clone the repo, install the packages necessary, and start up a Middleman server.
$ git clone git@github.com:resolvetosavelives/simple.org.git
$ cd simple.org
$ bundle install
$ middleman server
If you see an error with middleman, 'Unknown command middleman' then try:
$ bundle exec middleman
OR
$ bundle exec middleman server
After merging your commits to master
and pulling the latest, run rake publish
.
Error: src refspec gh-pages does not match any
git pull origin master
git fetch
rm -rf build
to delete your build/
directoryrake publish
Error: Could not find middleman-blog-4.0.3 in any of the sources
rvm
, run rvm use 2.5.1
to use Ruby version 2.5.1.rm -rf build
to delete your build/
directoryrake publish
To add a new contributor to simple.org/about, do the following:
data/contributors.yml
locales/en.yml
for a list of available roles and countries. Note: Please make sure the string you set in contributors.yml
exactly matches the key in the en.yml
file. Otherwise the role/country will display an error.Contributors are listed alphabetically by last name
To add a new blog article, do the following:
source/blog/
using the following extension and naming convention: year-month-day-my-new-article.html.erb
.source/blog/
and copy and paste the front-matter content to your new article." "
.data/contributors/yml
, make sure to add their exact name in the author
variable. If the author isn't a contributor, follow the "Add a new contributor to Simple.org" instructions above before proceeding./images/blog/my-new-article/
.50px
and a Figma layer blur of 1
. Image placeholders are used to lazy-load images and reduce initial page load times.div
s around the content—it's just a bunch of section
s and image div
s!If you have any questions please contact Jamie at jamie@simple.org.