Skip to content

Commit 5cb9500

Browse files
committed
added special quotes
1 parent 4e1ca0d commit 5cb9500

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

.DS_Store

0 Bytes
Binary file not shown.

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2284,6 +2284,10 @@ function parseBlockHTML(block, pageHTML, prevType) {
22842284
return pageHTML += "<br />"
22852285
let pText = formatRichText(block['paragraph'].text)
22862286
return pageHTML += `<p>${pText}</p>`
2287+
case 'callout':
2288+
// For a boxed quote
2289+
let specialQuote = formatRichText(block['callout'].text)
2290+
return pageHTML += `<p class="specialquote">${specialQuote}</p>`
22872291
case 'quote':
22882292
// For a caption
22892293
let quoteText = formatRichText(block['quote'].text)

public/.DS_Store

0 Bytes
Binary file not shown.

public/templates/.DS_Store

0 Bytes
Binary file not shown.

public/templates/blog/post.hbs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@
2929
margin-bottom: 2em;
3030
background-color: white;
3131
}
32+
33+
.specialquote{
34+
border: 2px dotted blue;
35+
padding: 1.4em;
36+
font-size: 1em;
37+
}
3238
</style>
3339

3440
<script src="/jquery-3.6.0.min.js"></script>

0 commit comments

Comments
 (0)