Setting up SEO, search consoles, and OpenGraph in Jekyll
Register a Jekyll Chirpy blog with Google, Bing, and Naver, inject verification tags via metadata-hook, fix sitemap fetch issues, and configure OpenGraph.
Writing a thorough troubleshooting post does little good if search engines never index it or if link previews show up as bare URLs in Slack and messaging apps. This guide covers registering a Jekyll Chirpy blog with Google, Bing, and Naver, injecting extra verification tags cleanly via
_includes/metadata-hook.html, verifyingsitemap.xml, and configuring OpenGraph preview cards.
Tested with Jekyll 4.4,
jekyll-theme-chirpy,jekyll-seo-tag, andjekyll-sitemap.
Why default Jekyll SEO isn’t quite enough
Jekyll and the Chirpy theme ship with solid SEO primitives—jekyll-seo-tag generates canonical links, JSON-LD metadata, and OpenGraph tags, while jekyll-sitemap builds sitemap.xml automatically. Still, out of the box, search engines don’t know you own the domain, third-party search portals outside Chirpy’s built-in config keys aren’t verified, and shared links fall back to a generic avatar unless you configure preview images properly.
Here is how the pieces fit together across _config.yml, Chirpy’s official extension hook, and the generated crawl files:
flowchart TD
Config["_config.yml<br/>(Google/Bing keys & OG defaults)"]
Hook["metadata-hook.html<br/>(Custom verification tags)"]
Sitemap["sitemap.xml & robots.txt"]
Search["Search Consoles<br/>(Google, Bing, Naver)"]
SNS["Social & Chat Previews<br/>(Slack, X, KakaoTalk)"]
Config --> Search
Hook --> Search
Sitemap --> Search
Config -.->|"og:image / og:description"| SNS
Prerequisites
Before starting, make sure:
- Your Jekyll blog is live on its target domain (for example,
https://namju.kim). If you’re still ongithub.io, see Connecting a custom domain and HTTPS to GitHub Pages first. - You have accounts ready for Google Search Console, Bing Webmaster Tools, and—if you publish in Korean or target Korean traffic—Naver Search Advisor (South Korea’s dominant search engine).
Step 1: Register with Google Search Console and Bing Webmaster Tools
Chirpy exposes built-in _config.yml keys for Google and Bing verification, so you don’t need to touch any layout HTML for these two.
1. Get the Google Search Console verification token
- Open Google Search Console and click Add property.
- Choose URL prefix and enter your full canonical origin (e.g.,
https://namju.kim). - Under verification methods, expand HTML tag.
- Copy only the
contentattribute value from<meta name="google-site-verification" content="..." />.
2. Connect Bing Webmaster Tools
Bing lets you import your verified sites and sitemaps directly from Google Search Console in a couple of clicks. If you prefer standalone HTML tag verification instead, copy Bing’s content token the same way.
3. Add both tokens to _config.yml
Paste the tokens into the webmaster_verifications block in _config.yml:
1
2
3
4
5
6
7
8
9
# _config.yml
# Webmaster Verification Settings
webmaster_verifications:
google: pWvXEtxit9b2Jb1BhT5gZwCnk7c4LKniU5aq1ftSCqM # Google Search Console content value
bing: 3FCE53F92232E6E585BBB5AA78FE69B2 # Bing Webmaster Tools content value
alexa:
yandex:
baidu:
Commit and deploy. Chirpy’s head.html automatically emits the <meta> tags inside <head> on every page.
Step 2: Inject extra verification tags via metadata-hook.html
If you need a verification tag that Chirpy doesn’t list in _config.yml—such as Naver Search Advisor for Korean readership, or a custom Mastodon/fediverse rel="me" link—do not copy _includes/head.html out of the Chirpy gem to edit it directly.
Overriding the full head.html freezes that file at the current gem version. The next time you upgrade jekyll-theme-chirpy, you’ll miss upstream script updates, CSP fixes, or new SEO fields.
Instead, use Chirpy’s official extension point: _includes/metadata-hook.html. Chirpy includes this file right before the closing </head> tag on every page.
Create _includes/metadata-hook.html in your repository and add your extra tags there:
1
2
3
4
5
<!-- _includes/metadata-hook.html -->
<!-- Custom metadata injected via Chirpy's official hook (included at the end of <head>) -->
<!-- Naver Search Advisor site verification -->
<meta name="naver-site-verification" content="858f23c87778195f1b40e45846a75a7f99cb6371">
Keeping custom
<head>tags isolated in_includes/metadata-hook.htmllets you upgrade the Chirpy gem cleanly without merge conflicts. You can also place AdSense scripts or custom stylesheet links in this same file.
After deploying, return to the search console and click Verify to confirm ownership.
Figure 1. Ownership verified in Google Search Console and Naver Search Advisor after deploying the meta tags.
Step 3: Check robots.txt and submit sitemap.xml
Chirpy bundles jekyll-sitemap, so every build generates sitemap.xml and robots.txt at your site root. Before submitting your sitemap, check that robots.txt isn’t accidentally blocking crawlers with Disallow: /.
Open https://<your-domain>/robots.txt in your browser and confirm it looks like this:
1
2
3
4
5
User-agent: *
Disallow: /norobots/
Sitemap: https://namju.kim/sitemap.xml
Figure 2. robots.txt at the site root allowing crawlers while pointing to sitemap.xml.
Next, submit the sitemap in each console:
- Google Search Console: Open Sitemaps in the sidebar, enter
sitemap.xml, and click Submit. - Bing Webmaster Tools: Open Sitemaps, click Submit sitemap, and enter
https://<your-domain>/sitemap.xml. - Naver Search Advisor (optional): Go to Request → Submit Sitemap, enter
sitemap.xml, and confirm.
Initial crawling and indexing usually take 2 to 7 days depending on domain age and crawl budget.
Step 4: Configure OpenGraph preview cards for Slack, X, and messengers
When someone drops a link to your post into Slack, Discord, X (Twitter), or KakaoTalk (South Korea’s primary messaging app), the client fetches OpenGraph tags (og:title, og:description, og:image) to render a rich preview card. Missing or broken og:image tags leave you with a plain text link.
1. Set a site-wide fallback image in _config.yml
Configure social_preview_image so pages without a dedicated cover image still display a recognizable thumbnail:
1
2
3
4
# _config.yml
# Site-wide fallback image for og:image when a post defines no image
social_preview_image: https://avatars.githubusercontent.com/cmsong111
2. Set a per-post cover image in Front Matter
For individual posts, declare an image block in Front Matter so each article renders its own diagram or screenshot as a large card:
1
2
3
4
5
6
7
8
---
title: "Setting up SEO, search consoles, and OpenGraph in Jekyll"
description: "Register a Jekyll Chirpy blog with search consoles and configure OpenGraph preview cards."
date: 2025-03-25 12:00:00 +0900
image:
path: /assets/images/2025-03-25/sns-opengraph-card-preview.png
alt: OpenGraph rich link preview card rendered in messenger apps
---
jekyll-seo-tagprepends_config.yml’surlvalue to relativeimage.pathentries to produce an absolute URL (https://namju.kim/assets/...). Ifurlis still empty or set tohttp://localhost:4000, every OpenGraph image URL will break in production.
Verification: inspecting tags and clearing preview caches
After deploying, verify the rendered HTML directly from the command line:
1
curl -sL https://namju.kim | grep -E "verification|og:image"
Confirm that your verification tokens and absolute og:image URL appear inside <head>.
Next, paste a post URL into a private Slack channel or messenger chat to check how the card renders.
Figure 3. A link preview from the Korean edition with the site title, description, and cover image.
If you updated an image or description and the old preview is stuck, flush the platform’s OpenGraph cache:
- Meta / Facebook: Facebook Sharing Debugger
- LinkedIn: LinkedIn Post Inspector
- KakaoTalk: Kakao Developers OG Cache Clear
Troubleshooting: Google Search Console stuck on “Couldn’t fetch” for sitemap.xml
A common frustration after launching a Jekyll site is seeing Couldn't fetch next to sitemap.xml in Google Search Console even though the file opens fine in your browser. Work through these three checks in order before changing anything.
1. Verify HTTP 200 and valid XML as Googlebot
Test the response headers and validate the XML payload using the Googlebot User-Agent:
1
2
3
4
5
6
# 1) Check HTTP status and Content-Type
curl -I https://namju.kim/sitemap.xml
# 2) Fetch as Googlebot and validate XML syntax
curl -sA "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" \
https://namju.kim/sitemap.xml | xmllint --noout - && echo "XML OK"
If you get HTTP/2 200, content-type: application/xml, and XML OK, the file itself is healthy.
2. Run “Test Live URL” in Search Console
Paste https://<your-domain>/sitemap.xml into the URL Inspection bar at the top of Google Search Console and click Test Live URL. If the result reports Page fetch: Successful, Google’s crawler can reach your sitemap with no network or TLS issues.
3. Clear stale entries and wait out the pending queue
When both curl and Live URL testing succeed, Couldn't fetch usually comes down to one of two causes:
- Stale early submission: If you submitted
sitemap.xmlright after connecting a custom domain—before Let’s Encrypt finished issuing the TLS certificate—or left an old subdomain sitemap entry behind, the failed status can stick. Open the sitemap entry, click the three-dot menu (⋮), choose Remove sitemap, and submitsitemap.xmlonce cleanly. - Pending queue mislabeled as an error: Google Search Console often displays
Couldn't fetchwhile a newly submitted sitemap is still sitting in its asynchronous crawl queue. Once Live URL testing confirmsPage fetch: Successful, wait 24 to 72 hours instead of repeatedly deleting and resubmitting.
Deleting and resubmitting a sitemap multiple times resets its position in Google’s crawl queue and delays processing further. Submit once after verifying Live URL access, then wait.
Summary checklist
webmaster_verificationsset in_config.ymlfor Google and Bing- Extra portal verification tags added in
_includes/metadata-hook.html(never by copyinghead.html) robots.txtchecked for accidentalDisallow: /andsitemap.xmlsubmittedurlandsocial_preview_imageconfigured in_config.yml, with per-postimageblocks in Front Mattercurlcheck run against live HTML andsitemap.xmlafter deployment