Created
September 11, 2012 16:23
-
-
Save pmeissner/3699642 to your computer and use it in GitHub Desktop.
tag pairs variable helper count
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
{{ gallery }} | |
{{ if count < "6" }} | |
{{ img }} (1 through 5) | |
{{ else }} | |
{{ img }} (6 through infinity and beyond) | |
{{ endif }} | |
{{ /gallery }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I use code, it applies same formatting to every variable based on the total count. I would expect it to say (1 through 5) to the first 5 images and (6 through infinity and beyond) to the the others.