diff --git a/layouts/index.html b/layouts/index.html
index 6f37a5f..4aecdd4 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -20,34 +20,7 @@
{{/* pagination */}}
{{ range $pagination }}
-
-
-
-
-
- {{ .Date.Format "2006-01-02" }}
- {{ if .Params.tags }}
- |
-
- {{ range .Params.tags }}
- #{{ . }}
- {{ end }}
- {{ end }}
-
- {{ if .Site.Params.imageInArticlePreview }}
- {{ if .Params.Image }}
-
- {{ end }}
- {{end}}
-
-
{{ .Summary }}
-
Continue reading
-
-
-
-
+ {{- partial "article_card.html" . -}}
{{ end }}
+
+
+
+
+ {{ .Date.Format "2006-01-02" }}
+ {{ if .Params.tags }}
+ |
+
+ {{ range .Params.tags }}
+ #{{ . }}
+ {{ end }}
+ {{ end }}
+
+ {{ if .Site.Params.imageInArticlePreview }}
+ {{ if .Params.Image }}
+
+ {{ end }}
+ {{end}}
+
+
{{ .Summary }}
+
Continue reading
+
+
+
+
diff --git a/layouts/partials/related_articles.html b/layouts/partials/related_articles.html
index 2faad2f..2379fb6 100644
--- a/layouts/partials/related_articles.html
+++ b/layouts/partials/related_articles.html
@@ -1,40 +1,16 @@
{{ if and (.Site.Params.enableRelatedArticles | default false) .Params.tags }}
+ {{ $postsList :=
+ where (
+ where site.RegularPages "Params.tags" "!=" nil
+ ) "Params.tags" "intersect" .Params.tags
+ }}