mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
🐛 Fixed comments script always injected
refs https://ghost.slack.com/archives/C02G9E68C/p1660562592376769
This commit is contained in:
parent
23b37a68a6
commit
bad4f13c2f
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ module.exports = async function ghost_head(options) { // eslint-disable-line cam
|
|||
head.push(`<link rel="stylesheet" type="text/css" href="${getAssetUrl('public/cards.min.css')}">`);
|
||||
}
|
||||
|
||||
if (settingsCache.get('enable_comments') !== 'off') {
|
||||
if (settingsCache.get('comments_enabled') !== 'off') {
|
||||
head.push(`<script defer src="${getAssetUrl('public/comment-counts.min.js')}" data-ghost-comments-counts-api="${urlUtils.getSiteUrl(true)}members/api/comments/counts/"></script>`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue