jekyll / jekyll-avatar

A Jekyll plugin for rendering GitHub avatars
MIT License
89 stars 9 forks source link

Assign string values for attributes #47

Closed ashmaroli closed 4 years ago

ashmaroli commented 4 years ago

Instead of interpolating an integer size into a string for each <img /> rendered which involves allocation of the string value on each render, (when size == 24, then "#{size}" leads to allocation of "24"), it would be more optimal if size were a String value to begin with and only converted into its Integer counterpart when necessary.

Similarly, API_VERSION is now a String value and :"data-proofer-ignore" always "true"