Left and Right string functions

Hi, I notice that there doesn’t seem to be a simple tail or head function that operates on a string given a number of letters. To be precise, I always add an emoji at the end of titles and subtitles. But it doesn’t pan out well in the table of content. Is there a function to emulate this ?

{{ substr "hello👋" 0 -1 }} → "hello"
{{ substr "hello👋" -1 }}   → "👋"

Thanks, I’m not familiar with the golang library.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.