hugo/tpl/tplimpl/embedded/templates
Bjørn Erik Pedersen df11327ba9 Pass .RenderShortcodes' Page to render hooks as .PageInner
The main use case for this is to resolve links and resources (e.g. images) relative to the included `Page`.

A typical `include` would similar to this:

```handlebars
{{ with site.GetPage (.Get 0) }}
  {{ .RenderShortcodes }}
{{ end }}
```

And when used in a Markdown file:

```markdown
{{% include "/posts/p1" %}}
```

Any render hook triggered while rendering `/posts/p1` will get `/posts/p1` when calling `.PageInner`.

Note that

* This is only relevant for shortcodes included with `{{%` that calls `.RenderShortcodes`.
* `.PageInner` is available in all render hooks that, before this commit, received `.Page`.
* `.PageInner` will fall back to the value of `.Page` if not relevant and will always have a value.

Fixes #12356
2024-04-15 09:49:57 +02:00
..
_default Pass .RenderShortcodes' Page to render hooks as .PageInner 2024-04-15 09:49:57 +02:00
_server
partials/_funcs
shortcodes tpl/tplimpl: Improve youtube shortcode 2024-04-04 11:08:30 +02:00
alias.html
disqus.html
google_analytics.html
opengraph.html tpl/tplimpl: Improve embedded opengraph template 2024-04-02 18:35:43 +02:00
pagination.html
schema.html tpl/tplimpl: Update schema template 2024-03-28 14:56:02 +01:00
twitter_cards.html tpl/tplimpl: Remove trailing slash from void elements 2024-04-01 08:07:02 -07:00