Skip to content

Instantly share code, notes, and snippets.

@DeskWOW
Created January 13, 2014 01:39
Show Gist options
  • Save DeskWOW/8393310 to your computer and use it in GitHub Desktop.
Save DeskWOW/8393310 to your computer and use it in GitHub Desktop.
Code snippet to demonstrate multi-brand liquid variables
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