Skip to content

Commit

Permalink
Merge pull request #199 from howl-editor/blog-comments
Browse files Browse the repository at this point in the history
Add disqus comments to blog pages
  • Loading branch information
shalabhc committed May 29, 2016
2 parents 9a90bad + 1a91f69 commit 5fcf229
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions site/source/layouts/blog_layout.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,10 @@

= preserve yield

.comments
%div#disqus_thread
! <script>var disqus_config = function () { this.page.url = 'https://howl.io#{current_resource.url}'; this.page.identifier = '#{current_resource.request_path}';};(function() { var d = document, s = d.createElement('script'); s.src = '//howleditor.disqus.com/embed.js'; s.setAttribute('data-timestamp', +new Date()); (d.head || d.body).appendChild(s); })();</script>
! <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

- else
= preserve yield
4 changes: 4 additions & 0 deletions site/source/stylesheets/howl.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -467,3 +467,7 @@ iframe {
max-height: 315px;
}
}

.comments {
margin-top: 3em;
}

0 comments on commit 5fcf229

Please sign in to comment.