How to create a tag cloud in Hugo

Create a visual tag cloud in Hugo with logarithmic font scaling based on tag frequency.