/website

The Fox Flying Club website

Primary LanguageHTML

Fox Flying Club Website

Install Jekyll

gem install bundler jekyll image_optimizer

Run the website

bundle exec jekyll serve

Visit the site: http://localhost:4000

Making changes

Optimize images

There's a built in image optimizer for creating the smallest image sizes possible

note, you may need to install additional libraries for png and jpeg on your computer

ruby opimize_imgs.rb

Directory Structure

img

All images should be contained here.

docs

This directory contains club documents like bylaws, POH's, etc

newsletters

This directory contains the past newsletters

_includes

This directory contains partials to be included in other pages. Jekyll compiles parts of pages in this directory into other static html

_layouts

This directory contains all the layouts for various page types. Jekyll uses these layouts to compile down the final pages. A change here will affect all pages that use that layout.

Special Handling

cfis.html

The cfis.html page has special handling in the header:

cfis: 
  - David Berenson,CFII,deberenson@yahoo.com
  - David Gooch,CFI,gooch737@gmail.com
  - Gary Palumbo,CFII,akromech@sbcglobal.net
  - Timothy Sorensen,CFII,tim.sorensen@sbcglobal.net
  - Robery Werneth,CFII,rmwerneth@gmail.com
  - Tom Winsor,CFII,winsortc@gmail.com
  - Annalise Eure,CFII,annalise.weck@gmail.com
  - Ryan Feeney,CFII,ryan_feeney@att.net
  - Derrick Hight,CFII,firefytr906@aol.com
  - Terry Kline,CFII,terrence_kline@yahoo.com
  - Brad Schroeder,CFII,brads147@comcast.net
  - Fritz Koch,CFII,fritzkoch3@gmail.com
  - Brandon Anderson,CFII,anderson.brandon@gmail.com
  - Vladimir Leshchenko,CFII,vlad.lesh@gmail.com  

The page uses this list to compile the final page. Each row must have the name, certificate type, and email of the CFI in comma delimited format for the compiler to properly handle expansion into the HTML.

aircraft pages

The aircraft pages use the 'aircraft' layout provided in the _layouts directory. This layout requires the following items to be set in the head of the page to compile properly:

---
tail: N700ZG
model: 2004 Cirrus SR20 G2
price: $185/hour hobbs*
---

Changing these items changes the values on the final page.