diff --git a/.gitignore b/.gitignore index 600d2d3..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -.vscode \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..d144bd6 --- /dev/null +++ b/.vscode/tasks.json @@ -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", + } + ] + } \ No newline at end of file