Welcome back.
Were you able to figure it out?
I just googled around for some free eco icons and I really, really like this lightning bolt one, so
I've just downloaded it as an ICO.
And now it's in my folder over here as bolt dot iko.
Now.
How were you able to solve this if your first instinct was to Google for it?
Well, good job.
That's what you want to do as a developer.
You see over here that, well, Flask has documentation on how we can use it.
Now, there's two ways to do it.
We have this link and a way that works with older browsers as well.
Now this syntax might not be.
Obvious to you, but let's use this method and then I'm going to show you what it actually does.
So let's just copy and paste.
So we go into our index HTML and in our link tag, I'm going to add this.
So let's make this a little bit bigger so we can see and maybe a little smaller so that everything is
in here.
And we see here that we have this syntax that we haven't seen before.
That's actually going to be used with flask that we're going to talk about.
But we see here that it's going to be for the static folder and the file name is going to be Vatican
echo, but minus called the bolt icon.
So let's just call it bolt dot icon.
That's the file name and it should be in the static folder.
So I'm going to move this.
Into this static folder.
Just like that.
Now if I just save here.
I can actually comment this out.
Hit save.
And see what happens.
If I go back to my website and I refresh.
Hey, look at that.
Do you see how I have a little bolt here?
You see that?
The bolt icon is now on my website.
How cool is that?
And I didn't really do anything crazy.
I didn't even have to have an endpoint, which is really, really cool.
Again, flask, because a fava icon is something so common, just makes it super easy for us.
So we don't have to clutter our code with a fab icon endpoint so I can just remove this.
But you know what?
I'm not a big fan of doing things without understanding them.
And right now, what we just did here seems really, really strange.
Where is this URL for thing coming from?
What's with this double squiggly lines?
In the next video, we're going to find out what all of this means.