Skip to content

Instantly share code, notes, and snippets.

@growdigital
Created September 15, 2017 10:14
Show Gist options
  • Save growdigital/665a658194aecf920f4359de6f28ec41 to your computer and use it in GitHub Desktop.
Save growdigital/665a658194aecf920f4359de6f28ec41 to your computer and use it in GitHub Desktop.
Sublime Text Frontmatter snippet for Metalsmith blog posts
<snippet>
<content><![CDATA[
---
title: $1
date: ${2:2017-04-01}
layout: post.hbs
collections: posts
draft: true
---
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>fm</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>text.html.markdown</scope>
</snippet>
@growdigital
Copy link
Author

There ought to be a way to insert today's date automatically…

@growdigital
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment