Skip to content

Use relative urls for images and links to other posts. #980

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
Jun 22, 2022

Conversation

m-ou-se
Copy link
Member

@m-ou-se m-ou-se commented Jun 1, 2022

This changes all relative urls in blog posts to use relative paths instead of absolute paths:

sed 's#\(\]: *\|\](\|="\)/#\1../../../#g' -i posts/*.md
sed 's#\(\]: *\|\](\|="\)/#\1../../../../#g' -i posts/inside-rust/*.md

See #967 (comment)

Copy link
Member

@rylev rylev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally both by opening directly and using a web server. Seems to work fine.

@rylev rylev merged commit b0f59d3 into rust-lang:master Jun 22, 2022
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.

2 participants