ismay edited this page Sep 10, 2018 · 1 revision

To help you to get started with metalsmith templating, we've created a collection of examples that demonstrate common use-cases. The examples are written for the latest major versions of metalsmith-in-place and metalsmith-layouts.

Feel free to contribute new examples or update existing ones. To help newcomers, please keep the examples as simple and clear as possible, and try to stick to the existing style. If anything is unclear, feel free to let us know in our slack channel so we can improve it!

Examples

Advanced example with markdown and nunjucks

This example demonstrates a common way of building a blog with metalsmith. It uses metalsmith-in-place to render your markdown source files to html, and then applies metalsmith-layouts to wrap the result in a common base template.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.