Created
May 5, 2015 05:51
-
-
Save brettwise/97080db226ff1f060e3f to your computer and use it in GitHub Desktop.
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
// I am trying to suppress the img from displaying when user is on about page. | |
{% assign about = site.pages['about'] %} | |
{% unless about %} | |
<img src="{{meta['featured-icon']}}" alt="featured icon" class="featured-icon"> | |
{% endunless%} | |
// Also tried below per https://github.com/Shopify/liquid/wiki/Liquid-for-Designers | |
{% assign about = site.pages['about'] %} | |
{% for page in site.pages %}{% unless about %} | |
<img src="{{meta['featured-icon']}}" alt="featured icon" class="featured-icon"> | |
{% endunless%}{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment