[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] org-export-filter-final-output-functions
From: |
NULL |
Subject: |
[O] org-export-filter-final-output-functions |
Date: |
Fri, 12 May 2017 04:53:58 +0530 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
I want to setq org-export-filter-final-output-functions on per project
basis, is it possible?
I have #+INCLUDE: blog-header.inc in my org file with content:
#+BEGIN_EXPORT html
<!-- Page Header -->
<!-- Set your background image for this header on the line below. -->
<header class="intro-header" style="background-image:
url('../img/{{blog_img}}-post-bg.jpg')">
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-heading">
<h1>{{blog_header}}</h1>
<h2 class="subheading">{{blog_subheader}}</h2>
<span class="meta">Posted by <a href="#">nullx002</a>
on {{blog_date}}</span>
</div>
</div>
</div>
</div>
</header>
#+END_EXPORT
in my init file I have following:
(defun nullx002/org-blog-set-filter (output backend info)
"required to publish dynamic blog post headers from org-journal"
(setq output (replace-regexp-in-string "{{blog_img}}" (read-input "Image: ")
output ))
(setq output (replace-regexp-in-string "{{blog_header}}" (read-input "Head:
") output ))
(setq output (replace-regexp-in-string "{{blog_subheader}}" (read-input
"SubHeader: ") output ))
(setq output (replace-regexp-in-string "{{blog_date}}" (format-time-string
"%a, %b %d, %Y") output ))
output
)
(setq org-export-filter-final-output-functions '(nullx002/org-blog-set-filter))
It serves me well in replacing those entries from mini buffer for
journal/blog entries with M-x org-publish-current-file Only problem is
that function (org-export-filter-final-output-function) is universal and
asks for image, header, etc. for all org-files.
I want it only for a certain project with org-journal and not all
org-projects in (org-publish-project-alist). I have tried
:publishing-function but it doesn't work.
Is it even possible?
Thanks
--
~nullx002 (somewhere on pale blue dot)
github.com/nullx002
bitbucket.org/nullx002
twitter.com/nullx002
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] org-export-filter-final-output-functions,
NULL <=