summaryrefslogtreecommitdiff
path: root/repo/www/template.html
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-08-28 19:06:45 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-08-28 22:25:00 +0200
commit63a248e3dd9fc6857098c75ffbd49f72cf362c13 (patch)
tree40f67826a7d4f955136e8f8bc01121513139d8a5 /repo/www/template.html
parentd0d869e06b30a1f8b7b539978caa0ed6123f9864 (diff)
downloadmemory-leaks-63a248e3dd9fc6857098c75ffbd49f72cf362c13.tar.xz
Make sure titles are not redundant with breadcrumbs
The logic for the various titles on any given page is: ∃README ∃title block <title> ⇒ title block <header> <h1> ⇒ title block TOC <h1> ⇒ "Index for {target}" ∄title block <title> ⇒ "{target}" or "README" <header> <h1> ⇒ ∅ TOC <h1> ⇒ "Index for {target}" ∄README <title> ⇒ "Index for {target}" <header> <h1> ⇒ "Index" TOC <h1> ⇒ ∅
Diffstat (limited to 'repo/www/template.html')
-rw-r--r--repo/www/template.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/repo/www/template.html b/repo/www/template.html
index f2b308d..3417e93 100644
--- a/repo/www/template.html
+++ b/repo/www/template.html
@@ -31,14 +31,15 @@ $endfor$
$for(include-before)$
$include-before$
$endfor$
-$if(title)$
<header id="title-block-header">
<nav class="breadcrumb" aria-label="Breadcrumb">
<ol>
$crumbs$
</ol>
</nav>
+$if(title)$
<h1 class="title">$title$</h1>
+$endif$
$if(subtitle)$
<p class="subtitle">$subtitle$</p>
$endif$
@@ -49,7 +50,6 @@ $if(date)$
<p class="date">$date$</p>
$endif$
</header>
-$endif$
$if(toc)$
<nav id="$idprefix$TOC" role="doc-toc">
$if(toc-title)$