Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

Image tag fixup makes some potentially inconsistent assumptions about paths #192

Open
jbmorley opened this issue Aug 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jbmorley
Copy link
Collaborator

jbmorley commented Aug 9, 2022

Looks like this:

image_url = (os.path.splitext(src[1:])[0] + "/").lower()
image_document = app.jinja_env.site.post(image_url)

Should probably look like this:

image_url = page.url_for_path(src[1:])
image_document = page.post(image_url)
@jbmorley jbmorley added the bug Something isn't working label Aug 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant