{# add this to macro file #}{# social media macro #}{%macrosocial(object,type)%}{%setvalue=attribute(object,type)%}{%ifvalue|length%}<li><ahref="{{value}}"target="_blank"><iclass="fa fa-{{type}}"aria-hidden="true"></i></a></li>{%endif%}{%endmacro%}{# template code #}{%setsocialArray=['dribble','envelope','facebook','flickr','googlePlus','instagram','linkedin','tumblr','twitter','vimeo','youtube']%}<ulclass="social list-inline">{%forsocialTypeinsocialArray%}{{siteMacros.social(socialMedia,socialType)}}{%endfor%}</ul>
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.