Open sangwon-hyun opened 2 years ago
Hi @sangwon-hyun,
I was able to get a working example by doing the following:
emacs --script publish.el
in your new simpleblog directory. This will generate all the posts in the posts/ folderhttpd-port
to use port 8000httpd-serve-directory
and serve the folder output/
Now you should be able to browse the resulting web page at localhost:8000
. From here you can edit the posts, themes, etc to your liking
I didn't see any themes, and link to about or post not work too.
@404cn There's what looks like a mistake in the documentation, which my pull request above suggests a resolution to. The documentation states that the :output
of weblorg-copy-static
should be :output "static/{{ file }}"
, but that's outside of the output directory and so the stylesheets wouldn't be being served. Setting it to :output "output/static/{{ file }}"
should fix the situation. Ie:
(weblorg-copy-static
:output "output/static/{{ file }}"
:url "/static/{{ file }}")
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 onemain.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.)