calraijintaiko/caltaiko

View on GitHub
app/views/articles/show.html.haml

Summary

Maintainability
Test Coverage
:ruby
  title = @article.title
  description = @article.snippet
  image = URI.join(root_url, image_path('logo.png'))

  meta title: title, description: description,
       og: { title: title, description: description, image: image,
             url: request.original_url }

= render 'show', article: @article

.comments.row
  .column.small-12
    #disqus_thread
      :javascript
        var disqus_shortname = 'caltaiko';

        /* * * DON'T EDIT BELOW THIS LINE * * */
        (function() {
        var dsq = document.createElement('script');
        dsq.type = 'text/javascript'; dsq.async = true;
        dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
        (document.getElementsByTagName('head')[0] ||
        document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();

      %noscript Please enable JavaScript to view the comments

      %a.dsq-brlink{ href: 'http://disqus.com' } Comments powered by Disqus