diff --git a/.gitignore b/.gitignore index 7a1b5cd..6a0ee31 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -src/*.html +src/index.html src/*.css diff --git a/Makefile b/Makefile index 164ddf1..4039dac 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,5 @@ -LISP ?= sbcl - default: - $(LISP) --load src/index.lisp \ - --eval '(write-html-to-file)' + pandoc --standalone --metadata title="nuka.works" --template src/template.html src/index.md -o src/index.html .PHONY: default diff --git a/server.lisp b/server.lisp deleted file mode 100644 index 99b8538..0000000 --- a/server.lisp +++ /dev/null @@ -1,5 +0,0 @@ -(ql:quickload "hunchentoot") - - -(defvar *acceptor* (make-instance 'hunchentoot:easy-acceptor :port 4242)) -(hunchentoot:start *acceptor*) diff --git a/src/index.lisp b/src/index.lisp deleted file mode 100644 index b98989b..0000000 --- a/src/index.lisp +++ /dev/null @@ -1,23 +0,0 @@ -(ql:quickload "spinneret") -(ql:quickload "lass") - - - -(defun generate-html () - (spinneret:with-html-string - (:html - (:head - (:link :rel "stylesheet" :href "style.css") - (:body - (:div :class "body" - (:h1 "welcome") - (:p "hello, im cath and i exist"))))))) - - - -(defun write-html-to-file () - (with-open-file (output "index.html" - :direction :output - :if-exists :overwrite - :if-does-not-exist :create) - (format output (generate-html)))) diff --git a/src/index.md b/src/index.md new file mode 100644 index 0000000..51b9aa4 --- /dev/null +++ b/src/index.md @@ -0,0 +1,2 @@ +# test +ooo sample text i have burned this damn project and remade it ooo diff --git a/src/template.html b/src/template.html new file mode 100644 index 0000000..a82b8e8 --- /dev/null +++ b/src/template.html @@ -0,0 +1,13 @@ + + + + + + + $title$ + + +

Date: $date$

+$body$ + +