Skip to content

About

Source for my blog, 12488421.xyz

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Plzfday's blog

How to run the test server

bundle exec jekyll serve

Images

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
![Alt text]({{ site.image_base }}/<post-slug>/img-1234.jpg)

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.

Fonts

Pretendard is subset to the characters the site uses. After a post with rare characters, run scripts/subset_fonts.

Link-preview images

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

IndexNow

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.

About

Source for my blog, 12488421.xyz

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages