Leah's Blog Quest

in every generation, a blogger is chosen. it's you!!! =D

hihi Leah!! this page walks you through making a real blog from scratch, on your Windows laptop, using Hugo (the thing that turns your writing into a website), git (the thing that remembers every version of your files), and GitLab Pages (the thing that puts your site on the internet, for free).

go in order. each step has a checkbox so you can see how far you got (it remembers, even if you close the tab). if anything looks weird or scary, that's totally normal, just ask me!! (i'm probably right next to you lol)

0 of 0 steps done
✝ ✝ ✝

open a terminal

step 1

the terminal is a window where you type commands instead of clicking. it looks hacker-y but it's just a different way of talking to your computer.

  1. press the Windows key, type terminal, and open Terminal (on older Windows it might be called PowerShell, that's fine too).
  2. you'll see a blinking cursor. type this and press Enter:
terminal
winget --version

if it prints a version number (like v1.9.something), you're good!!

tip: to paste into the terminal, right click or press Ctrl+V. every grey box on this page has a copy button.

install your tools

step 2

paste these one at a time. say yes to any popups asking for permission.

terminal
winget install Git.Git
winget install Hugo.Hugo.Extended
winget install Microsoft.VisualStudioCode
important!! after installing, close the terminal completely and open a new one. the old window doesn't know the new programs exist yet.

then check that everything worked:

terminal
git --version
hugo version

you should see version numbers for both, and the Hugo one should say +extended somewhere in it.

tell git who you are

step 3

git stamps a name and an email on every snapshot you save, and anyone who looks at your public project can see them. so we're NOT gonna use your real email. GitLab gives you a secret private one instead!! =D

part 1: get your private email from GitLab

  1. log in to gitlab.com in your browser.
  2. click your avatar (your little picture, top corner) → Edit profile. (shortcut: gitlab.com/-/user_settings/profile)
  3. scroll down to the Commit email dropdown and pick Use a private email. it'll look something like 12345678-leah_bear@users.noreply.gitlab.com (the numbers are your user ID).
  4. while you're there, check that Public email says Do not show on profile.
  5. click Update profile settings at the bottom.
  6. now copy that private email address from the dropdown. you need it in a sec! (if it won't let you select the text, just type it carefully.)
why both? the GitLab setting covers anything you change on the GitLab website. the command below covers snapshots you make on your laptop. we want both to be private!

part 2: tell git on your laptop

you only do this once, ever. the name is public too, so use whatever name you want people to see (your first name, or a handle like leah_bear). paste your private email where it says:

terminal
git config --global user.name "Leah"
git config --global user.email "PASTE-YOUR-PRIVATE-EMAIL-HERE"
git config --global init.defaultBranch main

double check it worked:

terminal
git config --global user.email

it should print your ...@users.noreply.gitlab.com address. no real email anywhere!! 🔒

what's "main"? it's the name of your project's main timeline (git calls timelines "branches"). GitLab uses main by default, so we match it.

make your Hugo site

step 4

remember the src folder i had you make? that's where all your coding projects live! src is short for source, which is short for source code: the files you write, that your projects get built from. (Hugo is gonna take your source code and build a website out of it!)

let's go into src and have Hugo make a new site there:

terminal
cd ~
cd src
hugo new site blog
cd blog
git init
lost? type pwd ("print working directory") anytime to see which folder you're in. after the commands above it should end in \src\blog.

now open the folder in VS Code:

terminal
code .

(the . means "this folder right here"). you'll see some folders on the left: content is where your posts go, themes is where themes go, and hugo.toml is your site's settings file.

pro move: VS Code has its own terminal built in! go to Terminal → New Terminal in the menu. it opens already inside your blog folder. you can do the rest of this guide from there.

add a pretty theme

step 5

we're using PaperMod, a clean, super readable theme with a dark mode. later we'll paint it Buffy colors.

terminal (inside your blog folder)
git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
what's a submodule? it's a git project tucked inside your git project. your blog just remembers "use PaperMod, from this address" instead of copying all its files. that makes updating the theme easy later, and it means you never edit files inside themes/PaperMod. all your changes go in your own folders (you'll see!).

configure your site

step 6

in VS Code, open hugo.toml, delete everything in it, and paste this in. then change the title and the welcome words to whatever you want!!

hugo.toml
baseURL = 'https://leah_bear.gitlab.io/'
languageCode = 'en-us'
title = "Leah's Blog"
theme = 'PaperMod'

[params]
  defaultTheme = 'dark'
  disableThemeToggle = true
  ShowReadingTime = true
  ShowPostNavLinks = true
  ShowBreadCrumbs = false

[params.homeInfoParams]
  Title = 'Welcome to the Hellmouth'
  Content = 'a blog by Leah. stakes, snacks, and Python homework.'

[[menu.main]]
  name = 'Posts'
  pageRef = 'posts'
  weight = 10

[[menu.main]]
  name = 'Tags'
  pageRef = 'tags'
  weight = 20

this file is in a format called TOML. it's just name = value pairs, and the [bracket] lines start a new group of settings.

next, make a file called .gitignore in your blog folder (right click in VS Code's file list → New File). paste this in:

.gitignore
public/
resources/_gen/
.hugo_build.lock
why? .gitignore lists stuff git should NOT save. public/ is where Hugo puts the finished website when it builds. we don't save that, because GitLab builds a fresh one every time you push.

write your first post

step 7
terminal
hugo new content posts/first-slay/index.md

this makes a folder content/posts/first-slay/ with an index.md inside. each post gets its own folder, so you can drop pictures in right next to it.

open that index.md. the top part between the +++ lines is the post's info ("front matter"). Hugo already filled in the date and title for you. keep the date it made (a date in the future makes the post hide!), but change draft = true to draft = false and add a tags line. the top will look kinda like this (your date will be different):

top of content/posts/first-slay/index.md
+++
date = '2026-11-30T19:00:00-08:00'
draft = false
title = 'First Slay'
tags = ['hello', 'meta']
+++

then write your post underneath the second +++. here's some to start with:

your post (goes under the +++)
hello world!!! this is my **first post** on my brand new blog.

## things i learned today

- what a terminal is
- that git remembers everything
- [Hugo](https://gohugo.io) is fast

![my drawing](stake.png)

the writing part is Markdown!! it's a markup language, which is a way of adding little marks to plain text to say "this part is bold" or "this is a heading." HTML is a markup language too, but it's kinda wordy (<strong>hi</strong>). Markdown is the super simple version (**hi**), so it got called Markdown as a joke: it's markup, but marked down lol. Hugo turns your Markdown into HTML for you.

the basics: **bold**, *italic*, ## heading, - list item, [link text](url). that's most of it!! for the rest, the Markdown Guide basic syntax page is a great cheat sheet to keep open.

for the picture, put an image file named stake.png into the same first-slay folder (or delete that line for now).

see it on your laptop!

terminal
hugo server

then open http://localhost:1313/ in your browser. that's your blog!!! =D

leave it running. every time you save a file in VS Code, the page refreshes by itself. magic. to stop the server, click in the terminal and press Ctrl+C.

localhost means "this computer." only you can see this version. next we put it on the real internet.

make the GitLab project

step 8
  1. go to gitlab.com and log in.
  2. click the + (top left) → New project/repository → Create blank project.
  3. Project name: leah_bear.gitlab.io (yes, the whole web address is the name!)
  4. check that the Project slug box right under it also says exactly leah_bear.gitlab.io. the slug is the part that goes in the URL, and it's the one that matters.
  5. Visibility: Public (simplest, and it's a blog, everyone's supposed to see it anyway!)
  6. UNcheck "Initialize repository with a README". (we already have files, and a README would cause a fight.)
  7. click Create project.
why that weird name? GitLab has a special rule: if a project is named yourusername.gitlab.io, its website lives at the very top of your address, https://leah_bear.gitlab.io/, with nothing tacked on the end. this is your official home on the internet!! (your old Pelican practice site keeps living at /pelican/, they don't fight.)
wait, my folder is called blog though? totally fine! the folder name on your laptop and the project name on GitLab don't have to match. step 10 is where we connect them.

GitLab shows you a page of instructions. you can ignore them, we've got our own =)

add the deploy recipe

step 9

GitLab needs instructions for how to build your site. make a new file in your blog folder called .gitlab-ci.yml (with the dot at the start!) and paste in:

.gitlab-ci.yml
default:
  image: hugomods/hugo:exts

variables:
  GIT_SUBMODULE_STRATEGY: recursive

pages:
  script:
    - hugo --gc --minify --baseURL "$CI_PAGES_URL/"
  artifacts:
    paths:
      - public
  rules:
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

in plain words, this says:

spaces matter!! in .yml files, the indentation (2 spaces) is part of the meaning. use the copy button and don't retype it.

push it to the internet!!

step 10

stop hugo server if it's running (Ctrl+C), then:

terminal
git add .
git commit -m "my first blog!!"
git remote add origin https://gitlab.com/leah_bear/leah_bear.gitlab.io.git
git push -u origin main

the first time you push, a window pops up asking you to log in to GitLab. pick the browser option and log in. git remembers you after that.

watch it build

  1. on your GitLab project page, go to Build → Pipelines in the left sidebar.
  2. you'll see a pipeline running (blue). wait for it to turn green ✓ (usually a minute or two).
  3. go to Deploy → Pages. your site's link is there!
if the link looks random (like leah-bear-gitlab-io-a1b2c3.gitlab.io): on that same Deploy → Pages screen, uncheck "Use unique domain" and save. then your address becomes just https://leah_bear.gitlab.io/ =D (if your browser keeps sending you to the random one, it remembered the old address. try a private/incognito window.)

the very first deploy can take a few minutes to show up. if you get a 404, get a snack and refresh. 🍩

once it works: YOU HAVE A BLOG ON THE INTERNET!!!! 🎉

make it Buffy

step 11

this is the fun part, and it's where you learn real CSS. PaperMod lets you add your own styles on top of its styles, without touching the theme.

part 1: spooky fonts

make this file (you'll need to make the layouts and partials folders too):

layouts/partials/extend_head.html
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Grenze+Gotisch:wght@500;700&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap" rel="stylesheet">
what just happened? PaperMod looks for a file with exactly this name and drops it into the <head> of every page. this is your first time overriding a theme! the <link> tags load two free fonts from Google Fonts.

part 2: the colors

make this file (new folders again: assets, css, extended):

assets/css/extended/buffy.css
/* ✝ welcome to the hellmouth ✝ */

/* PaperMod keeps its colors in "variables". we change them here. */
:root,
.dark,
:root[data-theme="dark"] {
  --theme: #0d0a0b;     /* page background */
  --entry: #1a1214;     /* post card background */
  --primary: #f3e6d6;   /* titles */
  --secondary: #b9a99a; /* dates, small text */
  --tertiary: #3a2226;  /* hover stuff */
  --content: #eadcc9;   /* main text */
  --code-bg: #24171a;   /* code blocks */
  --border: #4a1c22;    /* lines */
}

body {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 19px;
}

/* gothic headings */
h1, h2, h3,
.logo a,
.post-title,
.entry-header h2 {
  font-family: 'Grenze Gotisch', serif;
  letter-spacing: 0.5px;
}

.post-title,
.first-entry .entry-header h1,
.logo a {
  color: #e0303f;
  text-shadow: 0 2px 14px rgba(224, 48, 63, 0.35);
}

/* links that bleed when you hover */
.post-content a {
  color: #ff5a68;
  box-shadow: none;
  border-bottom: 1px solid #8a1622;
}
.post-content a:hover {
  color: #fff;
  background: #8a1622;
}

/* post cards on the home page */
.post-entry {
  border: 1px solid var(--border);
}
.post-entry:hover {
  border-color: #e0303f;
}

/* when you highlight text */
::selection {
  background: #8a1622;
  color: #fff;
}

run hugo server and look at localhost:1313. sunnydale vibes!!! 🧛

part 3: make it YOURS

now change stuff and see what happens!! try:

THE secret CSS superpower: in your browser, right click anything on your blog and pick Inspect (or press F12). it shows you the HTML and which CSS is styling it. you can even edit the CSS live right there to experiment, then copy what you like into buffy.css. this is how real web people figure stuff out!!
about pictures: use your own drawings and photos, or images that say they're free to use. not screenshots or logos from the show. your site should be all yours =)

when you like it, save it to GitLab:

terminal
git add .
git commit -m "make it buffy"
git push

your everyday routine

step 12

from now on, writing a post is always the same 4 moves:

terminal
# 1. make a new post (use your own post name, no spaces)
hugo new content posts/my-new-post/index.md

# 2. preview while you write (remember draft = false!)
hugo server

# 3. save a snapshot
git add .
git commit -m "new post: my new post"

# 4. publish!
git push

lines starting with # are just comments, notes for humans. the terminal ignores them.

git cheat sheet

commandwhat it does
git status"what changed since my last snapshot?" use it ALL the time
git diffshows exactly which lines changed
git log --onelinelists all your past snapshots (press q to exit)
git add .get everything ready to save
git commit -m "note"save the snapshot
git pushsend it to GitLab (which publishes your site)

side quests

step 13

whenever you're feeling it, in any order:

side quest: SSH keys 🔑

right now, git logs in to GitLab using your browser (that popup from step 10). that works great! but real nerds use SSH keys, and you'll need them anyway the first time you log in to a server or a Raspberry Pi. so let's learn it!!

how it works: SSH keys come in a pair. the public key is like a padlock: you can hand out copies to anyone (like GitLab), and they put it on your door. the private key is the only key that opens that padlock. it stays on your laptop and you NEVER share it, paste it anywhere, or send it to anyone. not even me!!

1. make your key pair. in the terminal:

terminal
ssh-keygen -t ed25519 -C "leah's laptop"

now you have two files in your .ssh folder: id_ed25519 (PRIVATE, keep secret!!) and id_ed25519.pub (public, .pub = public, safe to share).

2. copy your PUBLIC key. this copies it right onto your clipboard:

terminal
Get-Content ~\.ssh\id_ed25519.pub | Set-Clipboard
double check: it has to be the one ending in .pub!! if you paste it somewhere, it should start with ssh-ed25519 and end with leah's laptop. if you ever see something that says BEGIN OPENSSH PRIVATE KEY, that's the secret one. don't paste that anywhere!

3. give GitLab the padlock.

  1. go to gitlab.com/-/user_settings/ssh_keys (or avatar → Edit profile → SSH Keys).
  2. click Add new key.
  3. paste into the Key box (Ctrl+V). the title fills itself in.
  4. you can clear the Expiration date or leave it, your choice. (if it expires, you just add a new one.)
  5. click Add key.

4. test it!

terminal
ssh -T git@gitlab.com

the very first time, it says something like "The authenticity of host 'gitlab.com' can't be established... Are you sure you want to continue connecting?" that's your computer saying "i've never met this server before." it's normal! type yes and press Enter. (super careful people compare the fingerprint it shows with the ones GitLab publishes. let's do it together the first time!)

type your passphrase, and you should see:

what you should see
Welcome to GitLab, @leah_bear!

🎉 GitLab knows it's you!!

5. switch your blog over to SSH. in your blog folder:

terminal (inside your blog folder)
git remote set-url origin git@gitlab.com:leah_bear/leah_bear.gitlab.io.git
git remote -v

the second command shows your remote address. it should start with git@gitlab.com: now instead of https://. next time you git push, git asks for your passphrase instead of popping up the browser. that's it!!

bonus: tired of typing your passphrase every push?

there's a helper called ssh-agent that remembers your unlocked key until you restart your laptop. setting it up on Windows takes a few steps:

open a terminal as administrator (Windows key → type terminal → right click → Run as administrator) and run:

admin terminal
Get-Service ssh-agent | Set-Service -StartupType Automatic
Start-Service ssh-agent

close that, then in a normal terminal:

terminal
ssh-add
git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"
  • ssh-add gives your key to the agent (it asks for your passphrase one last time).
  • the git config line tells git to use Windows' own SSH, which is the one that knows about the agent.
✝ ✝ ✝

help, something broke!!

first: you can't break anything permanently. git remembers everything. breathe =)

what you seetry this
hugo or git "is not recognized"close the terminal and open a new one. still broken? re-run the install from step 2.
the site works but looks totally plain (no styles)usually the theme is missing. run git submodule update --init --recursive, and check theme = 'PaperMod' in hugo.toml (capital P and M!).
my new post isn't showing upcheck for draft = false in the post. also check the date isn't in the future!
pipeline is red ✗click on it, then click the failed job to read the log. the error is usually near the bottom. copy it and show Judy, or paste it into an AI and ask "what does this mean?"
404 on the live sitewait a few minutes after the first deploy. check Deploy → Pages for the exact link. check the project is Public.
git push says "rejected" or "fetch first"GitLab has a change you don't have yet (maybe you edited on the website). run git pull, then git push again.
Permission denied (publickey)(only after the SSH side quest) GitLab doesn't recognize your key. run ssh -T git@gitlab.com to test. check that you pasted the .pub key into GitLab, and that it hasn't expired.
terminal is stuck in a weird screen with : at the bottompress q. (that's a text viewer, it's waiting for you to quit.)
terminal is stuck in a weird editor after git commityou forgot the -m "note" part! type :wq and press Enter to escape. (yes really lol, that's vim)