diff --git a/layouts/partials/article/components/related-contents.html b/layouts/partials/article/components/related-contents.html index 1265387..94063ef 100644 --- a/layouts/partials/article/components/related-contents.html +++ b/layouts/partials/article/components/related-contents.html @@ -1,5 +1,5 @@ <aside class="related-contents--wrapper"> - {{ $related := .Site.RegularPages.Related . | first 5 }} + {{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }} {{ with $related }} <h2 class="section-title">{{ T "relatedContents" }}</h2> <div class="related-contents"> @@ -10,4 +10,4 @@ </div> </div> {{ end }} -</aside> \ No newline at end of file +</aside>