Comments (10)
Currently the #+include:
file does not work. But writing a piece of code to include the raw content of file could be easily done.
A quick look shows up the org-export-expand-include-keyword
would help.
I leave the post open since I won't be available for a couple of weeks.
from o-blog.
Can you please try to apply that patch:
diff --git a/o-blog.el b/o-blog.el
index 54eebcb..6791e61 100644
--- a/o-blog.el
+++ b/o-blog.el
@@ -664,6 +664,7 @@ headers and body."
(insert text)
(goto-char (point-min))
(org-mode)
+ (org-export-expand-include-keyword)
(while (<= 2 (save-match-data (funcall outline-level)))
(org-promote-subtree))
(run-hooks 'o-blog-html-plugins-hook)
from o-blog.
Thanks that doesn't work. I have had a look at org-exp.el and it looks as though using org-export-handle-include-files should work, but it doesn't. My elisp skills are very basic, so I am not sure why it isn't working.
from o-blog.
Ok I do not have any free time this week. I would be able to have a look at beginning of November to fix this.
Cheers.
from o-blog.
Thank you, meanwhile I'll see if I can fix it myself.
from o-blog.
A bit of progress - the following:
(defun org-publish-blog-sync (file)
"Publish FILE synchronously."
(with-current-buffer (or
(get-file-buffer file)
(find-file file))
(org-export-handle-include-files)
(run-hooks 'o-blog-before-publish-hook)
does correctly include all INCLUDE files, but the full included text ends up in sample.org. I guess I need to try and modify it so it creates a temp file, with all the inclusions then uses the temp file for the export.
from o-blog.
Any progress? I have asked the question in the org mailing list about this. It doesn't feel like the intended behaviour.
Message copy/pasted below:
In the current buffer, org-export-handle-include-file overwrites:
#+INCLUDE: "./some-other-file.org"
with contents of the other file. For example,
#+BEGIN_EXAMPLE
- other file header
:PROPERTIES:
:OTHER_PROPS: yes
:END:
Contents of the other file.
#+END_EXAMPLE
Is this the intended behaviour? Is there a method where you can use #+INCLUDE without overwriting the current buffer?
tony
from o-blog.
Can this solve in o-blog v2 ?
from o-blog.
The aim of V2 is to allow user to organize their files as they want.
Thus this might be possible. For the moment V2 is in a big early stage.
from o-blog.
isnt this fixed now? I use #INCLUDE all the time!
from o-blog.
Related Issues (20)
- o-blog-default.less refered in o-blog.less
- entire "contrib" dir seems missing HOT 1
- cant publish svg files HOT 5
- How can arrange image through embeded htlm code HOT 1
- htmlize version warning HOT 1
- Differences between rendering from org file and markdown HOT 3
- table definition is changed in archive HOT 2
- table definition is changed in archive HOT 1
- How to add all blog posts in a page, without this page also being listed in the Archives?
- Recognize blog posts by tag instead of DONE HOT 1
- getting nowhere HOT 8
- class="ob-share" HOT 1
- conf file settings ignored?
- custom font?
- Symbol's function definition is void: ob:register-backend
- version 2.6 snippets, archives and tags don't show in iOS
- Disqus, or what is the difference between blog_static.html and blog_static_no_title.html?
- Fail to load o-blog: invalid-slot-name when loading with emacs 25.x HOT 4
- M-x org-publish-o-blog not working HOT 2
- This project doesn't work in Emacs 25 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from o-blog.