bundle exec jekyll serve
Add photos with the script. It resizes to 1600px, converts to sRGB JPEG,
strips all metadata (including GPS), saves to assets/images/<post-slug>/,
and prints the markdown to paste:
scripts/add_image <post-slug> ~/Desktop/IMG_1234.HEIC
A pre-commit hook rejects images over 1 MB and raw HEIC files. Enable it once per clone:
git config core.hooksPath .githooks
image_base in _config.yml points at /assets/images. To move images to another host later, change that one value.
Pretendard is subset to the characters the site uses. After a post with rare characters, run scripts/subset_fonts.
assets/og-default.png (Korean, site-wide), assets/og-en.png (English pages), and one assets/og/<slug>.png per post are rendered from scripts/og.html. The post images show the post's title, date, and category. The pre-commit hook renders them whenever a post is committed, and a post without an image falls back to the site image. To render by hand, for example after editing the template, run:
scripts/og_image
Naver, Bing and other IndexNow engines crawl a page as soon as they are told about it. After a new or updated post is live, run:
scripts/indexnow posts/<post-slug>
scripts/indexnow --all submits every URL in the live sitemap. The <key>.txt file at the repo root proves ownership of the domain, so keep it. Google does not support IndexNow.