Skip to content

Instantly share code, notes, and snippets.

Eternally Elated

DrummerHead DrummerHead

Eternally Elated
Block or report user

Report or block DrummerHead

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ythecombinator /
Created May 27, 2015
Simple tip for adding "Disqus" comments for Hexo.

In the footer of your theme (something like footer.ejs) you should add Disqus script:

<% if (config.disqus_shortname){ %>
  var disqus_shortname = '<%= config.disqus_shortname %>';
  <% if (page.permalink){ %>
  var disqus_url = '<%= config.url +"/"+ page.path %>';
  <% } %>
You can’t perform that action at this time.