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

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

View File

@@ -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");