Files
website/layouts/shortcodes/note.html
T
Irvi Firqotul Aini 3530e6d6d0 Using regex to allow rendering notes with an indent, for example:
{{< note >}}
If the last element of the path is a substring of the
last element in request path, it is not a match (for example:
`/foo/bar` matches`/foo/bar/baz`, but does not match `/foo/barbaz`).
{{< /note >}}

After changin to hugo 0.70 trim seems to be not working.
2020-05-14 00:16:06 +07:00

3 lines
135 B
HTML

<blockquote class="note">
<div><strong>{{ T "note" }}</strong> {{ replaceRE "\\s+|\n" " " .Inner | markdownify }}</div>
</blockquote>