Dave Rahardja on Nostr: I found something weird about #Jekyll’s `site.url` property: if I do local testing ...
I found something weird about #Jekyll’s `site.url` property: if I do local testing (`jekyll serve`) and then build the site (`jekyll build`), the `site.url` property seems to be off-by-one. In other words, `jekyll build` will often get the value of some localhost address in the production build, and `jekyll serve` gets the value of the deployment server.
This is really odd, because my _config.yml `url` property contains the actual site’s URL, which I override only in `jekyll serve` using command line options. My guess is that it’s some kind of caching problem in Jekyll. I’ve worked around it by removing all absolute URLs and using relative paths.
Am I doing something obviously wrong?
I’m running Jekyll 4.3.4 FWIW.
Published at
2026-11-25 00:15:52 UTCEvent JSON
{
"id": "ead1b235cb25ea369cf81b2abea76f7d656e60bd89be88684fc31ceacc896f7b",
"pubkey": "7ba61781e5f6682f687b3c4ed2a68568a9f4b1ca331cc1c55f984997b06d9240",
"created_at": 1795565752,
"kind": 1,
"tags": [
[
"t",
"jekyll"
],
[
"proxy",
"https://sfba.social/@drahardja/117674197173827134",
"web"
],
[
"proxy",
"https://sfba.social/users/drahardja/statuses/117674197173827134",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://sfba.social/users/drahardja/statuses/117674197173827134",
"pink.momostr"
],
[
"-"
]
],
"content": "I found something weird about #Jekyll’s `site.url` property: if I do local testing (`jekyll serve`) and then build the site (`jekyll build`), the `site.url` property seems to be off-by-one. In other words, `jekyll build` will often get the value of some localhost address in the production build, and `jekyll serve` gets the value of the deployment server.\n\nThis is really odd, because my _config.yml `url` property contains the actual site’s URL, which I override only in `jekyll serve` using command line options. My guess is that it’s some kind of caching problem in Jekyll. I’ve worked around it by removing all absolute URLs and using relative paths.\n\nAm I doing something obviously wrong?\n\nI’m running Jekyll 4.3.4 FWIW.",
"sig": "f344118e232c7bbd9e752646958d7bf95672074ba1c87a53a2adf8eeaa8c8a42947392ac7326056f1ee5d8b86973ef0bf340a3532da4b8875ac5c613047cf725"
}