We are the local cycling organization located in Komorniki (Greater Poland). Our mission is to deliver the cycling sporting success, grow and effectively inspire and support people to cycle regularly.
Live URL (in polish): komornikimtb.pl
-
You will need Ruby and Bundler to use Jekyll. Following Using Jekyll with Bundler to fullfill the enviromental requirement.
-
Install the dependencies specified in your
Gemfile
:
$ bundle install
- Serve the local website (
localhost:4000
by default):
$ bundle exec jekyll serve --watch --livereload
Netlify CMS is a single-page app that you pull into the /admin
part of this site. It uses git-gateway
authorization method.
Read more about Netlify CMS Core Concepts.
See the configuration located in /admin/config.yml
.
Latest club bike rides are fetched from Strava API via Strava Ruby Client. In order to use you need to add token variables obtained from My API Application in the Strava UI.
ENV['STRAVA_CLIENT_ID']
ENV['STRAVA_CLIENT_SECRET']
ENV['STRAVA_API_REFRESH_TOKEN']
ENV['STRAVA_API_CLUB_ID']
Run this command to execute the Strava script in the context of the current bundle (Rakefile
):
$ bundle exec rake strava:clubrides --trace
The directory /_site
is where the generated site will be placed (by default) once Jekyll is done transforming it.
$ JEKYLL_ENV=production bundle exec rake strava:clubrides && bundle exec jekyll build --config _config.yml,_config_prod.yml
You're encouraged to submit pull requests, propose features and discuss issues.
MIT License (See LICENSE.txt)