Fixing Blog-Post Truncation
· 3 min read
It's a best-practice in Docusaurus to include a truncation marker in your blog posts. That way, when you're looking at a list of posts, you just see a brief introduction from each post, instead of the full content of the first post pushing the second post clear off the page.
It's where all those "Read more" links are coming from on the main page for my blog.
The default truncation marker for markdown files looks like this:
<!-- truncate -->