https://xmlexpr.blogspot.com/2025/09/blogger-blog-search-operator.html
https://xmlexpr.blogspot.com/
2715054485600034021
https://xmlexpr.blogspot.com/2025/09/blogger-post-label-alias.html
Blogger Post Label Alias
September 25, 2025
2025
September
24
10:51 PM
How to display alias for Blogger labels.
I prefer using lowercase and kebab-case for label name. It's looks nice when sharing URL.
blog-development <- I prefer this
Blog Development
But it doesn't looks as nice when displayed on the page. So how about creating an alias for it?
🎯 Default Markup
So that we have a single source of truth, create a default markup that replace any labels you specify:
<b:defaultmarkups>
<b:defaultmarkup type='Common'>
<!-- # alias -->
<b:includable id='LabelAlias'>
<b:switch var='data:name'>
<b:case value='blog-development'/>Blog Development
<!-- add more cases -->
<!-- display label name as is -->
<b:default/><data:name/>
</b:switch>
</b:includable>
</b:defaultmarkup>
</b:defaultmarkups>
Next, pass in the original label name data by using the includable like so:
<b:include name='LabelAlias' data='{ name: data:label.name }'/>
**
An Afterthought:
If you can lazy-load displaying the labels, then it would be better to create a label dictionary in JavaScript to replace them on client side. It's faster to edit from blog gadgets rather than editing the blog HTML after all.
https://www.blogger.com/rpc_relay.html https://www.blogger.com/comment/frame/220561901913020919?po=2715054485600034021&hl=en&saa=85391&origin=https://xmlexpr.blogspot.com&skin=contempo https://xmlexpr.blogspot.com/2025/09/blogger-post-label-alias.html#comments true
https://xmlexpr.blogspot.com/search/label/template-development
template-development
https://xmlexpr.blogspot.com/2025/09/blogger-blog-search-operator.html
https://xmlexpr.blogspot.com/