hide related section if no related articles
This commit is contained in:
parent
9f75eb3378
commit
4fa759d2c8
|
@ -6,6 +6,7 @@
|
||||||
) "Params.tags" "intersect" .Params.tags
|
) "Params.tags" "intersect" .Params.tags
|
||||||
) "Permalink" "ne" .Permalink
|
) "Permalink" "ne" .Permalink
|
||||||
}}
|
}}
|
||||||
|
{{ if $postsList }}
|
||||||
{{ if site.Params.randomRelated | default false }}
|
{{ if site.Params.randomRelated | default false }}
|
||||||
{{ $postsList = shuffle $postsList }}
|
{{ $postsList = shuffle $postsList }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -19,3 +20,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue