Skip to content

Commit 816fce8

Browse files
committed
For banner style title blocks, display description in banner
1 parent 97b6995 commit 816fce8

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

src/core/svg.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77

88
import { kFigHeight, kFigWidth } from "../config/constants.ts";
9-
import { isRevealjsOutput } from "../config/format.ts";
109
import { Element, getDomParser } from "./deno-dom.ts";
1110
import { EitherString, MappedString } from "./lib/text-types.ts";
1211
import { asMappedString, mappedDiff } from "./mapped-text.ts";

src/resources/formats/html/templates/banner/title-block.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ <h1 class="title">$title$</h1>
66
$if(subtitle)$
77
<p class="subtitle lead">$subtitle$</p>
88
$endif$
9+
$if(description)$
10+
<div>
11+
<div class="description">
12+
$description$
13+
</div>
14+
</div>
15+
$endif$
916
$if(categories)$
1017
$if(quarto-template-params.title-block-categories)$
1118
<div class="quarto-categories">

src/resources/formats/html/templates/title-block.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ <h1 class="title">$title$</h1>
1515
$endif$
1616
</div>
1717

18+
$if(description)$
19+
<div>
20+
<div class="description">
21+
$description$
22+
</div>
23+
</div>
24+
$endif$
25+
1826
$title-metadata.html()$
1927

2028
</header>

src/resources/formats/html/templates/title-metadata.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
$if(description)$
2-
<div>
3-
<div class="description">
4-
$description$
5-
</div>
6-
</div>
7-
$endif$
8-
91
$if(by-affiliation/first)$
102
<div class="quarto-title-meta-author">
113
<div class="quarto-title-meta-heading">$labels.authors$</div>
@@ -34,10 +26,6 @@
3426
</div>
3527
$endif$
3628

37-
38-
$if(by-author)$
39-
$endif$
40-
4129
<div class="quarto-title-meta">
4230

4331
$if(by-affiliation)$

0 commit comments

Comments
 (0)