<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Language" content="en" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="generator" content="<% ref $calendar |h %> v<% $calendar->VERSION |h%>" />
    <link rel="alternate" title="<% $calendar->title |h %> XML feed" href="atom.xml" type="application/atom+xml" />
    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" href="style.css" type="text/css" />
% for ($calendar->css_hrefs) {
    <link rel="stylesheet" href="<% $_ |h %>" type="text/css" />
% }
    <title><& SELF:title, %ARGS &></title>
</head>
<body>
    <div id="contentwrapper">
        <div id="header">
            <h1><a href="index.html"><% $calendar->title |h %></a></h1>
        </div>

        <p id="tagline"><% $calendar->tagline // '' |h %>
          <a class='feed' href="atom.xml">Feed</a>
        </p>

        <div id="content">
          <& SELF:content, %ARGS &>
        </div>
    </div>
% if ($tracker_id) {
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("<% $tracker_id %>");
pageTracker._trackPageview();
} catch(err) {}</script>
% }
</body>
</html>

<%method title>
% my $subtitle = $m->scomp('SELF:subtitle', %ARGS);
% $subtitle = " - $subtitle" if ($subtitle||'') =~ /\S/;
<% $calendar->title |h %><% $subtitle %>
</%method>

<%method subtitle></%method>

<%args>
$article    => undef
$tracker_id => undef
</%args>
