|
| 1 | +{ |
| 2 | + // Place your cblog workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and |
| 3 | + // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope |
| 4 | + // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is |
| 5 | + // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: |
| 6 | + // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. |
| 7 | + // Placeholders with the same ids are connected. |
| 8 | + // Example: |
| 9 | + // "Print to console": { |
| 10 | + // "scope": "javascript,typescript", |
| 11 | + // "prefix": "log", |
| 12 | + // "body": [ |
| 13 | + // "console.log('$1');", |
| 14 | + // "$2" |
| 15 | + // ], |
| 16 | + // "description": "Log output to console" |
| 17 | + // } |
| 18 | + "Statiq Front Matter": { |
| 19 | + "scope": "markdown", |
| 20 | + "prefix": "statiq-front-matter", |
| 21 | + "body": [ |
| 22 | + "Title: ${1:Title}", |
| 23 | + "Published: $CURRENT_MONTH/$CURRENT_DATE/$CURRENT_YEAR", |
| 24 | + "IsPost: true", |
| 25 | + "Tags:", |
| 26 | + " - ${2:exampletag}", |
| 27 | + "---", |
| 28 | + "" |
| 29 | + ], |
| 30 | + "description": "Statiq front matter" |
| 31 | + }, |
| 32 | + "Statiq Blog Post": { |
| 33 | + "scope": "markdown", |
| 34 | + "prefix": "statiq-blog-post", |
| 35 | + "body": [ |
| 36 | + "Title: ${1:Title}", |
| 37 | + "Published: $CURRENT_MONTH/$CURRENT_DATE/$CURRENT_YEAR", |
| 38 | + "IsPost: true", |
| 39 | + "Tags:", |
| 40 | + " - ${2:exampletag}", |
| 41 | + "Categories:", |
| 42 | + " - ${3:examplecategory}", |
| 43 | + "---", |
| 44 | + "# ${1:Title}", |
| 45 | + "", |
| 46 | + "Summary", |
| 47 | + "", |
| 48 | + "<!--more-->", |
| 49 | + "", |
| 50 | + "Body" |
| 51 | + ], |
| 52 | + "description": "Statiq blog post" |
| 53 | + }, |
| 54 | + "Figure with Width": { |
| 55 | + "scope": "markdown", |
| 56 | + "prefix": "figure", |
| 57 | + "body": [ |
| 58 | + "<?# Figure ${1:url} MaxWidth=${2:600} /?>" |
| 59 | + ], |
| 60 | + "description": "Figure shortcode with width" |
| 61 | + } |
| 62 | +} |
0 commit comments