Use .Page.Store instead of .Page.Scratch for conditional includes of support JS

I saw this on one of the Hugo documentation pages, so I copied it. I am not sure what the difference is.
This commit is contained in:
Eryn Wells 2022-10-30 11:39:33 -07:00
parent 5920625753
commit acb1cf3c35
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
{{ $id := .Get "id" }}
{{ .Page.Scratch.Set "includes_p5_sketch" true }}
{{ .Page.Store.Set "includes_p5_sketch" true }}
<div class="centered">
<figure class="p5-sketch {{ with .Get "bordered" }}bordered{{ end }}" id="{{ $id }}"></figure>
</div>