O'Reilly logo

Node.js 6.x Blueprints by Fernando Monteiro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modifying the KeystoneJS core template path

Now let's do a little refactoring of the templates directory.

  1. Inside templates, create a folder called default.
  2. Move all files in the templates folder to the new default folder.
  3. Copy all the contents from the default folder and paste them in a new folder called newBlog.

    The result will be the following screenshot, but we need to change the keystone.js file to configure the new folder:

    Modifying the KeystoneJS core template path

    Templates folder structure

  4. Open the keystone.js file from the root folder and update the following lines:
          'views': 'templates/themes/newBlog/views', 
          'emails': 'templates/themes/newBlog/emails', 
    

Done. We have created a folder ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required