Skip to content

Commit

Permalink
Merge pull request #15 from Yajo/patch-1
Browse files Browse the repository at this point in the history
Add date snippet
  • Loading branch information
Bud Parr committed May 6, 2020
2 parents cf30264 + e2d32be commit e03ea86
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/snippets/hugo.code-snippets.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"body": ["{{ $1 }}"],
"description": "Wrap in Go Template's double curly brackets"
},
"Date": {
"prefix": "date",
"scope": "yaml,json,jsonc,toml,html,restructuredtext,markdown",
"body": "$CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}T$CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
"description": "Write current date in the format accepted by Hugo"
},
"Dot": {
"prefix": "xx",
"scope": "html, json",
Expand Down

0 comments on commit e03ea86

Please sign in to comment.