hugo-theme-relearn/vscode-frontmatter/snippets.en.json
2023-02-20 07:38:22 +01:00

499 lines
9.6 KiB
JSON

{
"frontMatter.content.snippets": {
"Attachments": {
"body": [
"{{< attachments title=\"[[&title]]\" pattern=\"[[&pattern]]\" sort=\"[[&sort]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" />}}"
],
"description": "Displays a list of files attached to the page",
"fields": [
{
"default": "",
"name": "title",
"title": "Title",
"type": "string"
},
{
"default": "",
"name": "pattern",
"title": "Regex for filtering file names",
"type": "string"
},
{
"choices": [
"",
"asc",
"desc"
],
"default": "",
"name": "sort",
"title": "Sorting order",
"type": "choice"
},
{
"choices": [
"",
"info",
"note",
"tip",
"warning",
"primary",
"secondary",
"accent",
"blue",
"green",
"gray",
"orange",
"red",
"default",
"transparent"
],
"default": "",
"name": "style",
"title": "Style scheme",
"type": "choice"
},
{
"default": "",
"name": "color",
"title": "CSS color value",
"type": "string"
},
{
"default": "",
"name": "icon",
"title": "Font Awesome icon",
"type": "string"
}
]
},
"Badge": {
"body": [
"{{< badge title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" >}}[[&content]]{{< /badge >}}"
],
"description": "Displays a little marker in the text",
"fields": [
{
"default": "FM_SELECTED_TEXT",
"name": "content",
"title": "Text",
"type": "string"
},
{
"default": "",
"name": "title",
"title": "Title",
"type": "string"
},
{
"choices": [
"",
"info",
"note",
"tip",
"warning",
"primary",
"secondary",
"accent",
"blue",
"green",
"gray",
"orange",
"red",
"default",
"transparent"
],
"default": "",
"name": "style",
"title": "Style scheme",
"type": "choice"
},
{
"default": "",
"name": "color",
"title": "CSS color value",
"type": "string"
},
{
"default": "",
"name": "icon",
"title": "Font Awesome icon",
"type": "string"
}
]
},
"Button": {
"body": [
"{{< button href=\"[[&href]]\" target=\"[[&target]]\" type=\"[[&type]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" iconposition=\"[[&iconposition]]\" >}}[[&content]]{{< /button >}}"
],
"description": "Displays a clickable button",
"fields": [
{
"default": "FM_SELECTED_TEXT",
"name": "content",
"title": "Text",
"type": "string"
},
{
"default": "",
"name": "href",
"title": "Destination URL",
"type": "string"
},
{
"default": "",
"name": "target",
"title": "HTML a[target] like eg. `_self` or `_blank`",
"type": "string"
},
{
"default": "",
"name": "type",
"title": "HTML button[type] like eg. `button` or `submit`",
"type": "string"
},
{
"choices": [
"",
"info",
"note",
"tip",
"warning",
"primary",
"secondary",
"accent",
"blue",
"green",
"gray",
"orange",
"red",
"default",
"transparent"
],
"default": "",
"name": "style",
"title": "Style scheme",
"type": "choice"
},
{
"default": "",
"name": "color",
"title": "CSS color value",
"type": "string"
},
{
"default": "",
"name": "icon",
"title": "Font Awesome icon",
"type": "string"
},
{
"choices": [
"",
"left",
"right"
],
"default": "",
"name": "iconposition",
"title": "Position of the icon",
"type": "choice"
}
]
},
"Children": {
"body": [
"{{< children description=\"[[&description]]\" depth=\"[[&depth]]\" sort=\"[[&sort]]\" showhidden=\"[[&showhidden]]\" containerstyle=\"[[&containerstyle]]\" style=\"[[&style]]\" >}}"
],
"description": "Displays a list of child pages for the page",
"fields": [
{
"choices": [
"",
"false",
"true"
],
"default": "",
"name": "description",
"title": "Show child page description",
"type": "choice"
},
{
"default": "",
"name": "depth",
"title": "Depth of child page level to display",
"type": "string"
},
{
"default": "",
"name": "sort",
"title": "Sort predicate",
"type": "string"
},
{
"choices": [
"",
"false",
"true"
],
"default": "",
"name": "showhidden",
"title": "Show hidden child pages",
"type": "choice"
},
{
"default": "",
"name": "containerstyle",
"title": "Container HTML element",
"type": "string"
},
{
"default": "",
"name": "style",
"title": "Container child HTML element",
"type": "string"
}
]
},
"Expand": {
"body": [
"{{% expand title=\"[[&title]]\" open=\"[[&open]]\" %}}[[&content]]{{% /expand %}}"
],
"description": "Displays an expandable/collapsable section of text",
"fields": [
{
"default": "FM_SELECTED_TEXT",
"name": "content",
"title": "Text",
"type": "string"
}
]
},
"Icon": {
"body": [
"{{< icon [[&icon]] >}}"
],
"description": "Displays a Font Awesome icon",
"fields": [
{
"name": "icon",
"title": "Font Awesome icon",
"type": "string"
}
]
},
"Include": {
"body": [
"{{< include file=\"[[&file]]\" hidefirstheading=\"[[&hidefirstheading]]\" >}}"
],
"description": "Displays the content of another file",
"fields": [
{
"name": "file",
"title": "File path",
"type": "string"
},
{
"choices": [
"",
"false",
"true"
],
"default": "",
"name": "hidefirstheading",
"title": "Hide first heading",
"type": "choice"
}
]
},
"Math": {
"body": [
"````math align=\"[[&align]]\"",
"[[&content]]",
"````"
],
"description": "Displays a math or chemical formulae using MathJax",
"fields": [
{
"default": "FM_SELECTED_TEXT",
"name": "content",
"title": "Formulae",
"type": "string"
},
{
"choices": [
"",
"left",
"center",
"right"
],
"default": "",
"name": "align",
"title": "Horizontal alignment",
"type": "choice"
}
]
},
"Mermaid": {
"body": [
"````mermaid align=\"[[&align]]\" zoom=\"[[&zoom]]\"",
"[[&content]]",
"````"
],
"description": "Displays a Mermaid diagram or flowchart",
"fields": [
{
"default": "FM_SELECTED_TEXT",
"name": "content",
"title": "Diagram",
"type": "string"
},
{
"choices": [
"",
"left",
"center",
"right"
],
"default": "",
"name": "align",
"title": "Horizontal alignment",
"type": "choice"
},
{
"choices": [
"",
"false",
"true"
],
"default": "",
"name": "zoom",
"title": "Diagram is pan- and zoomable",
"type": "choice"
}
]
},
"Notice": {
"body": [
"{{% notice title=\"[[&title]]\" style=\"[[&style]]\" color=\"[[&color]]\" icon=\"[[&icon]]\" %}}[[&content]]{{% /notice %}}"
],
"description": "Displays a configurable box of text",
"fields": [
{
"default": "FM_SELECTED_TEXT",
"name": "content",
"title": "Text",
"type": "string"
},
{
"default": "",
"name": "title",
"title": "Title",
"type": "string"
},
{
"choices": [
"",
"info",
"note",
"tip",
"warning",
"primary",
"secondary",
"accent",
"blue",
"green",
"gray",
"orange",
"red",
"default",
"transparent"
],
"default": "",
"name": "style",
"title": "Style scheme",
"type": "choice"
},
{
"default": "",
"name": "color",
"title": "CSS color value",
"type": "string"
},
{
"default": "",
"name": "icon",
"title": "Font Awesome icon",
"type": "string"
}
]
},
"Siteparam": {
"body": [
"{{< siteparam [[&name]] >}}"
],
"description": "Displays the value of a site parameter",
"fields": [
{
"name": "name",
"title": "The name of the site parameter",
"type": "string"
}
]
},
"Swagger": {
"body": [
"{{< swagger src=\"[[&src]]\" >}}"
],
"description": "Displays a Swagger / Open API Specification",
"fields": [
{
"name": "src",
"title": "URL to the Open API Specification",
"type": "string"
}
]
},
"Tabs": {
"body": [
"{{< tabs groupid=\"[[&groupid]]\" >}}",
"{{% tab name=\"[[&name1]]\" %}}",
"[[&content1]]",
"{{% /tab %}}",
"{{% tab name=\"[[&name2]]\" %}}",
"[[&content2]]",
"{{% /tab %}}",
"{{< /tabs >}}"
],
"description": "Display a set of tabs",
"fields": [
{
"default": "",
"name": "groupid",
"title": "ID to synchronize the tab selection of multiple Tabs snippets",
"type": "string"
},
{
"name": "name1",
"title": "Title of the first tab",
"type": "string"
},
{
"default": "FM_SELECTED_TEXT",
"name": "content1",
"title": "Text for the first tab",
"type": "string"
},
{
"name": "name2",
"title": "Title of the second tab",
"type": "string"
},
{
"default": "",
"name": "content2",
"title": "Text for the second tab",
"type": "string"
}
]
}
}
}