Skip to main content
Iain Davis
Software Engineer, Principal @ IainDavis.dev
View all authors

Fixing Blog-Post Truncation

· 3 min read
Iain Davis
Software Engineer, Principal @ IainDavis.dev

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 -->

How I Automated My LinkedIn Posts

· 2 min read
Iain Davis
Software Engineer, Principal @ IainDavis.dev

One of the first things my outplacement coach told me was that I ought to be posting to LinkedIn regularly. I knew I wanted to have updates specific to this website here on my blog, and I figured I'd just have to cross-post them manually.

It turns out that's not so!

Fixing Diffs

· 4 min read
Iain Davis
Software Engineer, Principal @ IainDavis.dev

In my last blog post, I used a diff to show how my SVG files had changed.

For those who don't know a diff is an operation on two files that shows a graphical representation of how one is different than the other.

They look like this:

on the command linein a nice UI like GitHub
Screen capture showing a command-line diffScreen capture showing a diff in GitHub

Catch-Up Post

· 3 min read
Iain Davis
Software Engineer, Principal @ IainDavis.dev

This post is a catch-up post to explain the purpose of this website, and how I got to this point. Going forward, I intend to post whatever is going on with development of this website here.