Skip to content
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

Refactor link transforming #109

Merged
merged 4 commits into from
Jan 23, 2022
Merged

Refactor link transforming #109

merged 4 commits into from
Jan 23, 2022

Conversation

teesloane
Copy link
Owner

  • refactor: make site baseurl into it's own struct.
  • construct links using the baseurl struct's "build" method.
  • fix: files in a subfolder can now link to sibling files without resulting in a dead link.

if you have a file foo/bar/my_file.org and it has a link of file:another_file.org, before - this be a dead link, now, we grab the parent directories of the file that the link is found in and reconstruct the link so that file:another_file.org becomes :foo/bar/another_link.html.

@teesloane teesloane merged commit 96efcd1 into master Jan 23, 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.

1 participant