Refactoring the views folder
Now we will make a small change to the app/views
folder and add some more files:
- 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 the O’Reilly learning platform.
O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.