99 | ${posts &&
100 | (posts.length === 0
101 | ? html`
102 |
134 |
103 |
109 |
115 | `
116 | : posts
117 | .filter(([k, v]) =>
118 | k.toLowerCase().match(searchTerm.toLowerCase())
119 | )
120 | .sort(([k, v], [k1, v1]) =>
121 | +new Date(v.mtime) > +new Date(v1.mtime) ? -1 : 0
122 | )
123 | .map(
124 | (x) =>
125 | html`
126 | <${linkToArticle}
127 | data=${x}
128 | key=${x[0]}
129 | dispatch=${dispatch}
130 | />
131 | `
132 | ))}
133 |
110 | Add a markdown file to the posts directory and run ${' '}node make
${' '} from the project root.
113 |