Blog › Jekyll

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.

Configuring Jekyll Chirpy basics in _config.yml

Jekyll Chirpy controls almost all site-wide branding, localization, comments, and analytics from a single _config.yml file at the project root. This guide covers the four core configuration blocks you should set right after initializing your repository.

Verified with jekyll-theme-chirpy v7.x and Jekyll 4.x. Remember to restart bundle exec jekyll serve after 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>.yml string table.
  • timezone: Determines how Jekyll interprets post timestamps (date) and whether a post is considered in the future when future: false is 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 joins site.url with paths that already start with /, so a trailing slash produces double-slash canonical URLs like https://namju.kim//posts/....


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

Chirpy sidebar showing the avatar, Korean title, and Korean tagline 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.links becomes 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:

ProviderStorage backendProsTrade-offs
UtterancesGitHub IssuesLightweight, zero ads, easy setup, Markdown + code blocksReaders need a GitHub account; mixes comments with repo Issues
GiscusGitHub DiscussionsThreaded replies and emoji reactions, separate from IssuesReaders need a GitHub account; requires Discussions enabled
DisqusThird-party SaaSNon-GitHub readers can comment via social loginHeavy 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

  1. Open the Utterances GitHub App page and click Install.
  2. 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.

Utterances comment widget rendered at the bottom of a Chirpy post 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:

Configuration checklist

  • lang, timezone, title, tagline, description, and url (no trailing slash) set
  • author, social.links, and avatar configured 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
This post is licensed under CC BY 4.0 by the author.