Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Bootstrap Site Blueprints Volume II

You're reading from   Bootstrap Site Blueprints Volume II Maximize the potential of Bootstrap for faster and more responsive web applications

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Length 328 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Matt Lambert Matt Lambert
Author Profile Icon Matt Lambert
Matt Lambert
Arrow right icon
View More author details
Toc

Customizing the template


As in our previous projects, let's update our Harp templates, theme, and Less files before we start with the actual pages. Make a copy of your boilerplate from chapter 1 and rename it to chapter 4 or Bootstrap Wiki. Open up the _data.json file and insert the following code into it:

{
  "index": {
    "pageTitle": "Bootstrap Wiki"
  },
  "article": {
    "pageTitle": "Article"
  },
  "search-results": {
    "pageTitle": "Search Results"
  },
  "profile": {
    "pageTitle": "Profile"
  }
}

For this project, we'll have four different page templates, so we need to create an entry for each of them. Remember that the first portion is the actual .ejs filename and the pageTitle variable is what we'll use to set the <title> of each page. Go ahead and create these four .ejs files in the root of your project directory. You can just leave them blank for now:

  • index.ejs

  • article.ejs

  • search-results.ejs

  • profile.ejs

Updating _layout.ejs

The next thing that we'll do is update...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime