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
ythecombinator / add_disqus_hexo.md
Created May 27, 2015
Simple tip for adding "Disqus" comments for Hexo.
View add_disqus_hexo.md

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

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