Tuan-Anh Tran

Link Post in Jekyll

Posted on September 2, 2013  •  1 minutes  • 83 words

Link post is nothing but the post’s title linking to another url instead of the post url.

You need to specify where it points to. I use link here but you can just use any name you feel like using.

And then in post.html layout and index.html homepage. You just need to check if link is set; change the title’s href to the link variable of the post. You may need to change page variable to post when looping inside your index.html homepage.

Follow me

Here's where I hang out in social media