I need to inject some differences to credits markup when showing on home page (in articles list). From shortcode how can I get current page object to see it’s .IsHome variable?
This isn’t possible. When Page A (outer) renders Page B (inner), the inner page does not have access to the outer context. Or to put it another way, Page B knows that it is being rendered, but it doesn’t know who is doing the rendering.
Yeah, some trick with custom views seems to be a workaround, but I’m going to refactor templates as Joe recommends. Because initial idea of credits integration to article’s body via shortcode was bad in meaning of project architecture. So my bump into problem described above was naturally inevitable.
Now I’m going to move addon block to front matter and render credits from template, not from article.