블로그 운영
Astro
블로그
- sungd.uk: 생각, 독서, 일상에 대한 글을 올린다.
- tech.sungd.uk: ML, 개발 환경, 도구에 대한 글을 올린다.
스택
두 블로그 모두 Astro로 구성되어 있다. Jekyll, Hugo, Notion, Obsidian Publish 등을 검토했으나 빠르고 마음에 드는 템플릿이 있어 Astro를 선택했다.
코드 수정은 Claude Code로 처리한다.
Obsidian 글쓰기 팁
HTML 태그 단축키로 감싸기
<mark>나 <sup> 같은 HTML 태그를 자주 쓴다. 매번 직접 입력하는 것이 번거롭다. Templater 플러그인을 쓰면 텍스트를 선택하고 단축키 하나로 처리할 수 있다.
1. Templater 설치
Settings → Community plugins → Templater 설치 후 활성화
2. 템플릿 폴더 지정
Settings → Templater → Template folder location에 Templates 입력
3. 템플릿 파일 생성
Templates/wrap-mark.md
<%* tR += `<mark>${tp.file.selection()}</mark>` %>
Templates/wrap-sup.md
<%* tR += `<sup>${tp.file.selection()}</sup>` %>
4. 단축키 지정
Settings → Templater → Template Hotkeys → +
wrap-mark.md→⌘⇧Mwrap-sup.md→⌘⇧U
감싸고 싶은 텍스트를 드래그 → 단축키 → 완료. 다른 태그도 같은 방식으로 추가할 수 있다.