snippets: add an hugo snippet for blockquote

- Adds a snippet useful when writting markdown content in hugo that
  helps using a shortcode for a blockquote, with language code, author,
  title, link and the quoted text.

Co-Authored-by: iGor milhit <igor@milhit.ch>
main
iGor milhit 2024-08-19 17:42:52 +02:00
parent 01ad6147aa
commit d795b51bd2
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 26 additions and 1 deletions

View File

@ -216,5 +216,30 @@ return {
dscr = "Insert an HTML comment for references, but in French."
},
t("<!-- références -->")
),
s(
{
trig="bq",
name = "[hugo] Blockquote shortcode",
dscr="Insert the shortcode for a blockquote used in my HUGO website.",
docstring = "{{< blockquote lang=\"[lang code]\" author=\"[author]\"\n title=\"[title]\"\n link=\"[link]\" >}}\n\n[Quoted text]\n{{< /blockquote >}}."
},
fmt(
[[
{{< blockquote lang="{1}" author="{2}"
title="{3}"
link="{4}" >}}
{5}
{{< /blockquote >}}
]],
{
i(1, "Lang code"),
i(2, "Author"),
i(3, "Title"),
i(4, "Link"),
i(5, "Quoted text")
}
)
),
}