Taking static websites beyond the command line
Using static site architecture for the website would present Water For People’s team with one main challenge: Static websites require source data to be saved as individual files and encoded in one of the specified data formats (e.g., JSON, YAML, HAML). Without a unified user interface, its editors would likely struggle to navigate between entries. It would be difficult to collaborate on, and nearly impossible to create structured content. For Water For People’s globally-distributed team, these difficulties could not be overlooked.Â
For the shift to a static website to be worth it, the platform selected would also have to simplify content creation — which is where Contentful came in. As an editor-friendly content platform with an API-first infrastructure, it would offer content creators and editors a space that was easy to navigate within and publish from. And, any content, media or tools they might need for the project would be readily available. At the same time, all articles created by editors could be saved in a JSON format to be accessible programmatically.
With such promising features and the ability to easily connect with Middleman, the static site generator selected to support Water For People’s new site, the team in charge of re-platforming was eager to try their hand at setting up the site. “The SDKs are well-documented, and popular generators have plugins for pulling content from its API. So pairing Contentful with the framework I chose was insanely easy,” noted Perry Kibler, the developer in charge of the website redesign. In less than two days, the team had a working version of a new website, proving just how easy Contentful made static website publishing.
Contentful’s developer ecosystem was responsible for driving incremental improvements to the new site. By replacing front-end HTML files with an AngularJS module built by a fellow developer, new content on Water for People’s site now appears in 30 seconds, not three minutes as it had previously. Perry couldn’t have said enough about the community. “It’s great to see open-source contributions like this. They make static websites more awesome than ever and cement Contentful’s position as the backend of choice for such projects.”