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 errors: Misc improvements 2022-05-14 13:40:56 +02:00
partials/_funcs tpl: Allow using page resources on the images page parameter for opengraph, schema and twitter_cards templates 2023-12-04 12:05:41 +01:00
shortcodes tpl/tplimpl: Improve youtube shortcode 2024-04-04 11:08:30 +02:00
alias.html tpl/tplimpl: Use .Language.LanguageCode in built-in templates 2023-05-30 20:10:16 +02:00
disqus.html tpl/tplimpl: Remove superfluous type attr on script elements 2023-11-27 10:45:53 +01:00
google_analytics.html tpl/tplimpl: Update Google Analytics template and config 2024-03-26 15:40:51 +01:00
opengraph.html tpl/tplimpl: Improve embedded opengraph template 2024-04-02 18:35:43 +02:00
pagination.html Remove empty href element from pagination template 2021-12-02 09:14:30 +01:00
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