How to modify names of tags for display?

In a page template I can iterate over my tags via {{#tags}} ... {{/tags}}. I then can display the tag name via {{name}}. So far, so good.

Some of my source tags start with "cat-" (e.g. "cat-science" or "cat-computer"). However I would like to display only the part after "cat-" (i.e. "science" or resp. "computer"). Can I do this?

Asked 3 months ago • Improve this question
3 replies

I saw one feature which might help me: The moustache template language offers lambdas. -- Could I use them to replace in any tag name "cat-" with the empty string?

Answered 3 months ago · Improve this answer

I would use some JavaScript to accomplish this - this is not possible within the template engine at the moment

Answered 3 months ago · Improve this answer

Thanks. Will try that.

Answered 3 months ago · Improve this answer

Markdown allowed

Question or feedback?

Contact us
How to password-protect a site? Thumbnails on social media? Title in menu vs title on page? Home Page Alt Text for Images

On this page