Skip to content

Colocate images and other assets #1575

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2025
Merged

Colocate images and other assets #1575

merged 1 commit into from
Apr 15, 2025

Conversation

senekor
Copy link
Contributor

@senekor senekor commented Apr 15, 2025

closes #1574

Rendered

@senekor senekor force-pushed the senekor/zptttnzspqoy branch from dec7236 to 6c896f7 Compare April 15, 2025 19:11
@senekor
Copy link
Contributor Author

senekor commented Apr 15, 2025

This technically breaks permalinks to the images, but I don't think those are important.

@senekor senekor requested a review from Manishearth April 15, 2025 19:14
@senekor
Copy link
Contributor Author

senekor commented Apr 15, 2025

The summary is that this structure:

content/post.md
static/images/post/image.png

moved to this structure:

content/post/index.md
content/post/image.png

And the affected relative image links in the posts are fixed.

There are a small number of non-image assets that were also colocated, some Rust annual survey results posts had a bit of custom JS plus some random HTML file.

I tested pretty much every single asset manually (running zola serve).

@senekor senekor merged commit 299132b into master Apr 15, 2025
4 checks passed
@senekor senekor deleted the senekor/zptttnzspqoy branch April 15, 2025 19:26
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.

Broken images in blog post
2 participants