From f40932c5de23f8f8af0a63a59ce7fc32f9b915f5 Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Wed, 8 Jan 2025 21:02:38 -0800 Subject: [PATCH] Personal snippets for Hugo --- snippets/markdown-mode/callout | 2 +- snippets/markdown-mode/figure | 5 +++++ snippets/markdown-mode/front-matter | 14 ++++++++++++++ 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 snippets/markdown-mode/figure create mode 100644 snippets/markdown-mode/front-matter diff --git a/snippets/markdown-mode/callout b/snippets/markdown-mode/callout index 854ec90..c4c3351 100644 --- a/snippets/markdown-mode/callout +++ b/snippets/markdown-mode/callout @@ -2,6 +2,6 @@ # name: Hugo Callout # key: callout # -- -{{< callout type="${2:$$(yas-choose-value '("note" "warning" "hint"))}" >}} +{{< callout type="${2:$$(yas-choose-value '("note" "info" "error" "warning" "hint"))}" >}} $0 {{< /callout >}} diff --git a/snippets/markdown-mode/figure b/snippets/markdown-mode/figure new file mode 100644 index 0000000..8827b93 --- /dev/null +++ b/snippets/markdown-mode/figure @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: figure +# key: figure +# -- +{{< figure src="${1}" title="${2}" >}} \ No newline at end of file diff --git a/snippets/markdown-mode/front-matter b/snippets/markdown-mode/front-matter new file mode 100644 index 0000000..2a30433 --- /dev/null +++ b/snippets/markdown-mode/front-matter @@ -0,0 +1,14 @@ +# -*- mode: snippet -*- +# name: Front Matter +# key: