Skip to content

Commit eb120e0

Browse files
authored
fix(route/Visionias): weekly feed template fix (#19597)
* add more routes * use flatMap * fix the template miss during build * fix the template miss during build
1 parent 81a26f3 commit eb120e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/routes/visionias/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export async function extractNews(item, selector) {
3737
?.nextAll('li')
3838
.toArray()
3939
.map((tag) => $$(tag).text());
40-
const description = art(path.join(__dirname, `templates/description.art`), {
40+
const description = art(path.join(__dirname, 'templates/description.art'), {
4141
heading: title,
4242
articleContent: htmlContent,
4343
});
@@ -71,13 +71,13 @@ export async function extractNews(item, selector) {
7171
const mainDiv = $$(element);
7272
const title = mainDiv.find('a > div > h2').text().trim();
7373
const htmlContent = extractArticle(mainDiv.html(), 'div.ck-content');
74-
const description = art(path.join(__dirname, `templates/description-sub.art`), {
74+
const description = art(path.join(__dirname, 'templates/description-sub.art'), {
7575
heading: title,
7676
articleContent: htmlContent,
7777
});
7878
return { description };
7979
});
80-
const description = art(path.join(__dirname, `templates/description.art`), {
80+
const description = art(path.join(__dirname, 'templates/description.art'), {
8181
heading,
8282
subItems: items,
8383
});

0 commit comments

Comments
 (0)