검색엔진 노출을 위한 setting
참조
github repository
- repository를 다음과 같은 이름으로 생성
[id].github.io
현재구조
.vitepress/config.mts
typescriptsrcDir에 src를 기준으로 되어 있습니다.export default defineConfig({ srcDir: "src", sitemap: { hostname: "https://[id].github.io/", }, });
src/public
폴더 생성public
폴더에image
,robots.txt
, 소유권 인증을 위한 html이 위차하게 됩니다.build를
하면public의
파일이 root에 위치하게 됩니다.
robots.txt
robots.txt
파일을public
폴더에 생성
User-agent: *
Allow: /
Sitemap: https://[id].github.io/