Skip to content

Cannot #+INCLUDE files usign relative paths #26

@semente

Description

@semente

Considering the route below:

(weblorg-route
 :name "posts"
 :input-pattern "posts/*.org"
 :template "post.html"
 :output ".build/posts/{{ slug }}.html"
 :url "/posts/{{ slug }}.html")

And the files posts/post.org and posts/example.txt:

# post.org
#+INCLUDE: "example.txt"
# example.txt
Lorem ipsum...

I get an error when publishing the website:

Cannot include file /home/semente/pub/example.txt

To make this work I have to use #+INCLUDE: "posts/example.txt", which is not a big deal but I believe this is a bug. Perhaps the function that generates the HTML isn't switching to the directory of the file so it won't have the right context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingorg-mode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions