Skip to content

Instantly share code, notes, and snippets.

@fleetimee
Created August 5, 2022 19:35
Show Gist options
  • Save fleetimee/34a48af2f5c1d55d012464fa14496ea0 to your computer and use it in GitHub Desktop.
Save fleetimee/34a48af2f5c1d55d012464fa14496ea0 to your computer and use it in GitHub Desktop.
var disqus_config = function () {
// we are using document.location.* here because Jekyll code does not work well in JS code.
this.page.url = document.location.href;
this.page.identifier = document.location.pathname;
};
// You should be able to get the following lines of code from your Disqus admin.
// https://disqus.com/admin/universalcode
(function () {
// DON'T EDIT BELOW THIS LINE
var d = document,
s = d.createElement("script");
s.src = "//[your_username].disqus.com/embed.js";
s.setAttribute("data-timestamp", +new Date());
(d.head || d.body).appendChild(s);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment