Last active
August 11, 2024 02:50
-
-
Save vdbsh/3d29a00df50e4a4b2ac6f38366011ce6 to your computer and use it in GitHub Desktop.
Hugo post template for VSCode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| // Setup your timezone after ${CURRENT_SECOND}, default: "Z" (UTC) | |
| "Hugo Post": { | |
| "prefix": ["hugo"], | |
| "scope": "markdown", | |
| "body": [ | |
| "+++", | |
| "date = \"${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}T${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND}Z\"", | |
| "title = \"$1\"", | |
| "description = \"$2\"", | |
| "tags = [\"$3\"]", | |
| "categories = [\"$4\"]", | |
| "cover = \"$5\"", | |
| "+++\n", | |
| "$0"], | |
| "description": "A Hugo post template" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment