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 1f7c0cc commit 56d258cCopy full SHA for 56d258c
scripts/generateThoughts.ts
@@ -5,6 +5,8 @@ import { format as dateFormat } from 'date-fns';
5
6
import findInDir from './findInDir';
7
8
+const ARTICLES_TO_SHOW = 5;
9
+
10
console.log('/// Beginning generation of thoughts');
11
12
const templates = findInDir('./templates', '.html');
@@ -107,7 +109,7 @@ let blockToPaste = '';
107
109
108
110
articlesGenerated.sort((a, b) => b.dateNum - a.dateNum); // most-recent first
111
-for (let i = 0; i < Math.min(2, articlesGenerated.length); i++) {
112
+for (let i = 0; i < Math.min(ARTICLES_TO_SHOW, articlesGenerated.length); i++) {
113
blockToPaste =
114
blockToPaste +
115
`${repeatableBlock}`
0 commit comments