Middleman snippets
I’m a big fan of Middleman. I’ve built my website on it, as well as foundation boilerplate and advices for good scalable css. This repository serves as a library of commonly used Middleman snippets.
Contents
Posts
- List of posts for archive or condensed index pages.
Pages
- Navigation with active class for linking pages with the
layout: page
.
Layout
Data
- List of items from a particular
.yml
file in the/data
directory.
Time
- Current year for things like copyright.
- Current date as full month, day, and year.
Contributing
Have a suggestion or bug fix? Open a pull request or issue. I'd be happy to have more snippets here. Update the list above and include the snippet with a clear file name and the simplest HTML possible.
Contribute
If you like the middleman project feel free to contribute.
License
From an original idea of mdo offered to the community by flexbox.
Licensed under MIT.