Created
January 13, 2014 01:39
-
-
Save DeskWOW/8393310 to your computer and use it in GitHub Desktop.
Code snippet to demonstrate multi-brand liquid variables
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
List of all brands: | |
<ul> | |
{% for current_brand in desk.brands %} | |
<li><a href="{{current_brand.public_url}}">{{current_brand.name}}</a></li> | |
{% endfor %} | |
</ul> | |
<hr> | |
Current brand variables: | |
<ul> | |
<li>Brand name: {{desk.current_brand.name}}</li> | |
<li>URL of brand: {{desk.current_brand.public_url}}</li> | |
<li>Brand logo: {{desk.current_brand.logo}}</li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment