blob: 6048378a604a282c6b65472f52051a80d1507dd4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!-- codecaption short code - basically this is normal highlighted code with caption on top
example usage (Hugo seems to ignore stuff in this):
{ { < codecaption lang="language e.g. python/csharp" title="captiontitle" > } }
code to be highlighted
{ { < /codecaption > } } -->
<figure class="code">
<figcaption>
<span>{{ .Get "title" }}</span>
</figcaption>
<div class="codewrapper">
{{ highlight (trim .Inner "\n\r") (.Get "lang") "linenos=true" }}
</div>
</figure>
|