only show comments on non-pages, and add noscript text

This commit is contained in:
mxmehl committed 2019-10-17 01:15:53 +02:00
1 parent dcd79bb343
commit cdd5d40236
2 files changed
+11 -1

No files matched your search

@@ -2,7 +2,6 @@ $(document).ready(function() {
// check if we show a blog post or not. Regex is defined in site-wide config
var patt = new RegExp(BlogRegex);
console.log(patt);
var isArticle = patt.test(RelPermalink);
if (isArticle === false) {
console.log("Not a blog post, no need to search for comments");