summaryrefslogtreecommitdiffstats
path: root/themes
diff options
context:
space:
mode:
Diffstat (limited to 'themes')
-rw-r--r--themes/danix-xyz-hacker/layouts/partials/sidebar.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/danix-xyz-hacker/layouts/partials/sidebar.html b/themes/danix-xyz-hacker/layouts/partials/sidebar.html
index 574eb85..0d1b802 100644
--- a/themes/danix-xyz-hacker/layouts/partials/sidebar.html
+++ b/themes/danix-xyz-hacker/layouts/partials/sidebar.html
@@ -7,8 +7,8 @@
</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>