Skip to content

fix(publish): keep date prefix in derived blog URL#48

Merged
superterran merged 1 commit into
mainfrom
fix/blog-url-keep-date
May 19, 2026
Merged

fix(publish): keep date prefix in derived blog URL#48
superterran merged 1 commit into
mainfrom
fix/blog-url-keep-date

Conversation

@superterran
Copy link
Copy Markdown
Contributor

Summary

Hugo's permalink for blog posts is /blog/YYYY-MM-DD-slug/, not /blog/slug/. publish.js was stripping the leading date, so the "Full post:" link inside every cross-post note has been 404'ing.

Verified:

  • /blog/2026-04-25-devops-matters-more-when-ai-writes-code/ → 200
  • /blog/devops-matters-more-when-ai-writes-code/ → 502

One-line fix in the slug derivation. {{url}} substitution in linkedin_copy automatically picks up the new value.

🤖 Generated with Claude Code

Hugo permalink for blog posts is /blog/YYYY-MM-DD-slug/, not /blog/slug/.
publish.js was stripping the leading date, generating URLs that 404.

The LinkedIn cross-post body has been carrying a broken "Full post:" link
since the rewrite. Pre-generated linkedin_copy uses {{url}} substitution,
so this single-line change fixes every existing and future post.
@superterran superterran merged commit f55b2ab into main May 19, 2026
1 check passed
@superterran superterran deleted the fix/blog-url-keep-date branch May 19, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant