MunifTanjim / minimo

Minimo - Minimalist theme for Hugo
https://minimo.netlify.app
MIT License
545 stars 220 forks source link

New svg icon support + svg shortcode #289

Closed tabarnhack closed 4 years ago

tabarnhack commented 4 years ago

This PR introduces an easier svg icon support so we just have to put new svg icons in assets/svg directory and access it in layout thanks to their basename.

It will help in switching from Feather icons to Simple icons as stated in #248 and also in adding new social media entries as of #76, #136 and #149.

However, due to the implementation, if an icon is missing, it won't let the site be built with an empty icon as before. An error will be thrown by hugo.

Another feature added is the svg shortcode to allow user to insert the template's icons in their website content.

MunifTanjim commented 4 years ago

@tabarnhack Thanks for the PR! 🎉