Welcome back.
Now what we need to do is that we need to display more information and also highlight the most important
things.
So remember in the homepage, in the index, we have the title and we have the author and we have these
things and we can't pass these things in the form as well.
So the index here we have remember we have this form and it has these inputs and we the the title is
always important, whether you whether the user is reading the article from whether the user goes to
the single page article or single article page.
We want we still want to display the article or the title.
Therefore, I'm going to pass the title here.
I'm going to say input and then type text and then value and then be echo object.
And then title and close the beach B and then I'm going to say name.
The name is going to be title.
And then.
I'm going to say style also a style.
The style is this plain night.
You can also pass the.
You can pass the order if you want.
You can also pass the author and you can pass other things, such as the published at the description
this item of the author.
What else do we have?
So these are all of these, all of these things.
You can possibly publish that by saying by saying published at.
However, I'm not going to pass the publish that I.
I'm just going to pass these items.
But you don't have to do that.
You don't have to pass the publish date.
So in the single article, now I'm going to check whether the title is empty or not, whether it's set
or not, I'm going to say.
And.
Is set.
Last.
And then title.
And then it's not if it's set.
Then I'm going to store it in a variable here, I'm going to say.
Title is equal to.
First.
Title.
And.
He going to display it, so I'm going to display in the remember in the card title, I'm going to say
here B2B and then echo and then dial.
And also the important thing is the aureole, remember that you are ill.
If you check that you were ill, you will find that the URL is being displayed like this.
Instead, we want to display a button with that you are out so that once the user clicks on the button,
it's going to take the user to that you are able, which is the external resource.
So to do that, instead of displaying it instead of displaying the you want it like this, we can remove
it and then we can create a tag.
And then we can say actress is equal to BHP and then Echo and then you are ill and we can give this
attack a.
We can display something on this attack by seeing source or let's say, source.
Source.
Read more.
And we can't give it also, so guess I'm going to say class meta and meaty in danger.
And for the complete, for the complete, Dave, I'm going to give it margin.
Bottom, I think this is a bottom, let's say, Bonjean.
Managing bottom five.
And that's pretty much it.
Let me see, I'm leaving here, then over to the browser and go back and let me refresh.
And.
And as you can see now, let me click on this one.
This one.
So if I click on it, it's going to display the title and maybe description or content, that's going
to be the source.
If you click on source and guess what, if I click on Source, it is going to take me to a an external
news page website that contains the complete article.
So this is another way of including something additional, some feature a new feature to your website
if you want to do that.
And again, if you want to display the complete article here, you would have to.
Get a plan from here, get a plan, because here it's not the unfortunately, unfortunately, it's not
going to provide a complete article unless you get a paid plan, but this is how you can display the
most important things again.
You can pass whatever article or whatever
you want to be displayed, such as the author and the published act in the in the single article page.
Let me again show you how to do that because because it's important to do that again, you just need
to get that input with the time and the Typekit always text because we are dealing with texts and then
you need to pass the value and the value is going to always be to be scrapped with the Echo and then
the object with the key that you want to pass.
So if I want to pass the author, I would say author and semicolon.
And obviously, we need to give it a name and the name is author.
And then the style, the style.
Is this playing on because we don't want to display it, we just want to store it.
And don't forget to close the curly, the angular bracket.
And in the single article page, the first thing that you need to do is that you need to check whether
it's right or not by saying and and then is set.
Lost.
And then author and if it's said we you just need to this, we you just need to store it in a valuable
cold water or there is going to be equal to.
Lost or there?
And you can display the year, be law, be law, the content you got in your cell, you can copy this
actually and copy this line and then paste it and then change here instead of saying A. Content, you
can say Echo Author.
And obviously you need to say after a year, and it's it's it's recommended to check whether the author
is empty or not by saying yes and then empty, if empty.
If it's not, it's not empty.
If the author is not empty, if author.
If water is not empty, then we need to echo the author with the way the content and here that the forget
that got here.
That's it, the year again, if the author is not empty, then we need to echo the author and then Dot
and then author.
Let me save and let me hear them over to the browser browser and this one more time.
So let me go back.
Let me, for example, click on this one again.
And it should display the.
And it should display now, as you can see, it's going to play the title highlighted, and then that
is the description and the content and finally the author.
And then the source.
And of course, the image being displayed here.
And I think now it looks amazing.