Skip to content
Make Your Ghost Blog Beautiful & Make It Fast & Accessible With the New Ghost Theme: Nubia 😍 🎉

Create a Link to a Post in Markdown in Jekyll


Recently I got a support request from a client about how to link to an internal post with Jekyll. The use case for this when you are writing a post and you want to link to another post the Jekyll way without hard-coding the full URL. I did some research and I found that Jekyll has a very elegant way to do that, and I would like to share this good tip with you.

Linking to an internal post is as simple as the following snippet:

[Name of Link]({{ site.baseurl }}{% post_url 2010-07-21-name-of-post %})

The snippet is a markdown syntax just as normal URL post_url tag which will automatically generate the post URL for you.

Hope this tip is useful and you can read more about this and more options on the Jekyll documentation.


👋 Looking for Ghost Hosting?

Try Ghost free for 14 days on a fully managed Ghost(Pro) infrastructure.

Try Ghost Pro


Get Ready to Build a Better and Faster Blog

Premium blog themes for WordPress, Ghost, and Jekyll
Trusted by 1300+ happy customers

Browse Themes
superhero