VSCode tasks

This commit is contained in:
MultiMote 2023-11-21 22:53:29 +03:00
parent 927c79741c
commit e9dc68bb14
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",
}
]
}