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

The search results page template


It's time to create the third template for our wiki project. Create a new file and name it search-results.ejs. As with the previous template, make sure you keep the name the same or update the value in _data.json for this template. Before we jump into coding the page, let's see what it will look like when we're done:

You'll notice that the search results page is similar to our other pages, but with one major difference. It has a different sidebar. Previously, I had you creating a second sidebar file and as part of this section. We will code it and insert it into the layout. In the case of the search results page, it has some specific search-related content and filters that we want to show in place of the regular categories. That's why I've created a second sidebar for this template.

Updating the page title

Before you jump into the body of the page, you'd want to change the <h1> tag to search results. In this case, we won't have an Edit button, so the only...

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 $19.99/month. Cancel anytime