#100DaysOfWeb in Python Transcripts
Chapter: Days 29-32: Static Sites
Lecture: Creating a dedicated static page

Login or purchase this course to watch this video and the rest of the course contents.
0:00 By now you're probably getting antsy
0:01 to continue working on your site
0:03 so let's just hammer out one last thing
0:06 and that is creating static pages.
0:09 So, you had static content
0:11 which was like your images
0:12 now we have a static page.
0:14 What I mean by that is this one page
0:17 that will stay the same on your site
0:18 every time people view it.
0:19 And I don't mean one of your posts.
0:23 Because that post will sort of
0:24 move down the page and whatnot.
0:26 What I mean by that, is if we go to our live site here
0:31 we have our categories at the top.
0:32 But what about something like, your About page?
0:36 Your terms and conditions?
0:38 Or, something like that, you know
0:39 one of those pages that you never edit
0:41 never change, it's not a post, but it's a dedicated page.
0:45 You can do that in Pelican and it's quite easy.
0:49 Similar to the way we created our images folder
0:54 hidden to content, we actually create a pages folder.
0:59 So, we make the pages pop into there.
1:05 Nothing in there.
1:06 And now we create our file.
1:08 So, I'm going to create an md file called about.
1:12 And this is just going to be the stock standard about page.
1:15 All it's going to say, is something about me
1:18 at the bare minimum.
1:19 The requirement for Pelican, is that we have a title.
1:23 Remember all those headers we had before?
1:25 We don't need too much, let's just call it about
1:29 and that's it. We'll start with, About page.
1:35 And then we will say, this is a page about me.
1:42 I made this site to demonstrate static site.
1:50 Generators, that's it.
1:52 Let's get rid of these, we don't need them.
1:54 And let, ooh, I merged this site.
1:59 There we go, nice and good, looks good
2:02 and let's right-click that page.
2:05 Let's follow the whole process here
2:06 through the proper production.
2:08 Okay, we'll go back one folder, back again
2:12 Pelican content to generate the page
2:16 now that we've created it.
2:19 Okay, head into our output folder.
2:22 Always a good idea to test, of course python -m httpserver.
2:30 That's running.
2:32 Let's bring that up, refresh the page.
2:35 And we now have an about page. So let's click on that.
2:39 There's our master header. This is a page about me.
2:41 I made this site to demonstrate static site generators.
2:44 Looks good. Now, let's pop back into here.
2:48 Now that we're out of there, let's push the content
2:50 and get commit about page creation.
2:57 Get push urgent master. Pushes it to get hub for us.
3:03 And then we can quickly flick to Netlify
3:06 and see this become a reality.
3:11 Yup, that's done. Pop back up to Netlify.
3:14 Go to deploys, straight away, look how quick that was.
3:16 It was like, it was a matter of seconds, pretty much.
3:19 Now, we wait for this to go to published
3:22 and that's now published to roughly about a minute.
3:25 And we can head over to our website, reload the page
3:29 and there we go. There's our About page.
3:32 The whole turnaround of making that was roughly
3:34 three minutes away from when we created the page.
3:37 When started this video and then we had it completed.
3:42 How good is that?
3:43 All right, one more thing I want to show you
3:45 really quickly, we'll move on to the next video.