I’m using the following on my config.toml:
[params.profiles]
facebook = “https://facebook.com/brunoamaral”
github = “https://github.com/brunoamaral”
twitter = “https://twitter.com/brunoamaral”
And my goal is to range over them, like so:
{{ range (index $.Site.Params.profiles ) }}
<a href="{{ . }}" class="btn btn-primary btn-icon btn-round">
<i class="fab fa-facebook"></i>
</a>
{{ end }}
What is missing is getting this bit to be dynamic: class=“fab fa-facebook”>
How do I get the name of the parameter that is being displayed ?