EDIT:
My last discovery is:
If scratch is set before CSS partial file - then $.Scratch.Get in CSS file will work for all pages of pagination…
For example, like this:
pagi have value “true” {{ $.Scratch.Set "pagi" true }}
and I’m able to check if it is true by using: {{ if $.Scratch.Get "pagi" }}
So what is the problem? Do I need to create new variable and assign something to it?
Do I need to pass that variable with dict to my partial CSS file? // Documentation of dict is very poor.
In last two days I checked all results in google.
Also I downloaded entire Hugo Themes repository to find any examples and I found nothing because nobody is using CSS in similar way.
I really have no idea how to solve this problem.
Can you give me example how to “set value” that will be accessible before my partial CSS will load?
// And I am reminding that my current way does not work properly only for 1st page of pagination.
Ohhh… I think I understand it finally. Value is SET at the End of 1st page, so 1st page is not processed with that value, but every next page have access to that value