구글에 깃허브 블로그(github.io) 노출시키기
개발 블로그의 목적에는 나만 보려고 개인적으로 기록물을 남기기 위함도 있겠지만,
그 내용을 남들과 공유할 때 빛을 발할 수 있겠죠!
하지만 Github Pages로 만든 깃허브 블로그는 별도의 설정을 해주지 않으면 구글 검색엔진에 잘 노출되지 않습니다.
남들이 만든 깃허브 블로그는 잘만 보이던데, 어떻게 하면 될까요?
바로 Google Search Console에 등록하면 됩니다.
Google Search Console
Google Search Console은 구글에서 제공하는 서비스로,
구글 검색결과에서 사이트를 돋보이게 할 수 있고, 나아가 검색 트래픽 및 실적을 확인할 수 있습니다.
위 링크를 들어가서 시작하기를 클릭합니다.
도메인이 있으면 좌측, 도메인 없이 지정된 url이 있으면 우측의 URL 접두어를 선택합니다.
저는 깃허브에서 제공하는 기본 url(github.io)를 그대로 사용하므로 우측으로 진행했습니다.
유효한 URL인지 확인되면 소유권을 확인하는 절차가 있습니다.
- HTML 파일: 웹사이트에 HTML 파일 업로드(권장)
- HTML 태그: 사이트 홈페이지에 메타태그 추가
- Google 애널리틱스: Google 애널리틱스 계정 사용
- Google 태그 관리자: Google 태그 관리자 계정 사용
- 도메인 이름 공급업체: DNS 레코드와 Google 연결
총 5가지 방법이 존재하지만, HTML 파일로 진행합니다.
다운로드받은 파일을 블로그 폴더의 루트 경로에 넣어줍니다.
소유권 확인만 됐을 뿐, 아직 Google 크롤러가 우리 블로그의 어떻게 크롤링 할줄 모릅니다.
크롤러가 열심히 일할 수 있도록 약간의 설정을 해줍시다.
sitemap.xml 생성
<details>
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://yongjunism.github.io/2022-12-13-minikube-start-error.html</loc>
<lastmod>2024-04-14T23:02:57+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/monologue/preparing-for-the-team-transfer.html</loc>
<lastmod>2024-04-14T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/review/about-cka.html</loc>
<lastmod>2024-03-31T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/tips/how-to-expose-github-blog-to-google.html</loc>
<lastmod>2024-03-17T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/review/hyundai-autoever-review.html</loc>
<lastmod>2024-03-03T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/velero-metrics.html</loc>
<lastmod>2024-02-18T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/velero-dashboard-configuration-with-prometheus-and-grafana.html</loc>
<lastmod>2024-01-21T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/how-to-make-prometheus-collect-velero-metrics.html</loc>
<lastmod>2024-01-21T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/velero-2.html</loc>
<lastmod>2024-01-05T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/velero-1.html</loc>
<lastmod>2023-12-10T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/monologue/geultto-map-of-life.html</loc>
<lastmod>2023-11-14T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/validation-failure-list-error.html</loc>
<lastmod>2023-11-09T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/cka-study-week1.html</loc>
<lastmod>2023-10-22T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/study/cka-study-day13.html</loc>
<lastmod>2023-04-13T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/study/cka-study-day10.html</loc>
<lastmod>2023-04-08T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/study/cka-study-day9.html</loc>
<lastmod>2023-04-07T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/study/cka-study-day7.html</loc>
<lastmod>2023-04-05T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/tips/how-to-expose-github-blog-to-google.html</loc>
<lastmod>2023-04-01T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/study/cka-study-day4.html</loc>
<lastmod>2023-03-31T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/study/cka-study-day3.html</loc>
<lastmod>2023-03-30T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/study/cka-study-day2.html</loc>
<lastmod>2023-03-29T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/study/cka-study-day1.html</loc>
<lastmod>2023-03-28T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/how-to-intall-git-through-homebrew-on-m2-mac-mini.html</loc>
<lastmod>2023-03-22T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/arrived-at-Port-Canary-near-Suvarnabhumi-airport.html</loc>
<lastmod>2023-02-22T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/i'm-leaving-for-bangkok-tomorrow.html</loc>
<lastmod>2023-02-21T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/i'll-take-a-rain-check-on-Musubi.html</loc>
<lastmod>2023-02-20T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/didn't-do-anything.html</loc>
<lastmod>2023-02-19T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/it's-working-out.html</loc>
<lastmod>2023-02-18T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/always-be-like-today.html</loc>
<lastmod>2023-02-17T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/distributing-office-supplies.html</loc>
<lastmod>2023-02-16T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/a-day-of-recovery.html</loc>
<lastmod>2023-02-15T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/i-got-a-raise-this-year.html</loc>
<lastmod>2023-02-14T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/the-reason-i-can't-sleep.html</loc>
<lastmod>2023-02-13T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/military-colleague's-wedding.html</loc>
<lastmod>2023-02-12T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/difficult-ppomppu.html</loc>
<lastmod>2023-02-11T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/i-guess-i-was-tired.html</loc>
<lastmod>2023-02-10T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/docker-container-tissue-case.html</loc>
<lastmod>2023-02-09T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/great-boast-and-small-roast.html</loc>
<lastmod>2023-02-09T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/docker-shaped-case-arrived.html</loc>
<lastmod>2023-02-07T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/damn-doorbell-next-door.html</loc>
<lastmod>2023-02-06T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/preparing-for-a-trip.html</loc>
<lastmod>2023-02-05T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/hungry-but-proud.html</loc>
<lastmod>2023-02-04T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/easy-friday.html</loc>
<lastmod>2023-02-03T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/finally-solved.html</loc>
<lastmod>2023-02-02T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/i-don't-know-what-i-know.html</loc>
<lastmod>2023-01-31T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/full-of-errors.html</loc>
<lastmod>2023-01-30T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/cheating-day.html</loc>
<lastmod>2023-01-29T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/company-senior-wedding.html</loc>
<lastmod>2023-01-28T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/company-senior's-wedding.html</loc>
<lastmod>2023-01-28T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/workout-at-morning-due-to-oversleeping.html</loc>
<lastmod>2023-01-27T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/going-to-work-through-the-snow.html</loc>
<lastmod>2023-01-26T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/the-end-of-the-holiday.html</loc>
<lastmod>2023-01-24T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/last-day-going-home.html</loc>
<lastmod>2023-01-23T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/fifth-day-at-kuala-lumpur-and-singapore.html</loc>
<lastmod>2023-01-22T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/fourth-day-at-kuala-lumur.html</loc>
<lastmod>2023-01-21T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/third-day-at-kuala-lumpur.html</loc>
<lastmod>2023-01-20T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/second-day-at-johorbaru-and-Melaka.html</loc>
<lastmod>2023-01-19T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/first-day-on-the-plane-to-Malaysia.html</loc>
<lastmod>2023-01-18T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/bonus-day.html</loc>
<lastmod>2023-01-17T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/first-free-sharing-through-daangn-market.html</loc>
<lastmod>2023-01-16T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/awesome-doctor-service-through-apps.html</loc>
<lastmod>2023-01-15T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/all-day-sleep-without-studying.html</loc>
<lastmod>2023-01-14T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/ojt-project-presentation.html</loc>
<lastmod>2023-01-13T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/stressful-day.html</loc>
<lastmod>2023-01-12T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/unintended-cheating-day.html</loc>
<lastmod>2023-01-11T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/new-router.html</loc>
<lastmod>2023-01-09T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/outing-to-seoul.html</loc>
<lastmod>2023-01-08T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/peaceful-day.html</loc>
<lastmod>2023-01-07T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/worked-alone.html</loc>
<lastmod>2023-01-06T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/working-remotely-for-three-days.html</loc>
<lastmod>2023-01-05T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/time-to-study-from-the-beginning.html</loc>
<lastmod>2023-01-04T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/being-on-a-diet.html</loc>
<lastmod>2023-01-03T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/university-reunion.html</loc>
<lastmod>2023-01-02T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/new-year-with-relatives.html</loc>
<lastmod>2023-01-01T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/diary/adios-2022-hello-2023.html</loc>
<lastmod>2022-12-31T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/yum-install-loading-mirror-speeds-from-cached-hostfile.html</loc>
<lastmod>2022-12-27T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/requested-access-to-the-resource-is-denied.html</loc>
<lastmod>2022-12-19T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/review/mobaxterm-for-ssh.html</loc>
<lastmod>2022-12-18T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/review/oreilly-kubeflow-operations-guide.html</loc>
<lastmod>2022-12-15T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/how-to-install-kubeflow.html</loc>
<lastmod>2022-12-13T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/what-is-kubeflow.html</loc>
<lastmod>2022-12-09T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/review/hyundai-autoever-review.html</loc>
<lastmod>2022-12-03T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/bash-shell-compare-string.html</loc>
<lastmod>2022-11-16T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
<url>
<loc>https://yongjunism.github.io/dev/add-applause-button-for-jekyll-post.html</loc>
<lastmod>2022-11-02T00:00:00+09:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
</urlset>
</details>
sitemap.xml 파일을 블로그 폴더의 루트 경로에 생성합니다.
위 코드를 복사, 붙여넣기하고 저장합니다.
robots.txt 생성
User-agent: *
Allow: /
Sitemap: https://yongjunism.github.io/sitemap.xml
앞으로 Google 크롤러는 robots.txt에 적힌 사이트 주소와 크롤링 정책을 바탕으로
우리 블로그의 내용을 수집하게 됩니다.
sitemap.xml 제출
좌측 Sitemaps 탭에서 우리의 sitemap.xml을 등록합시다.
아마 처음 등록할 때는 바로 ‘성공’으로 뜨지 않을텐데요. ‘사이트맵을 읽을 수 없음’, ‘실패’ 등등의 문구를 마주하실 확률이 높습니다.
앞서 진행한 절차에 문제가 있는 것은 아니니, 이제 며칠 간 인내심을 갖고 기다리시면 됩니다.
자, 이제 모든 과정이 끝났습니다.
저처럼 성공이라는 문구를 마주쳤다면 Google에 잘 검색될텐데요.
앞으로 신나게 글을 포스팅하시면 되겠습니다.