Creating a link that takes user to the latest blog post

Shopify Partner
7 0 1

I'd like to create a link that takes a user to the latest blog post.

 

I'd like to put this link on my facebook page, so when someone clicks it, they're taken to the most recent post. 


I think it might work something like this:

 

create a new page template and a new page, eg: mysite.com/pages/latest-blog-post

 

In the template, use liquid to redirect the page to the most recent post- kind of like a php redirect (I know this is  nowhere near correct, but hopefully it helps demonstrate how it might be done): 

< ?php header("Location:{{latest. blog.url }}"); ?>

 

Any ideas? I'm not so familiar with liquid although it seems pretty simple. 

0 Likes