logoalt Hacker News

marcosscrivenlast Sunday at 2:45 PM2 repliesview on HN

I’m talking about integrating with GitHub. Publishing to Cloudflare for instance is fine, but where do you put the images between drafting and publishing?

Or do you just check in images to GitHub and call it a day?


Replies

coder543last Sunday at 2:52 PM

I wasn't suggesting publishing to Cloudflare, just that if you're concerned about the complexity of the workflow of getting images into the CDN, simply fronting whatever host you're using with a CDN of some kind (which could be Cloudflare) will solve that.

Usually you just store the images in the same git repo as the markdown. How you initially host the static site once generated is up to you.

The problem with storing binaries in Git is when they change frequently, since that will quickly bloat the repo. But, images that are part of the website will ~never change over time, so they don't really cause problems.

show 1 reply
fsflyerlast Sunday at 6:25 PM

I commit the images alongside the markdown files in GitHub. My site is has numerous images and there are logical groups of posts. I make those logical groups of posts a git submodule, so I don't have all posts on my machine (or iPad) at one time.

Working Copy (git for iPad) handles submodules reasonably well, I have a few that I'm working on cloned on it and others are not so I don't use so much space.