Personal snippets for Hugo

This commit is contained in:
Howard Abrams 2025-01-08 21:02:38 -08:00
parent dcd050b37a
commit f40932c5de
3 changed files with 20 additions and 1 deletions

View file

@ -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 >}}

View file

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: figure
# key: figure
# --
{{< figure src="${1}" title="${2}" >}}

View 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