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

Permalinks for images #456

Closed
igr opened this issue Mar 19, 2019 · 3 comments
Closed

Permalinks for images #456

igr opened this issue Mar 19, 2019 · 3 comments

Comments

@igr
Copy link

igr commented Mar 19, 2019

Let's say I have a folder posts. Each post has a subfolder with index.md and a few images used on a page (passthrough is turned on for images extension).

/posts
  /first-post
    index.md
    foo.jpg

This structure is rendered to e.g. out/posts/.... Everything works as expected.

If I want to change permalink for all posts (using /posts/posts.json), it will affect only the output of md files - but images will be copied in old folders.

How can I change the permalinks for the images, too?

I do not want to split images in separate folders, as they logically belong next to a page and I can write my article in visual markdown editor where I can preview the image. So the article and the image(s) should stay together.

@igr igr changed the title Permlinks for images Permalinks for images Mar 19, 2019
@zachleat
Copy link
Member

Hmm, is this a duplicate of #379? Looks like you commented over there too

Perhaps also tangentially related to #237.

@igr
Copy link
Author

igr commented Mar 22, 2019

@zachleat true, #379 seems similar.

in Hugo, for example, you have a concept of a bundle where everything that is in the same folder as index.md is considered as part of that page. I like this concept as the logical place where to put e.g. images etc is next to the MD file.

Maybe you can simply add a flag bundle: true that indicates that the whole folder is just a page :)

@zachleat
Copy link
Member

Let’s coalesce over at #379 if that’s okay with you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants