Just like vinyl LPs, static sites are making a comeback, evidenced by the wide array of static-site generators now available. This practical book shows you hands-on how to build these simple sites for blogs and other use cases, and how to make them more powerful. In the process, you’ll work with some of today’s more mature and popular static-site generators.
Authors Raymond Camden and Brian Rinaldi explain the advantages of using static-site generators for building fast and secure sites. Web and frontend designers and developers will also explore methods for adding dynamic elements and for migrating an existing CMS to a static site.
Build a basic four-page static site with the Harp generator
Create a simple blog with Jekyll
Develop a documentation site with Hugo by generating site files and creating the layout
Add dynamic elements, such as forms, comments, and search
Integrate a CMS with tools such as CloudCannon and Netlify CMS
Use one of several options to deploy your static files
Learn methods for moving an existing CMS to a static site
Raymond Camden is a developer advocate for IBM. His work focuses on the StrongLoop platform, Bluemix, hybrid mobile development, Node.js, HTML5, and web standards in general. He's a published author and presents at conferences and user groups on a variety of topics. Raymond can be reached at his blog (www.raymondcamden.com), @raymondcamden on Twitter, or via email at email@example.com.
Brian Rinaldi is the Developer Programs Manager at Telerik focused on ensuring that the Developer Relations team creates top notch content for the web development community on the Telerik Developer Network. Brian also serves as co-editor of Mobile Web Weekly and authored a report on Static Site Generators for O'Reilly. You can follow Brian via @remotesynth on Twitter.
The animals on the cover of Working with Static Sites are gooseneck barnacles (Pollicipes pollicipes) and also go by the names goose barnacles or stalked barnacles. They are an edible crustacean and considered a delicacy in Portugal and Spain where they're known as percebes.
Gooseneck barnacles can be found near the oceans' surface, attached to rocks or other hard exteriors. They are filter-feeders and rely on the ocean's motion to provide sustenance. They feed on algae and other vegetation, but are also known to consume copepods and brine shrimp.
Being hermaphroditic allows gooseneck barnacles to reproduce easily as long as they are set close to one another, and breeding takes place over eight months of the year, beginning in the warmer months of 50 to 60 degrees Fahrenheit weather. Once the fertilized eggs (in batches of 100,000 to 250,000) have been incubated for about 30 days, they are released as free swimming larva.
It was once believed that barnacle geese actually spawned from gooseneck barnacles because geese migration had not yet been discovered and therefore, no one had witnessed the barnacle geese's mating cycles. Because of this belief, eating barnacle geese on traditionally Christian days of fasting from meat was generally allowed in European countries.
Many of the animals on O'Reilly covers are endangered; all of them are important to the world. To learn more about how you can help, go to animals.oreilly.com.
The cover image is from Pictorial Museum of Animated Nature. The cover fonts are URW Typewriter and Guardian Sans. The text font is Adobe Minion Pro; the heading font is Adobe Myriad Condensed; and the code font is Dalton Maag's Ubuntu Mono.