Created
November 20, 2013 10:19
-
-
Save cod3beat/7560874 to your computer and use it in GitHub Desktop.
Tambah disqus ke ghost template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// # Ghost Configuration | |
// Setup your Ghost install for various environments | |
var path = require('path'), | |
config; | |
config = { | |
disqus: 'idjsblog', // DISQUS SHORTNAME | |
// sisanya | |
}; | |
// Export config | |
module.exports = config; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// kalo tidak salah ini dibaris 89 | |
blogGlobals: function () { | |
/* this is a bit of a hack until we have a better way to combine settings and config | |
* this data is what becomes globally available to themes */ | |
return { | |
disqus: config.disqus, // ini yang berubah | |
url: instance.config().url, | |
title: instance.settings('title'), | |
description: instance.settings('description'), | |
logo: instance.settings('logo'), | |
cover: instance.settings('cover') | |
}; | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment