tlakh/publish.el

53 lines
1.5 KiB
EmacsLisp
Raw Normal View History

2022-12-02 15:51:07 +01:00
#!/usr/local/bin/emacs --script
(require 'package)
(package-initialize)
;; (setq package-archives '(("melpa" . "https://melpa.org/packages/")
;; ("elpa" . "https://elpa.gnu.org/packages/")
;; ("org" . "http://orgmode.org/elpa/")))
2022-12-02 15:51:07 +01:00
;; (unless package-archive-contents
;; (package-refresh-contents))
;; (unless (package-installed-p 'use-package)
;; (package-install 'use-package))
;; (require 'use-package)
2022-12-02 15:51:07 +01:00
(setq use-package-always-ensure t)
(use-package htmlize)
(require 'ox-publish)
(require 'ox-html)
(require 'htmlize)
(require 'org)
(setq org-html-htmlize-output-type 'css)
2022-12-02 16:11:34 +01:00
(setq org-export-time-stamp-file nil)
2022-12-02 15:51:07 +01:00
(setq org-html-validation-link nil)
2022-12-02 17:01:11 +01:00
(setq org-html-head-include-default-style nil)
2022-12-02 15:51:07 +01:00
(setq org-publish-project-alist
'(("tlakh"
2022-12-02 16:11:24 +01:00
:base-directory "/var/www/htdocs/"
:publishing-function org-html-publish-to-html
:publishing-directory "/var/www/htdocs/"
:section-numbers nil
:with-author nil
:with-email nil
:with-timestamps nil
:with-toc nil
:with-creator: nil
:time-stamp-file: nil
:html-postamble "<p class=\"date\">Published: %d</p>
<hr /><footer><nav><a href=\"/\">&lt; Home</a></nav>
Copyright &copy; 2014 - 2023 Florian Obser. All rights reserved.
</footer>"
2022-12-02 15:51:07 +01:00
:html-head-include-default-style: nil
:html-head "<link rel=\"stylesheet\" href=\"simple.min.css\" type=\"text/css\"/>
<link rel=\"stylesheet\" href=\"htmlize.min.css\" type=\"text/css\"/>
<link rel=\"stylesheet\" href=\"custom.css\" type=\"text/css\"/>")))
2022-12-02 15:51:07 +01:00
(org-publish "tlakh")