Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Snippet for Multiline Shortcode Template w/ param #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,19 @@ To trigger the snippets in Markdown you can use `^Space` [Snippets for Markdown]

## Markdown

| Prefix | Description |
| ----------------- | --------------------------- |
| h-figure | Figure Shortcode |
| h-gist | Gist Shortcode |
| h-highlight | Highlight Shortcode |
| h-instagram | Instagram Shortcode |
| h-shortcode | Shortcode Template |
| h-shortcode-param | Shortcode Template w/ param |
| h-ref | Ref Shortcode |
| h-tweet | Tweet Shortcode |
| h-vimeo | Vimeo Shortcode |
| h-youtube | Youtube Shortcode |
| Prefix | Description |
| --------------------- | ------------------------------------- |
| h-figure | Figure Shortcode |
| h-gist | Gist Shortcode |
| h-highlight | Highlight Shortcode |
| h-instagram | Instagram Shortcode |
| h-shortcode | Shortcode Template |
| h-shortcode-param | Shortcode Template w/ param |
| h-shortcode-multiline | Multiline Shortcode Template w/ param |
| h-ref | Ref Shortcode |
| h-tweet | Tweet Shortcode |
| h-vimeo | Vimeo Shortcode |
| h-youtube | Youtube Shortcode |

## Function

Expand Down
9 changes: 9 additions & 0 deletions snippets/hugo-markdown.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@
"body": ["{{< ${1:shortcode} ${2:param} >}}"],
"description": "Shortcode Template w/ param"
},
"hugo-shortcode-multiline": {
"prefix": "h-shortcode-multiline",
"body": [
"{{< ${1:shortcode} ${2:param} >}}",
"${0}",
"{{< /${1:shortcode} >}}"
],
"description": "Multiline Shortcode Template w/ param"
},
"hugo-ref": {
"prefix": "h-ref",
"body": ["[${1:Text}]({{< ref \"${2:pageName}.md\" >}})"],
Expand Down