Last active
December 19, 2015 15:48
-
-
Save pdokas/5978746 to your computer and use it in GitHub Desktop.
The simplest way I can find to find a sorted list of all tags across all posts in Siteleaf.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
values
is the generic name for the array of 'tag' values. Here is what the data looks like behind the scenes:https://github.com/siteleaf/siteleaf-api#get-v1taxonomyidjson
We'll update the theme docs to make this more clear.
Agreed, they list it but don't explain it further.
You can't sort on a for statement, but you can sort first and assign it to a new variable like this:
Now you can use the
sorted_tags
variable: