All right. So this is the very last challenge of the module. 1
Well done for getting it this far 2
if you're still with me. The goal of this challenge is when you load up the home page it should have 3
a link at the end of each truncated blog post with something that says Read more. 4
And when we click on it then it should take us to the actual page of the blog post including all of 5
the content. 6
So that means we can read each and every blog post on its own individual page just by clicking on the 7
Read more after the bit of truncated preview text. 8
So think about what you've learned in this module and try to complete this challenge all by yourself. 9
Good luck. 10
I'll see you on the other side. 11
So here's my first hint. 12
In order for this to work the first thing that we need is an anchor tag 13
right? Something that it will act as a link to link to that particular page. Inside our paragraph 14
let's open it up fully so that we have one line which is going to be dedicated to our post content that's 15
truncated and then we also add an anchor tag. And inside this anchor tag the text is just going to be Read 16
More. The href has to point to a URL that will take us to the specific page. 17
See if that was enough of a hint for you to now be able to complete this challenge. 18
Now here's my second hint. 19
We know that inside this home. 20
ejs 21
we already have access to the post.title for each and every post that's being listed over here 22
right? 23
We already have access to that. 24
And we also know that if we navigate to posts/ simply just the title spelt out Day 25
1 and we hit enter. Because of all the code that we've got in our routing, 26
that alone can take us to the individual page of each blog post. 27
That's my last and final hint. See if you can now complete the challenge.