ux: update code block styling (#22761)

![export](https://github.com/user-attachments/assets/9a9df60b-22db-42b9-9b5d-3d2c7812bb0e)
This commit is contained in:
Arthur
2025-06-04 15:38:11 +02:00
committed by GitHub
parent 28e68f6af7
commit 6a940f3b2a
4 changed files with 77 additions and 54 deletions

View File

@@ -39,6 +39,16 @@
],
"description": "Insert a Hugo tabs block with two tabs and snippet stops for names and content",
},
"Insert Hugo code block (no title)": {
"prefix": ["codeblock", "block"],
"body": ["```${1:json}", "$2", "```", ""],
"description": "Insert a Hugo code block with an optional title",
},
"Insert Hugo code block (with title)": {
"prefix": ["codeblock", "codettl", "block"],
"body": ["```${1:json} {title=\"$2\"}", "$3", "```", ""],
"description": "Insert a Hugo code block with an optional title",
},
"Insert a Button": {
"prefix": ["button"],
"body": ["{{< button url=\"$1\" text=\"$2\" >}}"],