A sample Eleventy starter that uses Agility CMS and aims to be a foundation for building fully static sites using 11ty and Agility CMS.
Overview
This document analyzes a sample Eleventy starter site that utilizes Agility CMS. It serves as a foundation for building fully static sites using 11ty and Agility CMS.
Features
- Clone the repository from GitHub
- Install dependencies using npm install or yarn install
- Set up environment variables by obtaining GUID and API Keys from Agility CMS
- Run the project locally in preview mode with hot-reloading server using npm start or yarn start
- Preview mode: npm run dev or yarn dev
- Live or production mode: npm run build or yarn build
- Clear cached content in the node_modules folder using npm run cms-clear or yarn run cms-clear
Installation
- Clone the repository from GitHub.
- Install dependencies using either npm or yarn:
- Set up environment variables:
- Obtain your GUID, and API Keys for Preview and Fetch from your Agility CMS account.
- Head over to the API Keys page in Agility CMS (https://manager.agilitycms.com/settings/apikeys) and copy these values.
- Rename the
.env.example file to .env and paste the values in the corresponding fields.
Summary
This analysis introduces a sample Eleventy starter site that utilizes Agility CMS to build fully static sites. It outlines the key features and provides installation instructions. The site allows for easy local development, preview mode, and live or production mode. It also explains how the project’s structure and templating work.