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 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>  
      
      <span py:for="article in articles">
        <article  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="article.short_comment" class='shortcomments'>
            <a href="$article.comment_thread_link##disqus_thread" 
               data-disqus-identifier="$article.article_id">Comments</a>
          </div> 

          <div py:if="article.long_comment" 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>
      </span>
      <nav class="blogs">
        <a href='/' class='menu_link'>- index -</a>
        <a href='/rss.xml' class='menu_link'>RSS Feed</a>
        <h4>My recent posts</h4>
        
        <a py:for="article in articles" href='$article.article_url' class='menu_link'>$article.article_title</a>

      </nav>
      
      <footer class="page">
        <p class="fineprint">$footer</p>
      </footer>

    </section>
    
    <!-- Add JavaScript after this point, it makes the page load faster when client does not need to interpret JS at start -->
    <script 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 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>