tlakh/publish.el

63 lines
1.7 KiB
EmacsLisp
Executable File

#!/usr/local/bin/emacs --script
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t)
(add-to-list 'package-archives
'("org" . "http://orgmode.org/elpa/") t)
(package-initialize)
(unless package-archive-contents
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
(use-package auto-package-update
:custom
(auto-package-update-interval 7)
(auto-package-update-prompt-before-update nil)
(auto-package-update-hide-results t)
:config
(auto-package-update-maybe))
(use-package org
:pin org)
(use-package htmlize)
(require 'ox-publish)
(require 'ox-html)
(require 'htmlize)
(setq org-html-doctype "html5")
(setq org-html-htmlize-output-type 'css)
(setq org-export-time-stamp-file nil)
(setq org-html-validation-link nil)
(setq org-html-head-include-default-style nil)
(setq org-publish-project-alist
'(("tlakh"
:base-directory "/var/www/sha256.net/"
:publishing-function org-html-publish-to-html
:publishing-directory "/var/www/sha256.net/"
: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>"
: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\"/>")))
(org-publish "tlakh")