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.
Considering the route below:
And the files
posts/post.organdposts/example.txt:I get an error when publishing the website:
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.