Skip to content

Commit a746d0b

Browse files
authored
add snippet file (#22711)
1 parent 5ad9cd6 commit a746d0b

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
**/.DS_Store
22
**/desktop.ini
3-
.vscode
3+
.vscode/settings.json
4+
.vscode/tasks.json
45
node_modules
56
.hugo_build.lock
67
resources

.vscode/docker.code-snippets

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"Insert Hugo Note Admonition": {
3+
"prefix": ["admonition", "note"],
4+
"body": ["> [!NOTE]", "> $1"],
5+
"description": "Insert a Hugo note admonition",
6+
},
7+
"Insert Hugo Important Admonition": {
8+
"prefix": ["admonition", "important"],
9+
"body": ["> [!IMPORTANT]", "> $1"],
10+
"description": "Insert a Hugo important admonition",
11+
},
12+
"Insert Hugo Warning Admonition": {
13+
"prefix": ["admonition", "warning"],
14+
"body": ["> [!WARNING]", "> $1"],
15+
"description": "Insert a Hugo warning admonition",
16+
},
17+
"Insert Hugo Tip Admonition": {
18+
"prefix": ["admonition", "tip"],
19+
"body": ["> [!TIP]", "> $1"],
20+
"description": "Insert a Hugo tip admonition",
21+
},
22+
"Insert Hugo Tabs": {
23+
"prefix": ["admonition", "tabs"],
24+
"body": [
25+
"",
26+
"{{< tabs >}}",
27+
"{{< tab name=\"$1\">}}",
28+
"",
29+
"$2",
30+
"",
31+
"{{< /tab >}}",
32+
"{{< tab name=\"$3\">}}",
33+
"",
34+
"$4",
35+
"",
36+
"{{< /tab >}}",
37+
"{{</tabs >}}",
38+
"",
39+
],
40+
"description": "Insert a Hugo tabs block with two tabs and snippet stops for names and content",
41+
},
42+
}

0 commit comments

Comments
 (0)