Skip to content

Yndira/fix eleventy excerpts#4709

Merged
hardillb merged 2 commits intodependabot/npm_and_yarn/multi-b20e0c6c7ffrom
yndira/fix-eleventy-excerpts
Mar 17, 2026
Merged

Yndira/fix eleventy excerpts#4709
hardillb merged 2 commits intodependabot/npm_and_yarn/multi-b20e0c6c7ffrom
yndira/fix-eleventy-excerpts

Conversation

@Yndira-E
Copy link
Copy Markdown
Contributor

@Yndira-E Yndira-E commented Mar 17, 2026

Description

This builds on top of the Dependabot Eleventy upgrade and fixes collection templates that were still reading templateContent too early.

Eleventy 3 is stricter here and throws TemplateContentPrematureUseError for some collection items, especially the ones that rely on content before <!--more-->.

It also fixes a pre-existing broken internal link caught by the link checker.

Changes

  • configured Eleventy front matter excerpts to use <!--more-->
  • stopped using templateContent for collection excerpts in list templates
  • added a shared summary.njk partial for summary rendering
  • removed the old custom excerpt filter
  • made truncate tolerate empty values
  • fixed a broken internal blog link in dashboard-0-1-release.md

Why

This preserves the current editorial workflow where <!--more--> defines the excerpt, while making it compatible with Eleventy 3.

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

@Yndira-E Yndira-E requested a review from hardillb March 17, 2026 11:25
@hardillb hardillb merged commit 7276e77 into dependabot/npm_and_yarn/multi-b20e0c6c7f Mar 17, 2026
1 of 2 checks passed
@hardillb hardillb deleted the yndira/fix-eleventy-excerpts branch March 17, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants