diff options
author | ache <ache@ache.one> | 2022-12-10 08:15:44 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2022-12-10 08:15:44 +0100 |
commit | 045b3f3c21bf9c0f9b728fe14ce75e4d2a90944a (patch) | |
tree | f1ffd05522f351eba8561410548b404e10cfa23a /src/build/index.mjs | |
parent | Show date on each article (diff) |
First implementation of Likes
Diffstat (limited to 'src/build/index.mjs')
-rw-r--r-- | src/build/index.mjs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build/index.mjs b/src/build/index.mjs index a8fac14..54a0b02 100644 --- a/src/build/index.mjs +++ b/src/build/index.mjs @@ -103,6 +103,7 @@ const loadMD = (listFile, suffix) => { }; const leftPanelTmpl = fs.readFileSync('src/templates/left.tmpl', 'utf8'); +const likesTmpl = fs.readFileSync('src/templates/likes.tmpl', 'utf8'); const headerTmpl = fs.readFileSync('src/templates/header.tmpl', 'utf8'); const articleTmpl = fs.readFileSync('src/templates/article.tmpl', 'utf8'); const indexTmpl = fs.readFileSync('src/templates/index.tmpl', 'utf8'); @@ -113,13 +114,12 @@ const baseUrl = 'https://ache.one/'; const partials = { header: headerTmpl, leftPanel: leftPanelTmpl, + likesButton: likesTmpl, hid: hidTmpl, }; const svg = loadSVG(); - const articles = loadMD(listArticles, 'articles'); - const tagsArticle = new Map(); for (const article of articles) { |