Source

blaag / templates / page_template.xhtml

Full commit
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/">
<head>
  <title>$page_title</title>
  <meta charset="UTF-8" />
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link py:for="css in css_files" rel="stylesheet" type="text/css" href="$css" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
  <meta name="description" content="$page_title"/>
  <meta name="author" content="$author" />
</head>
<body>

    <section class="page">
      <header class="page">
        <h1>$blaag_title</h1>  
      </header>  
      <div class="blurbs">
        <a href='/rss.xml' class='menu_link centered'>RSS Feed</a>
        <span py:if="blurbs">
          $blurbs
        </span>
      </div>
      <div class='blog'>
        <article py:for="article in articles" id="$article.article_id" class="blog box">
          <div class="document" id="$article.article_id">
            $article.body
          </div>
          
          <div class='timestamp'>
            Blaag created $article.timestamp
          </div>
          
          
          <div py:if="short_comments" class='shortcomments'>
            <a href="$article.comment_thread_link#disqus_thread" 
               data-disqus-identifier="$article.article_id">Comments</a>
          </div> 

          <div py:if="not short_comments" class='fullcomments'>
            <div id="disqus_thread"></div>
            <script type="text/javascript">
              /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
              var disqus_shortname = '$disqus';
              var disqus_identifier = '$article.article_id';
              /* * * DON'T EDIT BELOW THIS LINE * * */
              (function(d) {
              var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
              dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
              (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
        })();
            </script>
            <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
            <a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
          </div>
          

        </article>

       <footer py:if="footer" class="page">
          <p class="fineprint">$footer</p>
        </footer>
         
</div>
      <nav class="blogs">
        <a href='/' class='menu_link'>- index -</a>
        
        <h4>My recent posts</h4>
        
        <a py:for="article in all_articles" href='$article.article_url' class='menu_link'>$article.article_title</a>

      </nav>

    </section>
    
    <!-- Add JavaScript after this point, it makes the page load faster when client does not need to interpret JS at start -->
    <script py:if="google_analytics" type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', '$google_analytics']);
      _gaq.push(['_trackPageview']);
      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>

    <script py:if="disqus" type="text/javascript">
      var  disqus_shortname = '$disqus'; 
      (function () {
        var s = document.createElement('script'); s.async = true;
        s.type = 'text/javascript';
        s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
        (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
      }());
    </script>

</body>
</html>