Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Eternally Elated

DrummerHead DrummerHead

💭
Eternally Elated
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.