From e9dc68bb1485b95215185ef278e98aa20cd3c1aa Mon Sep 17 00:00:00 2001 From: MultiMote Date: Tue, 21 Nov 2023 22:53:29 +0300 Subject: [PATCH] VSCode tasks --- .gitignore | 1 - .vscode/tasks.json | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .vscode/tasks.json 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