I'm struggling to insert a Font Awesome icon before the list-group-item content within a Pug loop, but I can't seem to make it work.
Adding the icon at the end of the list-group-item content is straightforward. How do I position it in front (I have attempted various methods with no success)?
- var x = list_content
.list-group.list-group
each val in x
.list-group-item=val
i.fal.fa-chart-line.fa-fw // This will create the icon after the content
What is the most efficient way to achieve this?