Closed rbarzic closed 4 years ago
If I add
#+TEMPLATE_DIR: ~/perso/github/o-blog/templates/
#+STYLE_DIR: ~/perso/github/o-blog/templates/style
I get the style directory to be copied. But the snippets for Copyrights/About... are not correct - They display the main text of the index page
o-blog branch 2.6, emacs 24.3.1, org-mode 8.3.1
When generating from org-mode file, the styles are not copied in the publishing directory, althhough #+TEMPLATE_DIR:
and #+STYLE_DIR
are properly set.
Moreover, when inspecting the generated index.html
file for the home (and any html generated file), there are strange lines relating to the head of the page :
<script src="./style/js/sidjs.min.js" async></script>
<script>
Lisp error in nil: (file-error Opening input file aucun fichier ou dossier de ce type /path-to-oblog/templates/style/js/runif.min.js)
Lisp error in nil: (file-error Opening input file aucun fichier ou dossier de ce type /path-to-oblog/templates/style/js/o-blog-init.min.js)
</script>
note that my #+TEMPLATE_DIR:
and #+STYLE_DIR
directives are set as :
#+TEMPLATE_DIR: /path-to-oblog/templates
#+STYLE_DIR: /path-to-oblog/style
Thus, the STYLE directive seems to be totally ignored by the publishing process, as it points to a subdirectory of templates/
Not sure what your issue is, but in my configuration the style directory is indeed copied. See https://github.com/cviebig/o-blog-example
Hi
While trying the git version of o-blog v2, I noticed a issue when rendering a simple org document
There is no style directory copied under the output folder
While if I'm rendering a markdown file located in the same location as the previous org file
the style directory got copied (there is an explicit message from emacs : Copying ~/perso/github/o-blog/templates/style/ -> out using copy-directory