Configuring Jekyll Chirpy basics in _config.yml
Configure site metadata, locale and timezone, sidebar social links, Utterances comments, and GoatCounter or GA4 analytics in Jekyll Chirpy's _config.yml.
Jekyll Chirpy controls almost all site-wide branding, localization, comments, and analytics from a single
_config.ymlfile at the project root. This guide covers the four core configuration blocks you should set right after initializing your repository.
Verified with
jekyll-theme-chirpyv7.x and Jekyll 4.x. Remember to restartbundle exec jekyll serveafter editing_config.yml, because Jekyll does not hot-reload this file.
How Chirpy reads _config.yml
In Jekyll, _config.yml populates the global site Liquid object at build time. Chirpy’s layouts, SEO tags (jekyll-seo-tag), RSS feed, and sidebar partials all read directly from it.
The default _config.yml in chirpy-starter contains over 200 lines of comments and optional integrations, which makes it easy to miss what actually matters on day one. I group the initial setup into four concrete areas:
flowchart TD
A["_config.yml"] --> B["1. Site metadata and locale"]
A --> C["2. Sidebar profile and social links"]
A --> D["3. Reader comments (Utterances)"]
A --> E["4. Analytics (GoatCounter / GA4)"]
Step 1: Site metadata, language, and timezone
First, set the UI language, timezone, and core branding fields. These values appear in the browser title bar, OpenGraph cards, RSS feed, and structured JSON-LD data.
Language and timezone
Chirpy ships built-in translation dictionaries under _data/locales/. Changing lang automatically localizes UI labels such as reading time, relative dates, and navigation tabs:
1
2
3
# _config.yml
lang: ko # Use "en" for an English site
timezone: Asia/Seoul # Set to your IANA timezone (e.g., America/New_York, UTC)
lang: Controls both<html lang="...">and the_data/locales/<lang>.ymlstring table.timezone: Determines how Jekyll interprets post timestamps (date) and whether a post is considered in the future whenfuture: falseis active.
Branding and canonical URL
1
2
3
4
5
6
7
# _config.yml
title: Namju's Commit Log
tagline: Engineering notes, troubleshooting, and things learned along the way.
description: >-
Backend engineering notes on Kotlin, Spring Boot, JPA, Docker, and
running a static technical blog on GitHub Pages.
url: "https://namju.kim" # Production domain without a trailing slash
Never add a trailing slash to
url(write"https://namju.kim", not"https://namju.kim/"). Jekyll joinssite.urlwith paths that already start with/, so a trailing slash produces double-slash canonical URLs likehttps://namju.kim//posts/....
Step 2: Sidebar profile and social links
Chirpy’s left sidebar displays your avatar, site title, tagline, and social icons. You wire those up through the author (or _data/authors.yml for multi-author sites) and social blocks:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# _config.yml
# Default author metadata for SEO and RSS feeds
author:
name: Namju Kim
twitter: # Optional X/Twitter handle without @
# Sidebar profile and social links
social:
name: Namju Kim
email: contact@namju.kim
links:
- https://github.com/cmsong111 # First link is used as the profile link
- https://www.linkedin.com/in/kimnamju/
avatar: /assets/img/avatar.png # Local path or full image URL
Figure 1. The sidebar on the Korean edition after I configured the author metadata, avatar, and social links.
Two small details to keep in mind:
- The first entry in
social.linksbecomes the default target when a reader clicks your name in the footer or JSON-LD author schema. - Store the avatar locally under
assets/(or serve it via your image CDN) rather than hotlinking an external profile picture that may change URLs or rate-limit requests.
Step 3: Reader comments with Utterances
Chirpy supports three comment providers out of the box: Disqus, Giscus, and Utterances. Here is how they compare for a developer blog:
| Provider | Storage backend | Pros | Trade-offs |
|---|---|---|---|
| Utterances | GitHub Issues | Lightweight, zero ads, easy setup, Markdown + code blocks | Readers need a GitHub account; mixes comments with repo Issues |
| Giscus | GitHub Discussions | Threaded replies and emoji reactions, separate from Issues | Readers need a GitHub account; requires Discussions enabled |
| Disqus | Third-party SaaS | Non-GitHub readers can comment via social login | Heavy scripts, tracking cookies, ads on free tier |
When not to use Utterances
If your audience is mostly non-developers who do not have GitHub accounts, Utterances creates too much friction. Likewise, if you already use GitHub Issues heavily to track blog bugs and want threaded replies, Giscus is usually the better fit.
Install the Utterances GitHub App
- Open the Utterances GitHub App page and click
Install. - Grant access to the public repository where comment issues should live (private repositories cannot render Utterances threads to visitors).
Enable Utterances in _config.yml
1
2
3
4
5
6
# _config.yml
comments:
provider: utterances # [disqus | giscus | utterances]
utterances:
repo: cmsong111/blog # [owner/repo]
issue_term: pathname # Maps each post's URL path to a GitHub Issue
Using issue_term: pathname ties each thread to the post’s URL path (/posts/<slug>/), so editing a post title later will not orphan existing comments.
Figure 2. Utterances comment box rendered below a post with GitHub sign-in.
Step 4: Analytics and pageviews (GoatCounter and GA4)
Knowing which posts bring organic search traffic helps decide what to write or update next. Chirpy supports both privacy-friendly pageview counters and full web analytics.
Lightweight pageviews with GoatCounter
GoatCounter tracks pageviews without tracking cookies or GDPR consent banners, and Chirpy integrates it directly into the post header to display per-post view counts:
1
2
3
4
5
6
7
# _config.yml
analytics:
goatcounter:
id: cmsong111 # Your GoatCounter site code
pageviews:
provider: goatcounter # Displays view counts at the top of each post
Detailed traffic analysis with Google Analytics 4
If you want search query funnels, retention reports, or AdSense integration, you can run GA4 alongside GoatCounter:
1
2
3
4
# _config.yml
analytics:
google:
id: G-XXXXXXXXXX # Replace with your GA4 Measurement ID
Note that Chirpy only injects analytics scripts when JEKYLL_ENV=production is set. You will not see analytics network requests during local bundle exec jekyll serve runs, which keeps your own local previews from skewing traffic counts.
Caveats and verification checklist
A few operational gotchas come up frequently right after editing _config.yml:
- Restart the dev server:
jekyll serve --livereloadwatches Markdown and SCSS files, not_config.yml. Stop the server withCtrl+Cand start it again to see configuration changes. - Check
JEKYLL_ENV=productionbefore debugging missing scripts: If analytics or comment widgets appear missing locally, verify how the built HTML looks withJEKYLL_ENV=production bundle exec jekyll build. - Keep custom domains and SEO separate: Once the base
_config.ymlworks, you can move on to connecting a custom domain with HTTPS, setting up search consoles and social preview cards, or keeping Chirpy’s table of contents expanded.
Configuration checklist
lang,timezone,title,tagline,description, andurl(no trailing slash) setauthor,social.links, andavatarconfigured and verified in the sidebar- Utterances GitHub App installed on a public repository with
issue_term: pathname - GoatCounter and/or GA4 IDs added and verified in a production build