We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a287a37 commit 8bfbcb0Copy full SHA for 8bfbcb0
src/templates/blog-post.js
@@ -107,7 +107,13 @@ function BlogPostTemplate({ data }) {
107
let count = 0;
108
tags.forEach((tag) => {
109
blogsByTags.forEach((n) => {
110
- if (n.node.frontmatter.tags.includes(tag) && count <8 && !k.includes(n.node.id) && n.node.frontmatter.authorimage && n.node.frontmatter.author) {
+ if (
111
+ n.node.frontmatter.tags.includes(tag) &&
112
+ count < 8 &&
113
+ !k.includes(n.node.id) &&
114
+ n.node.frontmatter.authorimage &&
115
+ n.node.frontmatter.author
116
+ ) {
117
count += 1;
118
k.push(n.node.id);
119
node.push(n.node);
0 commit comments