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

Link support #194

Open
lsankar4033 opened this issue Jul 13, 2016 · 8 comments
Open

Link support #194

lsankar4033 opened this issue Jul 13, 2016 · 8 comments

Comments

@lsankar4033
Copy link

Is there a good way to define relative links to other parts of my org-page-site from a given page? Currently I'm just using absolute links based on my actual site URL, but that feels a bit janky.

@sillykelvin
Copy link
Collaborator

Sorry, currently only image links are supported to convert automatically. :-(

@tsdh
Copy link

tsdh commented Oct 22, 2016

I'm using org-page since today and that's a question I've also just had. That would be a very welcome addition.

@KelvinH Images would have been my next question. Consider I write a posting with many images, where would I put the images and how would I link them?

@sillykelvin
Copy link
Collaborator

Org-page do support image links and can convert them automatically, you can just put them in your repo, with a folder named like "images" or something else.

However, blog post links are hard to process, because they will change when converting from org to html, Org-page does not have the idea what the generated html file location is because user can define their own uri-generator.

@tsdh
Copy link

tsdh commented Oct 23, 2016

Couldn't you process all org files of all categories first building a hash-map from file names to generated URIs and then use that for adjusting the links?

WRT images, there's no restriction on where I put them, right? I'd possibly put then in a folder named according to the post so that I would have posts/Foo.org and posts/Foo/p1.jpg and posts/Foo/p2.jpg.

@sillykelvin
Copy link
Collaborator

Yes, of course it could be done, I just say "hard" but not "can not", due to my limited free time on this project...

@tsdh
Copy link

tsdh commented Oct 23, 2016

Would you accept a PR for this in case I find some spare time?

@sillykelvin
Copy link
Collaborator

Yes of course, definitely welcome!

jixiuf added a commit to jixiuf/org-page that referenced this issue Feb 3, 2017
jixiuf added a commit to jixiuf/org-page that referenced this issue Feb 3, 2017
jixiuf added a commit to jixiuf/org-page that referenced this issue Feb 3, 2017
jixiuf added a commit to jixiuf/org-page that referenced this issue Feb 8, 2017
@stardiviner
Copy link

I think this would be better to be in Org-mode built-in. I use Org-mode babel to generate inline image result link a lot.

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

No branches or pull requests

4 participants