unic / estatico

[DEPRECATED] Estático – Static site generator for frontend unicorns
Other
121 stars 18 forks source link

Refactors variants with additional key #37

Closed corinneroelli closed 7 years ago

corinneroelli commented 7 years ago

Includes a specific variant with the key property by adding a key property in meta data.

exampleData.variants.find((variants) => variants.meta.key === 'inverted')

this allows you to change the order of variants without changing the variants include in data.js file. See also original pr: https://github.com/unic/estatico/pull/29

backflip commented 7 years ago

https://github.com/unic/estatico/pull/29 was preferred in Slack vote. 😢 Thanks anyway, @corinneroelli!