diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2011-03-12 15:45:53 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2011-03-12 15:45:53 +0100 |
commit | 9c1d0dd3041f1a062f2d9708c0dc6eaa7f089c80 (patch) | |
tree | 17e3f101f557ae049454038a7d1a1a38feb5f208 /templates | |
parent | 7d9f81622846a5d775703b765819d887f23dd29c (diff) |
Calculate the number of comments for each article. Add Google Code Prettify.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/article.html | 4 | ||||
-rw-r--r-- | templates/journal_page.html | 7 | ||||
-rw-r--r-- | templates/page_skeleton.html | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/templates/article.html b/templates/article.html index 61cc9de..8be086b 100644 --- a/templates/article.html +++ b/templates/article.html @@ -1,4 +1,5 @@ <article> +<div class="article"> <h1><a href="{link|html-attr-value}">{title|html}</a></h1> <div class="article-header"> @@ -32,10 +33,11 @@ <a href="{comments-link|html-attr-value}">{comments-label|html}</a> </footer> </div> +</div> </article> {.section commentary} -<div class="comments"> +<div class="comments" id="comments"> <h2>{comments-heading|html}</h2> {.repeated section comments} diff --git a/templates/journal_page.html b/templates/journal_page.html index d567d2f..828ec31 100644 --- a/templates/journal_page.html +++ b/templates/journal_page.html @@ -1,6 +1,9 @@ {.section head} -<link rel="stylesheet" type="text/css" - href="{root|html-attr-value}/style/journal.css" /> + <link rel="stylesheet" type="text/css" + href="{root|html-attr-value}style/journal.css" /> + <link href="/journal/prettify/prettify.css" rel="stylesheet" type="text/css" /> + <script type="text/javascript" src="/journal/prettify/prettify.js"></script> + <script type="text/javascript" src="/journal/prettify/lang-lisp.js"></script> {.end} {.section body} diff --git a/templates/page_skeleton.html b/templates/page_skeleton.html index daa8781..842b617 100644 --- a/templates/page_skeleton.html +++ b/templates/page_skeleton.html @@ -8,7 +8,7 @@ {head} </head> - <body> + <body onload="if (prettyPrint) prettyPrint();"> {body} </body> </html> |