IndivisibleTemplate / BasicTemplate

The basic Indivisible Template Beta. By Sahadeva Hammari.
http://IndivisibleTemplate.com/
GNU General Public License v3.0
7 stars 80 forks source link

Better way to handle social media links #5

Open sahadeva opened 7 years ago

sahadeva commented 7 years ago

Currently social media links in the site header nav are hard coded with if/then statements and only work for Twitter and Facebook: https://github.com/IndivisibleTemplate/BasicTemplate/blob/master/_includes/header.html#L21-L31

In other words, if users input a Twitter @handle in their CMS settings a Twitter icon/link will show up in the site header.

Instead of hard coding Twitter and Facebook conditionals into the theme we probably use Collections: https://jekyllrb.com/docs/collections/ I.e.

Or another better approach?