VSCode tasks

This commit is contained in:
MultiMote 2023-11-21 22:53:29 +03:00
parent c72d463ca7
commit 3b69e19e2b
2 changed files with 24 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
.vscode

24
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,24 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Start server",
"type": "shell",
"command": "hugo server",
"problemMatcher": []
},
{
"label": "New draft",
"type": "shell",
"command": "hugo new posts/${input:slug}/index.md",
"problemMatcher": []
}
],
"inputs": [
{
"id": "slug",
"type": "promptString",
"description": "Post slug",
}
]
}