diff options
author | Chris Xiong <chirs241097@gmail.com> | 2024-02-28 23:20:32 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2024-02-28 23:20:32 -0500 |
commit | 23325bdab3108c42f0157625f995b532a13096c7 (patch) | |
tree | b387b47af065d7c2fda5e8afd3d1946d3c22d76e /generator/scanner.js | |
parent | 42b38863761f8258781406469505f0ac1c27ac54 (diff) | |
download | sbs-23325bdab3108c42f0157625f995b532a13096c7.tar.xz |
Um... Version bump anybody?
- Corrected treatment of "WIP" and "UNLISTED" posts.
- Add wrapper for make4ht.
- Improved html5 compliance (still not fully compliant tho).
- Node 22 compatibility.
Diffstat (limited to 'generator/scanner.js')
-rw-r--r-- | generator/scanner.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generator/scanner.js b/generator/scanner.js index 52744a4..c8c1069 100644 --- a/generator/scanner.js +++ b/generator/scanner.js @@ -34,18 +34,21 @@ function _scan(s,dst) mdate:fs.statSync(path.join(s,i)).mtimeMs, needsupdate:!util.mtime_cmp(path.join(s,i),path.join(pdst,i.substring(0,i.length-4)+'.html')) }); - + } return list; } function _build_list_index() { for(let i of list) + { + if (i.date.indexOf('UNLISTED') != -1) continue; for(let tg of i.tags.split(',')) { if(!tags[tg])tags[tg]={posts:[],needsupdate:false}; tags[tg].posts.push(i); tags[tg].needsupdate|=i.needsupdate; } + } return tags; } |