Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Bootstrap Site Blueprints Volume II

You're reading from  Bootstrap Site Blueprints Volume II

Product type Book
Published in Jan 2016
Publisher Packt
ISBN-13 9781785281099
Pages 328 pages
Edition 1st Edition
Languages
Author (1):
Matt Lambert Matt Lambert
Profile icon Matt Lambert

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