#!/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 "

Published: %d


" :html-head-include-default-style: nil :html-head " "))) (org-publish "tlakh")