Your blog is live on GitHub Pages. But try searching for it on Google. It might not show up. SEO is a way to make a blog easy to find in a search engine. For Google to find your blog, there are a few basics to set up. Google also needs to read and display your blog in search results. They’re all free. They need no server. You only have to do them once. Here’s the checklist.

A 9-point SEO checklist for a GitHub Pages blog: sitemap, robots.txt, canonical, meta description, JSON-LD, Open Graph, one H1, alt text, and internal links

Figure 1: A 9-point SEO checklist for a GitHub Pages blog.

1. Sitemap.xml — A List of All Pages

sitemap.xml is a list of all the pages on your blog. The list includes the date each page was last modified. That date is called lastmod. Google reads this file to discover new pages on your blog. Create a sitemap.xml file in the repository root. The root is the top folder in the repository. Add one <url> block for each page:

<?xml version="1.0" encoding="UTF-8"?>

            <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

              <url>

                <loc>https://kodename-jpg.github.io/</loc>

                <lastmod>2026-11-26</lastmod>

              </url>

              <url>

                <loc>https://kodename-jpg.github.io/tutorial.html</loc>

                <lastmod>2026-11-26</lastmod>

              </url>

            </urlset>

            <?xml version="1.0" encoding="UTF-8"?>

            <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">

              <url>

                <loc>https://kodename-jpg.github.io/</loc>

                <lastmod>2026-11-26</lastmod>

              </url>

              <url>

                <loc>https://kodename-jpg.github.io/tutorial.html</loc>

                <lastmod>2026-11-26</lastmod>

              </url>

            </urlset>

Every time you add a new page, add another <url> block. Update lastmod whenever a page’s content changes.

Tip: A sitemap doesn’t guarantee a page gets indexed right away. Indexed means the page is already on Google’s list. A sitemap only helps Google find your pages. Indexing still takes time.

2. robots.txt — Tell Google Which Pages It May Read

robots.txt tells search engines which pages they may read. A search engine is a tool like Google. Place this file in the repository root. Place it next to sitemap.xml:

User-agent: *

            Allow: /

            Sitemap: https://kodename-jpg.github.io/sitemap.xml

            User-agent: *

            Allow: /

            Sitemap: https://kodename-jpg.github.io/sitemap.xml

Allow: / means all pages may be read. The Sitemap: line points to your sitemap’s location. Google can find it right away.

3. Canonical — One Official URL per Page

The canonical tag tells Google which URL is the official one for a page. A canonical is a marker for the official URL. This matters when one page can be opened through several addresses. Without a canonical, Google may treat them as different pages. Place it inside the <head> of each page. Use an absolute URL. An absolute URL is a full address with the https:// domain:

<link rel="canonical" href="https://kodename-jpg.github.io/nama-halaman.html">

            <link rel="canonical" href="https://kodename-jpg.github.io/nama-halaman.html">

4. A Unique Meta Description for Each Page

A meta description is a 120–160 character summary that appears under the title in search results. Each page needs its own description. The description explains what that page is about. Don’t copy and paste it from another page:

<meta name="description" content="An SEO checklist for a static blog on GitHub Pages: sitemap, robots.txt, canonical, JSON-LD, and a 1200x630 share image.">

            <meta name="description" content="An SEO checklist for a static blog on GitHub Pages: sitemap, robots.txt, canonical, JSON-LD, and a 1200x630 share image.">

Warning: Don’t use the same description on every page. Google may treat those pages as duplicates of each other. A duplicate means Google sees them as the same.

5. JSON-LD BlogPosting — Structured Data

JSON-LD is structured data that helps Google understand your page. Structured data is extra info in a standard format. JSON-LD tells Google: this is an article, this is its title, this is its author, this is its publication date. Place it inside <head>. Use the BlogPosting type from schema.org:

<script type="application/ld+json">

            {

              "@context": "https://schema.org",

              "@type": "BlogPosting",

              "headline": "Judul Tutorial",

              "description": "Ringkasan isi tutorial.",

              "datePublished": "2026-11-26",

              "author": {

                "@type": "Person",

                "name": "Febriyan"

              }

            }

            </script>

            <script type="application/ld+json">

            {

              "@context": "https://schema.org",

              "@type": "BlogPosting",

              "headline": "Judul Tutorial",

              "description": "Ringkasan isi tutorial.",

              "datePublished": "2026-11-26",

              "author": {

                "@type": "Person",

                "name": "Febriyan"

              }

            }

            </script>

Dates use the YYYY-MM-DD format. Once it’s in place, check the result in Google’s Rich Results Test. If something is wrong, the tool will show you the problematic line.

6. Open Graph — An Appealing Share Preview

When a blog link is shared on WhatsApp, Facebook, or Telegram, its appearance comes from the Open Graph tags. Open Graph is a marker for the preview when a link is shared. Without og:image, the preview is plain with no image. People are less likely to click. Add these tags inside <head>:

<meta property="og:title" content="Judul Tutorial — Kodename JPG">

            <meta property="og:description" content="Ringkasan isi tutorial.">

            <meta property="og:image" content="https://kodename-jpg.github.io/img/og-image.jpg">

            <meta property="og:image:width" content="1200">

            <meta property="og:image:height" content="630">

            <meta property="og:image:alt" content="Kodename JPG — Tutorial Linux, Web & AI Agent">

            <meta property="og:title" content="Judul Tutorial — Kodename JPG">

            <meta property="og:description" content="Ringkasan isi tutorial.">

            <meta property="og:image" content="https://kodename-jpg.github.io/img/og-image.jpg">

            <meta property="og:image:width" content="1200">

            <meta property="og:image:height" content="630">

            <meta property="og:image:alt" content="Kodename JPG — Tutorial Linux, Web & AI Agent">

The ideal share image is 1200 × 630 pixels. The ratio is 1.91:1, width to height. The format is JPG or PNG. One image for all pages is enough. If you want, each article can use its own image.

The og:image share image size of 1200x630 pixels and an example preview when a blog link is shared

Figure 2: The 1200 × 630 share image size and an example preview when a link is shared.

Tip: Twitter Card (twitter:card) is optional. Open Graph is enough for previews in most apps. This blog doesn’t use Twitter tags at all.

7. One H1 and a Correct Heading Hierarchy

Each page should have just one <h1>, the page’s main title. Its sections use <h2>. Sub-sections use <h3>. Don’t jump from h1 straight to h3. Don’t use h2 just to make text bigger. If you want big text, set it through CSS.

Warning: More than one H1 on a page makes it hard for Google to determine that page’s main topic.

8. Alt Text on All Images

Alt text describes an image for readers whose images don’t load. Alt text is replacement text for an image. It also helps Google, which can’t “see” images. Write it short and specific about what’s in the image:

<img src="img/diagram-seo-checklist.svg" alt="Checklist 9 poin SEO untuk blog GitHub Pages">

            <img src="img/diagram-seo-checklist.svg" alt="Checklist 9 poin SEO untuk blog GitHub Pages">

If an image is purely decorative, alt may be left empty (alt=""). But tutorial images should always have alt text.

Links between pages on the blog should be root-relative. Root-relative means a link starts with a slash from the domain root. For example href="/en/tutorial.html". Links like this stay correct even if the page is moved to another folder:

<a href="/tutorial.html">Tutorial</a>

            <a href="/tutorial.html">Tutorial</a>

Avoid relative links like href="tutorial.html" when your page is in a subfolder. The link can break.

How to Submit Your Sitemap to Google Search Console

To help Google find your sitemap quickly, submit it directly through Google Search Console. Google Search Console is a free Google tool for site owners.

1. Open search.google.com/search-console and sign in with your Google account.

2. Add a property with your blog’s address, for example kodename-jpg.github.io.

3. Verify ownership. Verify means proving the blog is yours. Upload the verification HTML file or paste the meta tag Google gives you.

4. Open the Sitemaps menu, enter sitemap.xml, then click Submit.

5. Wait for Google to read your sitemap.

How to Check the Results

In Search Console, open the Performance menu. There you’ll find impressions. Impressions means how many times your blog appeared in search results. There you’ll find clicks. Clicks means how many times it was clicked. There you’ll find average position. Average position means its average position in search results. Also check the Pages menu to see which pages are already indexed and which aren’t yet.

It takes a few days to weeks for pages to get indexed. A 0 in the first week is normal. What matters is that the numbers slowly rise over time.

Tip: Don’t panic if the first week is still 0, because Google needs time to crawl and index a new site. While waiting, keep adding content.

Common Mistakes

  • The same meta description on every page.
  • No canonical — Google guesses each page’s official URL on its own.
  • Images without alt text.
  • More than one H1 on a page.
  • The sitemap isn’t updated after adding a new page.

References

  1. Google Search Central — SEO Starter Guide
  2. Google Search Central — Build and submit a sitemap
  3. Schema.org — BlogPosting