Skip to content

Instantly share code, notes, and snippets.

@Reedyn

Reedyn/README.md Secret

Last active December 7, 2015 04:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Reedyn/1e1484be46ddb15aa0e0 to your computer and use it in GitHub Desktop.
Save Reedyn/1e1484be46ddb15aa0e0 to your computer and use it in GitHub Desktop.
  • Place the comments.hbs in the partials-folder (This file should contain your disqus code)
  • Replace post.hbs with the one in this gist.
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT AND UNCOMMENT THE SECTION BELOW TO INSERT DYNAMIC VALUES FROM YOUR PLATFORM OR CMS.
* LEARN WHY DEFINING THESE VARIABLES IS IMPORTANT: https://disqus.com/admin/universalcode/#configuration-variables
*/
/*
var disqus_config = function () {
this.page.url = PAGE_URL; // Replace PAGE_URL with your page's canonical URL variable
this.page.identifier = PAGE_IDENTIFIER; // Replace PAGE_IDENTIFIER with your page's unique identifier variable
};
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = '//DISQUS_URL_HERE.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>
{!< default}}
{{#post ~}}
<header id="header" class="animated fadeIn"{{#if image}} style="background-image: url({{image}})"{{/if}}>
<div class="header-background">
<section class="blog-content">
<a id="site-url" class="blog-title" href="{{@blog.url}}">{{@blog.title}}</a>
<span class="blog-description">{{@blog.description}}</span>
{{> links}}
</section>
<section class="header-content">
<h1 class="post-title animated fadeInUp">{{{title}}}</h1>
<span class="post-data"><span class="date animated fadeInUp"><i class="fa fa-clock-o"></i> <time class="timesince date" data-timesince="{{date format='X'}}" datetime="{{date format='YYYY-MM-DDTHH:mm'}}" title="{{date format='DD MMMM YYYY'}}">{{date published_at timeago='true'}}</time></span>
{{#if tags}}<span class="tags animated fadeInUp"><i class="fa fa-tags"></i> {{tags prefix="" separator=", "}}</span>{{/if}}
{{#author}}<span class="author animated fadeInUp"><i class="fa fa-user"></i> <a href="{{url}}">{{name}}</a></span>{{/author}}</span>
</section>
</div>
</header>
<main id="main" class="content">
<article itemtype="http://schema.org/BlogPosting" class="animated fadeIn content post {{post_class}}">
<section class="post-content">
{{content}}
</section>
<section class="post-comments" style="margin-top: 20px">
{{> comments}}
</section>
</article>
</main>
{{~/post}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment