Blogger has added more custom template flexibility
Last May, Blogger added some expressions to their templating language to make it easier for you to customize your blog’s look and feel. These new expressions proved popular with those of you who enjoy advanced blogging tools, so they are offering you with even more flexibility.
Some few weeks earlier, they have introduced a new set of operators, which they're calling lambda expressions, that allow you to apply rules to whole sets of data (think posts, comments, or labels), rather than just individual instances.
Let’s say you wanted to add a flower image to all posts with the label “Flower,” for example. With lambda expressions, simply define a variable name that each item in the set will take, and then refer to the variable name as though it were each item.
An example of adding a flower icon to posts labelled 'Flower'
There’s lots more that you can do using lambda expressions, like only showing posts in your feed with a given label or quickly calculating how many posts you have with a given number of comments. For a full list of the new lambda expressions available, check out blogger's help forum.
Comments
Post a Comment