refactor: drop support for hidden field in front matter

This commit is contained in:
Jimmy Cai
2022-06-12 11:42:35 +00:00
committed by GitHub
parent 6e5956b905
commit e5f3cb11d5
8 changed files with 8 additions and 23 deletions
@@ -1,4 +1,4 @@
{{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<aside class="related-content--wrapper">
<h2 class="section-title">{{ T "article.relatedContent" }}</h2>