summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-02-15 15:48:11 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2023-02-15 15:48:11 -0800
commit5889d70a97c142805c34faf42fd0f933df9e3bdc (patch)
tree6d7016a16d79d3fe4bb35e0b3919125bb792d5f9 /data/templates
parentfd3b955fe5094478d1bcbc3e91c82e3099f54516 (diff)
Retain metadata in processing sections for chunked HTML.
Previously we suppressed metadata in all but the top page, in order to prevent the title block from being printed on every page. This prevented use of custom variables set by metadata fields. This commit moves to a better solution: a conditional in the default template restricts the title block to the top page. Closes #8620.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/default.chunkedhtml4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/default.chunkedhtml b/data/templates/default.chunkedhtml
index 7101c9587..4608e1208 100644
--- a/data/templates/default.chunkedhtml
+++ b/data/templates/default.chunkedhtml
@@ -63,6 +63,9 @@ $endif$
</span>
</div>
</nav>
+$if(top)$
+$-- only print title block if this is NOT the top page
+$else$
$if(title)$
<header id="title-block-header">
<h1 class="title">$title$</h1>
@@ -81,6 +84,7 @@ $if(abstract)$
$abstract$
</div>
$endif$
+$endif$
</header>
$endif$
$if(toc)$