Although .Store should maintain the content after a re-rendering of the page, it seems that it does not.
The content disappears when I change the content of the _index.md file.
I have this _index.md:
+++
title = "Solutions"
type = "page"
description = ""
weight = 100
layout = "solutions"
+++
{{< content home >}}
This is the content inside the `top` shortcode, which will be captured for use in the template.
{{< /content >}}
This shortcode stores the content in .Store:
{{ $loc := .Get 0 }}
{{ $.Page.Store.Set $loc .Inner }}
And this is the template solution.html:
{{ $home := "" }}
{{ with .Page.Store.Get "home" }}
{{ $home = . | safeHTML }}
{{ end }}
{{ $home }}
It works perfectly, but as soon as I change _index.md, the content is not rendered anymore.
This is strange because it behaves like .Scratch.
Thank you for the help!