Created
November 11, 2018 13:54
-
-
Save fleeto/4af491d4779c3769ac15cc15c2382842 to your computer and use it in GitHub Desktop.
Markdown snippetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix,body and | |
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
// $1,$2 for tab stops,$0 for the final cursor position,and ${1:label},${2:another} for placeholders. Placeholders with the | |
// same ids are connected. | |
// Example: | |
// "Print to console": { | |
// "prefix": "log", | |
// "body": [ | |
// "console.log('$1');", | |
// "$2" | |
// ], | |
// "description": "Log output to console" | |
// } | |
"Istio Code Block": { | |
"prefix": "istio", | |
"body": [ | |
"{{< text $1 >}}", | |
"$0","{{< /text >}}" | |
] | |
}, | |
"Front matters": { | |
"prefix": "front matters", | |
"description": "Basic front matters for hugo documents.", | |
"body": ["${1|authors = [\"\"],categories = [\"\"],date = ,draft = false,summary = \"\",tags = [\"\"],title = [\"\"]|}"] | |
}, | |
"Gist": { | |
"prefix": "shortcode: gist", | |
"description": "Hugo shortcode: Gist.", | |
"body": ["{{< gist ${1:Owner} ${2:id} >}}$0"] | |
}, | |
"Medias": { | |
"prefix": "shortcode: emmbed", | |
"description": "Hugo shortcode for instagram/twitter/vimeo/youtube.", | |
"body": ["{{< ${1|instagram,tweet,vimeo,youtube|} ${2:id} >}}$0"] | |
}, | |
"Date Time": { | |
"prefix": "front matters: date", | |
"description": "Current datetime.", | |
"body": ["${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}T${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}+08:00"] | |
}, | |
"Featured image": { | |
"prefix": "image: featured", | |
"description": "Featured Image.", | |
"body": ["[image]"," caption = \"${1:Caption}\""," focal_point = \"Smart\""," preview_only = false\n$0"] | |
}, | |
"Header image": { | |
"prefix": "image: header", | |
"description": "Header Image.", | |
"body": ["[header]"," image = \"${1:Image url}\""," caption = \"${2:Caption}\"\n$0"] | |
}, | |
"Focal point": { | |
"prefix": "focal point", | |
"description": "Focal point of featured image.", | |
"body": ["${1|Smart,Center,TopLeft,Top,TopRight,Left,Right,BottomLeft,Bottom,BottomRight|}$0"] | |
}, | |
"TOC": { | |
"prefix": "shortcode: toc", | |
"description": "Hugo shortcode: Table of contents.", | |
"body": ["{{% toc %}}\n$0"] | |
}, | |
"Slide Fragment": { | |
"prefix": "slide fragment", | |
"body": ["{{% fragment %}} ${1: Fragment content} {{% /fragment %}}\n$0"], | |
"description": "Press `Space` to play." | |
}, | |
"Slide Notes": { | |
"prefix": "slide notes", | |
"body": ["{{< speaker_note >}}", "${1:Speaker notes}", "{{< /speaker_note >}}\n$0"], | |
"description": "Press `S` to view." | |
}, | |
"Slide Themes": { | |
"prefix": "slide themes", | |
"body": ["${1|black,white,league,beige,sky,night,serif,simple,solarized|}"], | |
"description": "Choose a theme for the slide." | |
}, | |
"Slide Backgroud Image": { | |
"prefix": "slide bg image", | |
"body": ["{{< slide_background-image=\"${1:Image url}\" />}}\n$0"], | |
"description": "Background image for you slide." | |
}, | |
"Slide Backgroud Color": { | |
"prefix": "slide bg color", | |
"body": ["{{< slide_background-image=\"#${1:Color code }\" />}}\n$0"], | |
"description": "Background color for you slide." | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment