Skip to content

Commit 4454466

Browse files
Fix page-description attribute not rendering as meta description tag (#10567)
Antora strips the 'page-' prefix when building page.attributes, so :page-description: is stored as page.attributes.description, not page.description (which comes from the bare :description: attribute). The template was only checking page.description, so the meta description tag was never emitted. Updated to check both. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 76fd933 commit 4454466

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ui/src/partials/head-info.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link rel="next" href="{{{relativize ./url}}}">
1212
{{/with}}
1313
{{/unless}}
14-
{{#with page.description}}
14+
{{#with (or page.description page.attributes.description)}}
1515
<meta name="description" content="{{{detag this}}}">
1616
{{/with}}
1717
{{#with page.keywords}}

0 commit comments

Comments
 (0)