Building my archive templates in my current project I will never use the default 70 words summary returned by default by Hugo.
Instead I will either use the front matters’ description OR whatever is before the
<!--more--> tag. For this I need to test if the
<!--more--> tag is present.
I assumed .Truncated would evaluate the presence of the
<!--more--> but it does not, it seems to return true in any case which doesn’t make sense to me so apologies for I am obviously missing something.
I looked for the
That being said, is there any way to easily spot a
<!--more--> tag in my content so I can choose between displaying whatever is before it, or in the case there are none, just the .Params.description ?
Thanks a ton!