From the course: Building a Website with Node.js and Express.js
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Challenge: Partials and lists
From the course: Building a Website with Node.js and Express.js
Challenge: Partials and lists
(upbeat music) - [Instructor] Our site is now pretty complete and dynamic. But one thing that is clearly still missing though is the sidebar with the artwork. You see that here on the detail page it's even broken and if I look at the static page that we got in the first place I see that the index page contains a left sidebar with all the artwork of all speakers. The same is true for the speakers list. But when I go into one individual speaker I see that it only shows the artwork for this particular speaker. Also I see that regardless of the page the caption artwork on display on top stays the same everywhere. So it's the same here on the speakers detail page but also here on the index page. Let's take the challenge to first move this artwork section into a pod shell and then make it dynamic. For that we of course need a way to get the artwork for all speakers and also for a specific speaker using their short name.…
Contents
-
-
-
-
-
-
(Locked)
Create a site-wide layout6m 54s
-
(Locked)
Using partials with EJS4m 56s
-
(Locked)
Template variables in more detail5m 57s
-
(Locked)
Looping through lists in templates11m 33s
-
(Locked)
Creating a list page6m 4s
-
(Locked)
Using parameter routes7m 9s
-
(Locked)
Challenge: Partials and lists2m 20s
-
(Locked)
Solution: Partials and lists8m 46s
-
(Locked)
-
-
-
-