기본 콘텐츠로 건너뛰기

라벨이 Github blog인 게시물 표시

GITHUB 블로그를 Google 검색 엔진에 노출하기

요즘 GITHUB에 블로그를 생성하여 블로그 작성에 의욕을 불태우고 있는데, 아무래도 혼자만 만족하는 것보다 여러 사람들과 공유하는 것이 좋을 것 같아서 Google 검색 엔진에 노출하는 방법을 찾아 보았습니다. 저는 Chripy JekyII 테마를 이용하여 블로그를 만들었는데, Google 검색 엔진에 노출하는 방법은 찾아보면 많이 나와있어 여기서는 언급하지 않겠습니다. [Github Blog] Github blog를 Google 검색 엔진에 노출시키기 다만 제가 따라하면서 겪었던 오류에 대해서 이야기 해보겠습니다. 저는 아래와 같이 수작업으로 sitemap.xml을 생성하여 root폴더에 두었습니다. --- layout: null --- {% for post in site.posts %} {{ site.url }}{{ post.url }} {% if post.lastmod == null %} {{ post.date | date_to_xmlschema }} {% else %} {{ post.lastmod | date_to_xmlschema }} {% endif %} {% if post.sitemap.changefreq == null %} weekly {% else %} {{ post.sitemap.changefreq }} {% endif %} {% if post.sitemap.priority == null %} 0.5 {% else %} {{ post.sitemap.priority }} {% endif %} {% endfor %} 로컬에서 테스트하기 위해 http://localhost:4000/sitemap.xml을 호출하니 아래와 같은 오류가 발생했습니다. ...