From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Panchekha Subject: Relative links and #+include: Date: Mon, 27 Jul 2015 22:36:13 -0700 Message-ID: <1438061773.1354.1@smtp.gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-4R0nzcxJZEnrg5St7EnJ" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJxYo-0002IH-ND for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 01:36:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJxYn-0006Uy-MG for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 01:36:18 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:33895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJxYn-0006UM-3h for emacs-orgmode@gnu.org; Tue, 28 Jul 2015 01:36:17 -0400 Received: by pacan13 with SMTP id an13so65060272pac.1 for ; Mon, 27 Jul 2015 22:36:15 -0700 (PDT) Received: from thinkpad ([2601:602:8a00:15db:6e88:14ff:fec3:7430]) by smtp.gmail.com with ESMTPSA id c8sm22637578pdj.59.2015.07.27.22.36.14 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jul 2015 22:36:14 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-4R0nzcxJZEnrg5St7EnJ Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable I create the RSS feed for my blog with a file that #+include:'s the=20 various blog posts; this way, when I export it to RSS using ox-rss.el,=20 the full text of each blog post is in the feed. The feed is generated=20 from a file called "/rss.org", and the blog posts themselves are=20 located in "/blog/*.org". I've noticed that when a post has a relative link to another post,=20 images, or source code, that link is broken. For example, when a post=20 in "/blog/zippers/huet.org" links to "kiselyov.org", which should be a=20 link to the page "/blog/zippers/kiselyov.org", the link is instead=20 interpreted as a link to "/kiselyov.org", since the post is being=20 #+include:'d into a file in "/". Is there any way to advise the #+include: process to resolve relative=20 links correctly? Or a better way to include Org files in one another? =E2=80=94Pavel Panchekha = --=-4R0nzcxJZEnrg5St7EnJ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I create the RSS feed for my blog with a file that #+include:'s the various= blog posts; this way, when I export it to RSS using ox-rss.el, the full te= xt of each blog post is in the feed. The feed is generated from a file call= ed "/rss.org", and the blog posts themselves are located in "/blog/*.org".<= div>
I've noticed that when a post has a relative link to ano= ther post, images, or source code, that link is broken. For example, when a= post in "/blog/zippers/huet.org" links to "kiselyov.org", which should be = a link to the page "/blog/zippers/kiselyov.org", the link is instead interp= reted as a link to "/kiselyov.org", since the post is being #+include:'d in= to a file in "/".

Is there any way to advise the #= +include: process to resolve relative links correctly? Or a better way to i= nclude Org files in one another?

= =E2=80=94Pavel Panchekha
= --=-4R0nzcxJZEnrg5St7EnJ--