huge upgrade to theme and pagefind search bar.
This commit is contained in:
11
themes/hugo-book.backup/layouts/_shortcodes/hint.html
Normal file
11
themes/hugo-book.backup/layouts/_shortcodes/hint.html
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- warnf "Hint shortcode is deprecated, use markdown alerts format: '> [!NOTE] ...'" -}}
|
||||
{{- $attributes := partial "docs/text/mapper" (dict
|
||||
"attributes" (cond .IsNamedParams .Params dict)
|
||||
"merge" (dict
|
||||
"class" (slice "book-hint" (or (.Get 0) "default"))
|
||||
)
|
||||
) -}}
|
||||
<blockquote {{ partial "docs/html-attrs" $attributes | safeHTMLAttr }}>
|
||||
{{ .Inner | safeHTML -}}
|
||||
</blockquote>
|
||||
{{- /* remove whitespaces */ -}}
|
||||
Reference in New Issue
Block a user