Skip to content

Commit dc21dc1

Browse files
sjh26claude
andcommitted
Fix AI category heading suppressed by project titles containing category name
The heading check used a substring match on the full accumulated categories string, so a project title like "AI driven interface for SlicerTMS" (in the IGT and Training section) would prevent the "### AI" heading from ever being generated. Fix by checking for the full heading string "### <category>" instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent bc4932e commit dc21dc1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

_includes/project_generate_category.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
{% if page.project_categories contains pw_page_category %}
4747

4848
{% comment %}If if applies, add catergory header.{% endcomment %}
49-
{% unless categories contains pw_page_category %}
49+
{% assign category_heading = "### " | append: pw_page_category %}
50+
{% unless categories contains category_heading %}
5051
{% capture categories %}
5152
{{ categories }}
5253
### {{ pw_page_category }}

0 commit comments

Comments
 (0)