Skip to content

Instantly share code, notes, and snippets.

@cod3beat
Created November 20, 2013 10:19
Show Gist options
  • Save cod3beat/7560874 to your computer and use it in GitHub Desktop.
Save cod3beat/7560874 to your computer and use it in GitHub Desktop.
Tambah disqus ke ghost template
// # 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;
// 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')
};
},
var disqus_shortname = '{{@blog.disqus}}'; // required:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment