-
Install Homebrew.
-
Install ImageMagick, pkg-config, and the latest Ruby version:
brew install imagemagick pkg-config ruby
-
sudo gem install fastimage jekyll
-
Clone the repository and
cd
into it:cd ~/Developer # ...or wherever you want to clone it to git clone [email protected]:Calder/Carissa-Website.git Website cd Website
-
You will do all your development in the
source
branch. Switch to it with:git checkout source
-
Start Jekyll's test server:
jekyll serve
-
Never make changes to _site; it is generated. To change thumbnails, create the 256px by 256px thumbnail image file alongside the original full-sized file and append "-thumb" to its name.
-
Visit http://localhost:4000
Make all changes in the source
branch. When you are ready to publish to the live site:
-
Stage your changes and check what you're about to commit:
git add --all . git status
-
If that looks good, commit your changes:
git commit -m "..."
-
And finally push changes to Github and the live site:
./push
- Certain special characters are problems, like apostrophes in gallery image descriptions
- _includes/nav.html is where the menu on the top is stored