aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-09-17 14:40:17 +0100
committerYann Herklotz <git@yannherklotz.com>2021-09-17 14:40:17 +0100
commit5a9b950358e435c9960b4866df1e1f965504eb11 (patch)
treea081899a657f8ccee5ad40ecd6188af04676fc82
parent46f5153f4093be6e9b38ad13f67d50290069ba0b (diff)
downloadyannherklotz.com-5a9b950358e435c9960b4866df1e1f965504eb11.tar.gz
yannherklotz.com-5a9b950358e435c9960b4866df1e1f965504eb11.zip
Put function into publish
-rw-r--r--publish.el7
-rw-r--r--setup.org9
2 files changed, 7 insertions, 9 deletions
diff --git a/publish.el b/publish.el
index f18c449..fead8ba 100644
--- a/publish.el
+++ b/publish.el
@@ -9,4 +9,11 @@
(require 'ox)
(require 'ox-hugo)
+(setq org-export-use-babel 'inline-only)
+
+(defun ymhg/link (arg1 arg2)
+ (cond
+ ((eq 'hugo org-export-current-backend) arg1)
+ (t arg2)))
+
(org-hugo-export-wim-to-md :all-subtrees)
diff --git a/setup.org b/setup.org
index f4b5bb6..b32ef56 100644
--- a/setup.org
+++ b/setup.org
@@ -1,13 +1,4 @@
#+hugo_base_dir: ./
#+hugo_section: ./
-#+begin_src emacs-lisp :exports results :results none
-(setq org-export-babel-evaluate 'inline-only)
-
-(defun ymhg/link (arg1 arg2)
- (cond
- ((eq 'hugo org-export-current-backend) arg1)
- (t arg2)))
-#+end_src
-
#+macro: link src_emacs-lisp[:results raw]{(ymhg/link "$1" "$2")}