Personal snippets for Hugo
This commit is contained in:
parent
dcd050b37a
commit
f40932c5de
3 changed files with 20 additions and 1 deletions
|
@ -2,6 +2,6 @@
|
||||||
# name: Hugo Callout
|
# name: Hugo Callout
|
||||||
# key: callout
|
# key: callout
|
||||||
# --
|
# --
|
||||||
{{< callout type="${2:$$(yas-choose-value '("note" "warning" "hint"))}" >}}
|
{{< callout type="${2:$$(yas-choose-value '("note" "info" "error" "warning" "hint"))}" >}}
|
||||||
$0
|
$0
|
||||||
{{< /callout >}}
|
{{< /callout >}}
|
||||||
|
|
5
snippets/markdown-mode/figure
Normal file
5
snippets/markdown-mode/figure
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: figure
|
||||||
|
# key: figure
|
||||||
|
# --
|
||||||
|
{{< figure src="${1}" title="${2}" >}}
|
14
snippets/markdown-mode/front-matter
Normal file
14
snippets/markdown-mode/front-matter
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Front Matter
|
||||||
|
# key: <front
|
||||||
|
# --
|
||||||
|
---
|
||||||
|
title: ${1}
|
||||||
|
linkTitle: ${2}
|
||||||
|
type: docs
|
||||||
|
weight: ${3:50}
|
||||||
|
${4:next: ${5:`(file-name-base (read-file-name "Next: "))`}}
|
||||||
|
${6:prev: ${7:`(file-name-base (read-file-name "Prev: "))`}}
|
||||||
|
---
|
||||||
|
|
||||||
|
$0
|
Loading…
Reference in a new issue