Setting Up Your Blog and Its Essential Pages
Choose between hosted and self-hosted blogging, make clean post addresses with a program, and make sure the About, Contact, Start here and Privacy pages exist.
In this lesson you will
- Compare hosted and self-hosted blogging
- Make clean slugs for posts
- List the four essential pages
- Know to check current terms and keep backups
About 22 minutes
A blog is a few choices, not a thousand
Priya is ready to build. She is faced with a stream of choices: where to host the blog, which tool to write in, which design, which plug-ins. It can feel like a mountain, but a blog really needs only a few things: somewhere to publish, a clear structure, and a handful of pages that readers and the law expect. This lesson explains the main choices and shows how to make clean post addresses and check that the essential pages exist.
Hosted or self-hosted?
- A hosted blogging service looks after the technical side for you. It is quick to start and often has a free plan, but the features, the rules about adverts and what you can move away with depend on the company and the plan.
- Self-hosted software, such as WordPress, runs on web space you rent. You have more control and can grow it in any direction, and you take on more tasks: updates, security and backups. This site teaches a free WordPress course if you choose that route.
- Other tools exist too, such as newsletters and static site builders. Read their current pages before deciding.
There is no single best choice. If you want to start this week and do not care about advertising or moving later, a hosted service is fine. If you want full control, or may sell products, self-hosting is worth the extra learning. Whichever you choose, keep your own copy of your writing, so you can move.
Clean addresses for posts
Every post needs an address, and the last part of it is called a slug. A good slug is short, lower case and made of the important words joined by hyphens. The program below turns five made-up post titles into slugs: it lowercases the title, keeps only letters and digits, drops small filler words such as ‘the’, ‘my’ and ‘to’, and adds a number when two titles would give the same slug. This is how many blogging tools work behind the scenes.
import re
STOP = {"a", "an", "the", "and", "of", "to", "in", "for", "my", "is", "on"}
def slug(title):
words = re.findall(r"[a-z0-9]+", title.lower())
keep = [w for w in words if w not in STOP] or words
return "-".join(keep)
posts = ["How to Start Seeds on a Windowsill", "The Best Tools for a Small Plot", "What I Learned in My First Year",
"How to Start Seeds on a Windowsill!", "10 Easy Crops for Beginners"]
seen = {}
for t in posts:
s = slug(t)
if s in seen:
s = s + "-2"
seen[s] = t
print(f"/{s[:34]}/")
print("longest address:", max(len(s) for s in seen))
print("all lower case:", all(s == s.lower() for s in seen))
required = ["about", "contact", "privacy-policy", "start-here"]
site = ["about", "contact", "start-here"] + list(seen)
print("missing pages:", [p for p in required if p not in site] or "none")
print("pages on the site:", len(site))
/how-start-seeds-windowsill/
/best-tools-small-plot/
/what-i-learned-first-year/
/how-start-seeds-windowsill-2/
/10-easy-crops-beginners/
longest address: 28
all lower case: True
missing pages: ['privacy-policy']
pages on the site: 8
The title ‘How to Start Seeds on a Windowsill’ becomes /
The pages every blog needs
The last lines of the program check the site’s pages against a required list. The site has 8 pages in all, and the check reports a missing one: [‘privacy-policy’]. Four pages are worth having from the start.
- About. Who you are, what the blog is for and why readers should trust you.
- Contact. A way to reach you, such as a form or an address.
- Start here. A short guide to your best posts for new readers.
- Privacy policy. A plain statement of what data you collect, such as comments, email signups and analytics, and what you do with it. Rules differ by country, and this course is not legal advice, so check official guidance for your readers’ countries.
- Choose a hosted service or self-hosted software, and note what it costs and what it lets you do.
- Pick a simple, readable theme. Avoid heavy designs at the start.
- Create the four essential pages.
- Set your post addresses to use the post name only.
- Write a draft post, preview it on your phone, and publish it.
Spending weeks on the design before writing a word. Readers come for the writing. A plain theme with good posts beats a beautiful site with nothing to read.
Services, plans and prices change. Check the current terms for adverts, storage and moving your content out before you commit. Keep regular backups of your posts.
Practice for this lesson
Check what you learned
Five quick questions. Pick an answer and you will see straight away whether it is right and why.
What is a slug?
- A kind of image
- The last part of a post’s address
- A type of theme
- A comment
The slug is the readable part at the end of the address.
What makes a good slug?
- Long and capital letters
- Spaces and symbols
- Random numbers
- Short, lower case, key words joined by hyphens
Short, plain slugs are easier to read and share.
Which page was missing in the sample?
- About
- The privacy policy
- Contact
- Start here
The check found no privacy-policy page.
Why keep your own copy of your writing?
- It is required
- It speeds up the site
- It hides posts
- So you can move if you need to
A copy keeps your work safe if a service changes.
When should you change a slug after publishing?
- Rarely, and with a redirect
- Every week
- Never read it
- Whenever you like
Old addresses stop working unless you redirect them.
Summary
- A blog needs somewhere to publish, a clear structure and a few essential pages.
- Slugs should be short, lower case and readable.
- Create About, Contact, Start here and Privacy pages.
- Keep your own copy and check current terms.
Questions
Which platform should I choose?
It depends on your goals. Hosted services are quick to start, and self-hosted software gives more control and takes more upkeep. Read each one's current terms before deciding.
Do I really need a privacy policy?
If you collect any personal data, such as comments, signups or analytics, most places expect a clear statement. Rules differ by country, so check official guidance. This course is not legal advice.
Are the titles real?
No. They are made-up examples to show the method.
