ginetta / skeleton

a static site generator for web frontend projects
22 stars 4 forks source link

Assets/Meta consistency. #141

Closed lucalanca closed 7 years ago

lucalanca commented 7 years ago

Assets files

There are three types of files:

Content Assets

Design Assets

Meta Assets

What this PR does:

I think this organisation is a more scalable solution that what we currently have. For more than once, I had the need to create a new stream for a new file type. With this, we don't need to do it. Furthermore, I think this is more maintainable as there exists only 1 stream for all assets (regardless if it is a "content asset " or a "design asset").

meodai commented 7 years ago

I like! A little bonus could be to actually image-optim the favicon if there are any?

lucalanca commented 7 years ago

Ok, we discussed this topic a little bit further and here's the final proposal of this PR:

Design Assets

They should go under src/materials/icons (or any other file). They should get rev'd and their reference changed on both .css and .html files.

Content Assets

They should go under content/{images,videos,etc}. They should get rev'd and their reference changed on both .css and .html files.

Meta Assets

They should go under src/meta. They never get rev'd and they will end up at the root of the build folder.