Skip to content

Commit 27f0448

Browse files
committed
preserve hardcoded markdown content in TOC files
1 parent 5d03537 commit 27f0448

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

layouts/generic-toc.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ <h1 class="border-bottom-0">{{ page.title }}</h1>
4545
{% include featured-links %}
4646
{% endif %}
4747

48+
{{ renderedPage }}
49+
4850
{% include generic-toc-items %}
4951
</div>
5052
</div>

script/content-migrations/update-tocs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ indexFiles
7373
}
7474

7575
// Index files should no longer have body content, so we write an empty string
76-
fs.writeFileSync(indexFile, frontmatter.stringify('', data, { lineWidth: 10000 }))
76+
fs.writeFileSync(indexFile, frontmatter.stringify(content, data, { lineWidth: 10000 }))
7777
})
7878

7979
function getLinks (linkItemArray) {

0 commit comments

Comments
 (0)