Skip to content

Instantly share code, notes, and snippets.

@growdigital
Last active January 2, 2018 21:56
Show Gist options
  • Save growdigital/890afda0d0783eb284def8929ae6ee8f to your computer and use it in GitHub Desktop.
Save growdigital/890afda0d0783eb284def8929ae6ee8f to your computer and use it in GitHub Desktop.
Groundwork Visual Studio Code User Snippets for post & status templates
{
// prettier-ignore
"Post template": {
"prefix": "fmp",
"body": [
"---",
"title: $1",
"excerpt: $2",
"datePublished: $3",
"image: $4",
"imagealt: $5",
"layout: post.hbs",
"collection: post",
"---\n",
"$6"
],
"description": "Post template for post collection"
},
// prettier-ignore
"Status template": {
"prefix": "fms",
"body": [
"---",
"title: $1",
"statusDate: $2",
"image: $3",
"imagealt: $4",
"layout: status.hbs",
"collection: status",
"---\n",
],
"description": "Status template for status collection"
},
// prettier-ignore
"Figure, image, caption": {
"prefix": "figcap",
"body": [
"<figure>",
"",
"![$1]($2)",
"",
"<figcaption>$3</figcaption>",
"</figure>"
],
"description": "figure, image and caption HTML tags"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment