- Clone the repo.
- Run
npm installin the root of the repo folder. - Run
node index.js.
This will start a server on port 3000 on your system which can be accessed from https://localhost:3000 in your browser.
All the templates are available in the views/mixins directory. You can replace the template being used on the page by editing the file views/partials/products.pug.
product.pug- unoptimimzed imagesproduct_ik.pug- unoptimized images, but with CDN and the right cache headersproduct_optimized.pug- optimized images with the right format and commpressionproduct_resize.pug- optimized plus resized for a single screen sizeproduct_responsive.pug- optimized, responsive imagesproduct_lazyload.pug- optimized, responsive images with native lazyloading
To use a particular template, use the template name (i.e. product_lazyload) in the views/partials/products.pug