Logic for generating cover.html