{% comment %} /* * Simple press grid snippet * * Copyright (c) 2016 Jason Bowman ([email protected]) * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * */ {% endcomment %} {% for i in (1..1) %} {% comment %} Define the blog that contains all our press posts {% endcomment %} {% assign pressHandle = 'press' %} {% comment %} Check to make sure the blog has posts before going any further. If there are none found, show a simple message. {% endcomment %} {% if blogs[pressHandle].articles.size < 1 %}

No publications found. Check back soon

{% break %} {% endif %} {% comment %} The Variables below should be added to Theme Settings if you are building this into a theme for a client. {% endcomment %} {% assign showPressTitle = true %} {% comment %} Show the plublished date for the article? Be sure to change the date to be the actual data of the press publication - not when you decided to publish the post on Shopify. {% endcomment %} {% assign showPressDate = true %} {% comment %} Show the article excerpt (if it exists)? {% endcomment %} {% assign showPressExcerpt = false %} {% comment %} Add a link to the article? {% endcomment %} {% assign showPressLink = false %} {% comment %} Define the image size. Change this to whatever size makes sense for your images. https://help.shopify.com/themes/liquid/filters/url-filters#img_url {% endcomment %} {% assign pressImageSize = '370x480' %} {% comment %} Basic styles for the example. You'll want to add your styles to the main stylesheet. {% endcomment %}{% comment %} The grid structure used below is based off the one in the Venture theme. You may need to adapt the code to match your grid. {% endcomment %}
{% for article in blogs[pressHandle].articles limit:50 %} {% assign gridSize = 'medium-up--one-third' %} {% endfor %}
{% endfor %}