simonw / til

Today I Learned

Home Page:https://til.simonwillison.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Social media cards missing syntax highlighting

simonw opened this issue · comments

e.g. https://til.simonwillison.net/sqlite/python-sqlite-memory-to-file

It looks like this:

image

Should look like this:

image

Here's the problem:

<link rel="stylesheet" href="/static/github-light.css">

I generate the HTML on disk and then take a screenshot of that HTML file - but that relative link won't resolve to a CSS file.

That's going to require regenerating all 410 screenshots AGAIN - for the third time - because the template hash will have changed.