summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-08-10 03:22:20 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-08-10 03:22:20 (EDT)
commit06c3d1a57a2842a5360dc2feb00af3098142b4d7 (patch)
tree8862caa11be196be9a72c58b336ca1c2746bd709
parentc0edd7e3b41aa0dcf511718079893a20bcd34127 (diff)
Fix IS_INDEX logic in template.
-rw-r--r--include/document.tmpl4
-rw-r--r--scripts/MarkdownBook/Book.pm2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/document.tmpl b/include/document.tmpl
index cb8fde4..1f914cd 100644
--- a/include/document.tmpl
+++ b/include/document.tmpl
@@ -4,9 +4,9 @@
<head>
<meta charset="utf-8">
<TMPL_IF NAME="IS_INDEX">
- <title><TMPL_VAR NAME="BOOK_TITLE"> - <TMPL_VAR NAME=TITLE></title>
-<TMPL_ELSE>
<title><TMPL_VAR NAME="BOOK_TITLE"></title>
+<TMPL_ELSE>
+ <title><TMPL_VAR NAME="BOOK_TITLE"> - <TMPL_VAR NAME="TITLE"></title>
</TMPL_IF>
<link type="text/css" rel="stylesheet" href="main.css">
<link rel="start" href="index.html">
diff --git a/scripts/MarkdownBook/Book.pm b/scripts/MarkdownBook/Book.pm
index f2d723a..fd43041 100644
--- a/scripts/MarkdownBook/Book.pm
+++ b/scripts/MarkdownBook/Book.pm
@@ -161,7 +161,7 @@ sub write_templated_documents
foreach $doc (@{$self->{'docs'}}) {
$doc_tmpl->param(
- IS_INDEX => (ref($doc_tmpl) eq 'MarkdownBook::Document::Index'));
+ IS_INDEX => (ref($doc) eq 'MarkdownBook::Document::Index'));
$doc_tmpl->param(BOOK_TITLE => $self->{'title'});
$doc_tmpl->param(TITLE => $doc->title());