Last active
September 8, 2016 07:03
-
-
Save unofficialshopify/78257fe3fa369ec8d2d981a56939df20 to your computer and use it in GitHub Desktop.
How to add shopify blog on frontpage or home page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<h1>From the Blog</h1> | |
{% for article in blogs.news.articles limit: 6 %} | |
<h3><span> >> {{ article.title | link_to: article.url }}</span></h3> | |
<p> | |
<span>{{ article.created_at | date: "%d/%m/20%y" }}</span><span> <span> | </span> by {{ article.author }} </span> | |
</p> | |
</div> | |
{% endfor %} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment