Advertisement
Guest User

FastCometDisqus

a guest
Mar 2nd, 2014
840
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {{!< default}}
  2.  
  3. {{! The comment above "< default" means - insert everything in this file into
  4.     the {body} of the default.hbs template, which contains our header/footer. }}
  5.  
  6. <main class="content" role="main">
  7.  
  8.     <article class="{{post_class}}">
  9.  
  10.         {{! Each post has the blog logo at the top, with a link back to the home page }}
  11.         <header class="post-header">
  12.             <a class="blog-logo" href="{{@blog.url}}">
  13.                 {{#if @blog.logo}}
  14.                     <img src="{{@blog.logo}}" alt="Blog Logo" />
  15.                 {{else}}
  16.                     <span class="blog-title">{{@blog.title}}</span>
  17.                 {{/if}}
  18.             </a>
  19.         </header>
  20.  
  21.         {{! Everything inside the #post tags pulls data from the post }}
  22.         {{#post}}
  23.  
  24.             <span class="post-meta"><time datetime="{{date format="YYYY-MM-DD"}}">{{date format='DD MMM YYYY'}}</time> {{tags prefix="on " separator=" | "}}</span>
  25.  
  26.             <h1 class="post-title">{{{title}}}</h1>
  27.  
  28.             <section class="post-content">
  29.                 {{content}}
  30.             </section>
  31.  
  32.             <footer class="post-footer">
  33.  
  34.                 <section class="author">
  35.                     <h4>{{author.name}}</h4>
  36.                     <p>{{author.bio}}</p>
  37.                 </section>
  38.  
  39.                 <section class="share">
  40.                     <h4>Share this post</h4>
  41.                     <a class="icon-twitter" href="http://twitter.com/share?text={{encode title}}&url={{url absolute="true"}}"
  42.                         onclick="window.open(this.href, 'twitter-share', 'width=550,height=235');return false;">
  43.                         <span class="hidden">Twitter</span>
  44.                     </a>
  45.                     <a class="icon-facebook" href="https://www.facebook.com/sharer/sharer.php?u={{url absolute="true"}}"
  46.                         onclick="window.open(this.href, 'facebook-share','width=580,height=296');return false;">
  47.                         <span class="hidden">Facebook</span>
  48.                     </a>
  49.                     <a class="icon-google-plus" href="https://plus.google.com/share?url={{url absolute="true"}}"
  50.                        onclick="window.open(this.href, 'google-plus-share', 'width=490,height=530');return false;">
  51.                         <span class="hidden">Google+</span>
  52.                     </a>
  53.                 </section>
  54.  
  55.             </footer>
  56.  
  57.         {{/post}}
  58.        
  59.   <div id="disqus_thread"></div>
  60.     <script type="text/javascript">
  61.         /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  62.         var disqus_shortname = 'myblogghost'; // required: replace example with your forum shortname
  63.  
  64.         /* * * DON'T EDIT BELOW THIS LINE * * */
  65.         (function() {
  66.             var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  67.             dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
  68.             (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  69.         })();
  70.     </script>
  71.     <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
  72.     <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
  73.    
  74.     </article>
  75.  
  76. </main>
Advertisement
RAW Paste Data Copied
Advertisement