Casual_blog/layouts/shortcodes/source.html

25 lines
602 B
HTML
Raw Normal View History

<hr>
<details>
<summary onmouseover="" style="cursor: pointer;">Sources</summary>
<!-- v1 -->
<ul>
{{ range split (strings.TrimLeft "\n" (strings.TrimRight "\n" .Inner)) "\n" }}
<li>{{ printf "%s\n" . }}</li>
{{ end }}
</ul>
<!-- v2 -->
<!-- {{ .Inner | markdownify }} -->
<!-- v3 -->
<!-- {{ range split .Inner "\n" }} -->
<!-- {{ printf " - %s\n" . | markdownify }} -->
<!-- {{ end }} -->
<!-- v4 -->
<!-- {{ range split (strings.TrimLeft "\n" (strings.TrimRight "\n" .Inner)) "\n" }} -->
<!-- {{ printf " - %s" . | markdownify }} -->
<!-- {{ end }} -->
</details>