Add type check: widget now only renders when .Type == 'articles'
Pages in the 'is' section won't show the related widget.
Co-Authored-By: Claude Haiku 4.5 <redacted>
</p>
</div>
- <!-- Related posts widget (optional) -->
- {{ if .Site.Params.relatedPosts }}
+ <!-- Related posts widget (articles only) -->
+ {{ if and .Site.Params.relatedPosts (eq .Type "articles") }}
{{ $related := first 5 (.Site.RegularPages.Related .) }}
<div class="p-4 border border-border/30 rounded mb-6">
<h3 class="text-lg font-semibold text-accent mb-3">{{ i18n "relatedPosts" }}</h3>