Merge commit 'a024bc7d76fcc5e49e8210f9b0896db9ef21861a'

This commit is contained in:
Bjørn Erik Pedersen
2025-02-13 10:40:34 +01:00
817 changed files with 5301 additions and 14766 deletions

View File

@@ -4,7 +4,7 @@ _comment: Do not remove front matter.
## PageInner details
{{< new-in 0.125.0 >}}
{{< new-in 0.125.0 />}}
The primary use case for `PageInner` is to resolve links and [page resources](g) relative to an included `Page`. For example, create an "include" shortcode to compose a page from multiple content files, while preserving a global context for footnotes and the table of contents:

View File

@@ -1,6 +1,6 @@
---
title: Render hooks
linkTitle: In this section
description: Create render hooks to override the rendering of Markdown to HTML.
categories: []
keywords: []

View File

@@ -12,7 +12,7 @@ weight: 30
toc: true
---
{{< new-in 0.132.0 >}}
{{< new-in 0.132.0 />}}
## Context
@@ -24,13 +24,13 @@ Blockquote render hook templates receive the following [context](g):
###### AlertTitle
{{< new-in 0.134.0 >}}
{{< new-in 0.134.0 />}}
(`template.HTML`) Applicable when [`Type`](#type) is `alert`, this is the alert title. See the [alerts](#alerts) section below.
###### AlertSign
{{< new-in 0.134.0 >}}
{{< new-in 0.134.0 />}}
(`string`) Applicable when [`Type`](#type) is `alert`, this is the alert sign. Typically used to indicate whether an alert is graphically foldable, this is one of&nbsp;`+`,&nbsp;`-`,&nbsp;or an empty string. See the [alerts](#alerts) section below.

View File

@@ -78,7 +78,7 @@ Code block render hook templates receive the following [context](g):
###### PageInner
{{< new-in 0.125.0 >}}
{{< new-in 0.125.0 />}}
(`page`) A reference to a page nested via the [`RenderShortcodes`] method. [See details](#pageinner-details).

View File

@@ -41,7 +41,7 @@ title = true
###### PageInner
{{< new-in 0.125.0 >}}
{{< new-in 0.125.0 />}}
(`page`) A reference to a page nested via the [`RenderShortcodes`] method. [See details](#pageinner-details).

View File

@@ -59,7 +59,7 @@ block = true
###### PageInner
{{< new-in 0.125.0 >}}
{{< new-in 0.125.0 />}}
(`page`) A reference to a page nested via the [`RenderShortcodes`] method. [See details](#pageinner-details).
@@ -122,7 +122,7 @@ wrapStandAloneImageWithinParagraph = false
## Default
{{< new-in 0.123.0 >}}
{{< new-in 0.123.0 />}}
Hugo includes an [embedded image render hook] to resolve Markdown image destinations. Disabled by default, you can enable it in your site configuration:

View File

@@ -38,7 +38,7 @@ Link render hook templates receive the following context:
###### PageInner
{{< new-in 0.125.0 >}}
{{< new-in 0.125.0 />}}
(`page`) A reference to a page nested via the [`RenderShortcodes`] method. [See details](#pageinner-details).
@@ -90,7 +90,7 @@ To include a `rel` attribute set to `external` for external links:
## Default
{{< new-in 0.123.0 >}}
{{< new-in 0.123.0 />}}
Hugo includes an [embedded link render hook] to resolve Markdown link destinations. Disabled by default, you can enable it in your site configuration:

View File

@@ -12,7 +12,7 @@ weight: 80
toc: true
---
{{< new-in 0.132.0 >}}
{{< new-in 0.132.0 />}}
## Overview

View File

@@ -12,7 +12,7 @@ weight: 90
toc: true
---
{{< new-in 0.134.0 >}}
{{< new-in 0.134.0 />}}
## Context