fix(article): related contents is showing hidden post

This commit is contained in:
Ahmad Yasser 2020-11-06 11:10:30 +08:00 committed by GitHub
parent be416830ad
commit a3f1d84c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,9 +5,11 @@
<div class="related-contents">
<div class="flex article-list--tile">
{{ range . }}
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
{{ if not .Params.hidden }}
{{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "articleList") }}
{{ end }}
{{ end }}
</div>
</div>
{{ end }}
</aside>
</aside>