I saw this on one of the Hugo documentation pages, so I copied it. I am not sure what the difference is.
5 lines
200 B
HTML
5 lines
200 B
HTML
{{ $id := .Get "id" }}
|
|
{{ .Page.Store.Set "includes_p5_sketch" true }}
|
|
<div class="centered">
|
|
<figure class="p5-sketch {{ with .Get "bordered" }}bordered{{ end }}" id="{{ $id }}"></figure>
|
|
</div>
|