How to Optimize for Safari Reader

Getting your blog post to play nicely with Safari Reader—my preferred way of consuming blogs—isn’t always obvious. This post documents my findings in how to optimize a blog for Safari Reader if you’re publishing outside of Medium (e.g. Jekyll).

Use the tag

Safari Reader will look for a couple of container tags, but for a blog post makes the most semantic sense. I recommend wrapping all content that you would want to appear in the reader. For example, You'll notice that my header image is inside of my tag, which informs Safari Reader to include it.

The title should be a tag

Additionally, it should be the first text-containing tag that is under the opening tag.

Write enough content

I haven’t diagnosed exactly how many words/characters are required to trigger the Safari Reader button, but I have noticed when there’s only one or two sentences on a page, it will not appear. Usually a chunky paragraph or two smaller ones is enough to trigger the button.

Properly format your byline

In order to get your name and publication date to properly appear in Safari Reader you’ll have to add a few bits of metadata to your HTML. Directly under the tag, you'll notice I have the following.

The property and tag will correctly format your byline. If
you're using Jekyll, you can template it like the following:

All together now

So you scrolled to the bottom of this in hopes to copy/paste the entire template. You’re in luck! Here’s the complete template for a Safari Reader optimized blog post for Jekyll, as used in a previous version of this website (extraneous tags and classes have been stripped for clarity).

Patrick is a software engineer from New England. Today, he resides in Seattle where he enjoys playing chess and ice hockey.