Jekyll plugin to pull down your Airtable tables as datafiles (JSON) through Jekyll Commands.
Add plugin to your Gemfile:
gem 'jekyll-airtable_data'
Add Airtable settings to your _config.yml file:
airtable_data:
api_key: [Your Airtable API Key] # Airtable API key available in the API documentation for your base
app_id: [Your Airtable App ID] # Airtable app ID found in the API documentation for your base
tables:
- [Your Airtable Table Name 1]
- [Your Airtable Table Name 2]
- [Your Airtable Table Name 3]
Execute via Jekyll Command as needed (and works great with Netlify's Build command):
$ bundle exec jekyll airtable_data