티스토리는 별도 설정 없이 검색엔진에 자동으로 노출이 되었던 걸로 기억하는데 (구글검색) 헥소 블로그는 플러그인을 통해서 SEO가 가능하다

설치 플러그인 목록

1
2
3
4
5
npm install --save hexo-auto-canonical
npm install --save hexo-autonofollow
npm install --save hexo-generator-feed
npm install --save hexo-generator-seo-friendly-sitemap
npm install --save hexo-generator-robotstxt

_config.yml 파일에 추가

루트 폴더(테마폴더x)에 있는 _config.yml 파일에 다음과 같이 작성한다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
nofollow:
enable: true
exclude:
- exclude1.com
- exclude2.com
feed:
type: rss2
path: rss2.xml
limit: 20
sitemap:
path: sitemap.xml
tag: false
category: false
robotstxt:
useragent: "*"
allow:
- /
sitemap: https://youngjunsung.github.io/sitemap.xml

html head에 추가

1
2
3
4
5
<!-- ejs -->
<%- autoCanonical(config, page) %>

<!-- jade -->
| !{ autoCanonical(config, page) }

검색엔진에 등록하기

구글

색인 > sitemaps 에서 rss2.xml과 sitemap.xml 파일을 제출한다.

네이버

사이트 인증 후 rss2.xml과 sitemap.xml 파일을 제출한다.

다음

사이트 정보만 입력해주면 된다.