-1

Sometimes my posts have {{post.content}} and sometime they don't - I would like to write this statement in in shorthand twig to display the posts content if it there otherwise it would do nothing?

Thanks for any help!

ShrockCo
  • 357
  • 1
  • 13
  • Not sure if its this ```{{ post.content ? 'yes' : 'no' }}``` or if its this ```{{ post.content ? 'yes' : '' }}``` or ```{{ post.content ? }}``` – ShrockCo Aug 03 '22 at 14:25

1 Answers1

0

Just putting in {{ post.content }} seems to work just fine, but not sure if its exactly proper?

ShrockCo
  • 357
  • 1
  • 13