hexo 게시물 이미지 삽입

먼저 다음과 같이 일반적인 방법으로 마크다운에 이미지를 넣고 실행하면 절대경로로 이미지가 로드되지만 게시물에 접근하는 경로에 따라 링크가 바뀌면서 사진이 뜨지 않는 경우가 생긴다. 1 !(이미지 설명)[이미지 링크] ‘_config.yml’ 설정 변경 1 post_asset_folder: true post_asset_folder를 true로 변경하면 ‘hexo new (layout) [title]’명령어를 실행할 때마다 title과 동일한 이름의 폴더가 생성된다. 생성된 폴더에 이미지를 넣고 마크다운 문서에서 로드
Read More

Hexo 블로그에 Google AdSense 적용하기

사용하고 있는 테마 폴더의 ‘_config.yml’ 파일에서 애드센스 계정 설정을 해주면 된다 1 2 3 4 5 6 7 8 9 # Google AdSense unit configurations - # Where should the widget be placed, left sidebar or right sidebar position: left type: adsense # AdSense client ID client_id: 'pub-1234567890123456' # AdSense AD
Read More

Hexo 시작하기

준비하기 * 구름IDE 가입 * github 가입 구름IDE 컨테이너 만들기 * 로그인 * 대시보드 -> 새 컨테이너 생성 * 소프트웨어 스택 ‘Node.js’ 선택 hexo 설치 1 2 3 4 5 6 $ npm install -g npm // npm 버전 업그레이드 $ npm install hexo-cli -g $ hexo init hexoblog $ cd hexoblog $ npm install hexo 테마 다운로드 1 2 $ cd themes $ git clone [원하는 테마의 github 링크]
Read More

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick Start Create a new post 1 $ hexo new "My New Post" More info: Writing Run server 1 $ hexo s
Read More