/g,'');
- for(let taggedSnippet of Object.entries(tagDbData).filter(v => v[1] === tag))
- output += '' + md.render(`\n${snippets[taggedSnippet[0]+'.md']}`).replace(//g,'
') + '
';
+ if(capitalize(tag, true)=='Uncategorized') {
+ uncategorizedOutput +=md.render(`## ${capitalize(tag, true)}\n`).replace(//g,'');
+ for(let taggedSnippet of Object.entries(tagDbData).filter(v => v[1] === tag))
+ uncategorizedOutput += '' + md.render(`\n${snippets[taggedSnippet[0]+'.md']}`).replace(//g,'
') + '
';
+ } else {
+ output +=md.render(`## ${capitalize(tag, true)}\n`).replace(//g,'');
+ for(let taggedSnippet of Object.entries(tagDbData).filter(v => v[1] === tag))
+ output += '' + md.render(`\n${snippets[taggedSnippet[0]+'.md']}`).replace(//g,'
') + '
';
+ }
}
+ output += uncategorizedOutput;
// Add the ending static part
output += `\n${endPart+'\n'}`;
// Minify output
/g,'
'; + if(capitalize(tag, true)=='Uncategorized') { + uncategorizedOutput +=md.render(`## ${capitalize(tag, true)}\n`).replace(/
/g,'');
+ for(let taggedSnippet of Object.entries(tagDbData).filter(v => v[1] === tag))
+ uncategorizedOutput += '' + md.render(`\n${snippets[taggedSnippet[0]+'.md']}`).replace(//g,'
') + '
';
+ } else {
+ output +=md.render(`## ${capitalize(tag, true)}\n`).replace(//g,'');
+ for(let taggedSnippet of Object.entries(tagDbData).filter(v => v[1] === tag))
+ output += '' + md.render(`\n${snippets[taggedSnippet[0]+'.md']}`).replace(//g,'
') + '
';
+ }
}
+ output += uncategorizedOutput;
// Add the ending static part
output += `\n${endPart+'\n'}`;
// Minify output
/g,'
'; + } else { + output +=md.render(`## ${capitalize(tag, true)}\n`).replace(/
/g,'');
+ for(let taggedSnippet of Object.entries(tagDbData).filter(v => v[1] === tag))
+ output += '' + md.render(`\n${snippets[taggedSnippet[0]+'.md']}`).replace(//g,'
') + '
';
+ }
}
+ output += uncategorizedOutput;
// Add the ending static part
output += `\n${endPart+'\n'}`;
// Minify output
/g,'
'; + } } + output += uncategorizedOutput; // Add the ending static part output += `\n${endPart+'\n'}`; // Minify output