Skip to content

Instantly share code, notes, and snippets.

@vdbsh
Last active August 11, 2024 02:50
Show Gist options
  • Select an option

  • Save vdbsh/3d29a00df50e4a4b2ac6f38366011ce6 to your computer and use it in GitHub Desktop.

Select an option

Save vdbsh/3d29a00df50e4a4b2ac6f38366011ce6 to your computer and use it in GitHub Desktop.
Hugo post template for VSCode
{
// 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