From db261a52b90c4e55eb3101ce46735e0befcbb448 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Sat, 22 Jul 2017 03:09:03 -0400 Subject: [PATCH] Add org-hugo-footer --- ox-hugo.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ox-hugo.el b/ox-hugo.el index 9c44eab..52cc229 100644 --- a/ox-hugo.el +++ b/ox-hugo.el @@ -92,6 +92,14 @@ directory where all Hugo posts should go by default." :type 'directory :safe 'stringp) +(defcustom org-hugo-footer "" + "String to be appended at the end of each Hugo post. + +The string needs to be in a Hugo-compatible Markdown format or HTML." + :group 'org-export-hugo + :type 'string + :safe 'stringp) + ;;; Define Back-End @@ -570,7 +578,10 @@ INFO is a plist holding export options." "\\(:[a-z0-9]+\\)[\\]\\(_[a-z0-9]+:\\)" "\\1\\2" body)) - (format "%s\n%s" (org-hugo--get-front-matter info) body)) + (format "%s\n%s%s" + (org-hugo--get-front-matter info) + body + org-hugo-footer)) ;;;;; Hugo Front Matter (defun org-hugo--quote-string (val &optional prefer-no-quotes)