Merge branch 'master' into template-search

This commit is contained in:
Jimmy Cai 2020-11-06 12:09:23 +01:00 committed by GitHub
commit a81dac7bb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<aside class="related-contents--wrapper"> <aside class="related-contents--wrapper">
{{ $related := .Site.RegularPages.Related . | first 5 }} {{ $related := (where (.Site.RegularPages.Related .) "Params.hidden" "!=" true) | first 5 }}
{{ with $related }} {{ with $related }}
<h2 class="section-title">{{ T "relatedContents" }}</h2> <h2 class="section-title">{{ T "relatedContents" }}</h2>
<div class="related-contents"> <div class="related-contents">
@ -10,4 +10,4 @@
</div> </div>
</div> </div>
{{ end }} {{ end }}
</aside> </aside>