Hi,
I'm someone who really, really likes the idea of weblorg and who doesn't really know that much Lisp.
I just can't get even a simple example to work. I have simplified my publish.el file as much as possible, so that it's just one main.org file (and perhaps one css file).
I have a simple request! There still isn't a super simple example that you could just run emacs --script publish.el on, and see a website to come out of it. I'm sure once I see something like this, I'll be able to figure out incrementally how to customize, but I haven't even gotten one example to work.
(For the sake of completeness, here is the publish.el I'm using.)
(add-to-list 'load-path "~/emacs")
;; Setup package management
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
;; Install and configure dependencies
(use-package templatel :ensure t)
(use-package htmlize
:ensure t
:config
(setq org-html-htmlize-output-type 'css))
(require 'weblorg)
(weblorg-site
:template-vars '(("site_author" . "Justin")
("site_name" . "Justin's website")
("project_description" . "Justin")))
;; Set theme
(weblorg-site
:theme #'weblorg-theme-autodoc)
;; Route for rendering each post
(weblorg-route
:input-pattern "*.org"
:template "post.html"
:output "output/posts/{{ slug }}.html"
:url "/{{ slug }}.html")
;; fire the engine and export all the files declared in the routes above
(weblorg-export)
Hi,
I'm someone who really, really likes the idea of weblorg and who doesn't really know that much Lisp.
I just can't get even a simple example to work. I have simplified my
publish.elfile as much as possible, so that it's just onemain.orgfile (and perhaps one css file).I have a simple request! There still isn't a super simple example that you could just run
emacs --script publish.elon, and see a website to come out of it. I'm sure once I see something like this, I'll be able to figure out incrementally how to customize, but I haven't even gotten one example to work.(For the sake of completeness, here is the publish.el I'm using.)