Out of curiosity, what's the reason behind using {block:Title}
instead of just {Title}
:
{block:Title}
{Title}
{/block:Title}
I do it because Tumblr tells me to, but was wondering if there was a good reason for it. If it's to run conditionally (i.e. to show title when there is one), wouldn't {Title}
alone suffice since it's a variable, as it displays nothing when there is no title?
What's the blocking point?
Whilst strictly true, as no string is rendered if no
title
exists, markup will still be rendered. For example, lets pretend the title is empty.Markup
Output
This would be undesired. However, combine
title
with{block:Title}
.Markup
Output
tl;dr - Always use the blocks, to stop empty elements being created.