removed same article from related
This commit is contained in:
parent
0c80aa9ee5
commit
e7257ec518
|
@ -1,8 +1,10 @@
|
||||||
{{ if and (.Site.Params.enableRelatedArticles | default false) .Params.tags }}
|
{{ if and (.Site.Params.enableRelatedArticles | default false) .Params.tags }}
|
||||||
{{ $postsList :=
|
{{ $postsList :=
|
||||||
where (
|
where (
|
||||||
where site.RegularPages "Params.tags" "!=" nil
|
where (
|
||||||
) "Params.tags" "intersect" .Params.tags
|
where site.RegularPages "Params.tags" "!=" nil
|
||||||
|
) "Params.tags" "intersect" .Params.tags
|
||||||
|
) "Permalink" "ne" .Permalink
|
||||||
}}
|
}}
|
||||||
<div class="relatedArticlesContainer">
|
<div class="relatedArticlesContainer">
|
||||||
<hr />
|
<hr />
|
||||||
|
|
Loading…
Reference in New Issue