Lookbook
{{ ---- BEGIN EXTRA THEME SETTINGS AND CONTROLS ---- }}
{% assign: Blocks_per_Row = 2 %} {{ Options: 1 to 3 }}
{{ ---- END EXTRA THEME SETTINGS AND CONTROLS ---- }}
{% assign: current_page = page.name %}
{% capture cp_prefix %}{{ current_page }} - {% endcapture %}
{% assign: bpr = Blocks_per_Row %}
{% capture b_pr %}{% if bpr == 1 %}12{% elsif bpr == 2 %}6{% elsif bpr == 3 %}4{% endif %}{% endcapture %}
{% for page in pages.all %}
{% if page.name contains current_page and page.name != current_page %}
{% if page.content contains "img src" %}
.cb_img{min-height:100px;background:#000000}
(function($) { {% for page in pages.all %}{% if page.name contains current_page and page.name != current_page %}$("#{{ page.permalink }}_block .cb_img").load("{{ page.url }} section.module .container img:first");{% endif %}{% endfor %}})(jQuery);