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
parent
01ad6147aa
commit
d795b51bd2
|
@ -216,5 +216,30 @@ return {
|
||||||
dscr = "Insert an HTML comment for references, but in French."
|
dscr = "Insert an HTML comment for references, but in French."
|
||||||
},
|
},
|
||||||
t("<!-- références -->")
|
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")
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue