Short title template function
Hi everyone, sorry if this has already been answered. I have quite a lot of academic titles in my library and they have really long titles. I want to shorten the titles so they will fit on the covers that I generate for using the generate cover plugin.
I can use {title:shorten(50,,0)} to only give me the first 50 characters of each title, but it's not very aesthetically pleasing - because it cuts off the end of words most of the time.
Is there a function I can use to return the first n words of a title (based on separation by spaces) or automatically returns everything before the colon that nearly always sneaks into academic titles?
|