Refactoring the views folder

Now we will make a small change to the app/views folder and add some more files:

  1. First off, let's edit app/views/index.js. Replace the original code with the following code:
     {% extends 'layout.swig' %} {% block content %} <div class="section no-pad-bot" id="index-banner"> <div class="container"> <br><br> <h1 class="header center orange-text">{{ title }}</h1> <div class="row center"> <h5 class="header col s12 light">Welcome to {{ title }} </h5> </div> <div class="row center"> <a href="books/add" id="download-button" class="btn-large waves-effect waves-light orange">Create Your Photo Book </a> </div> <br><br> </div> </div> <div class="container"> <div class="section"> <!-- Icon Section --> <div class="row"> <div class="col ...

Get Node.js 6.x Blueprints now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.