Start working on a blog
Attempting to write a blog where: - The server is Common Lisp. Why? I'd like to learn Common Lisp. - The blog posts can be written in Markdown. - The package is developed and deployed using Nix. Most of this is a learning exercise. The blog itself is something that I'd like to use instead of Medium and other forums.
This commit is contained in:
parent
7f37acf548
commit
2c28f85946
3 changed files with 29 additions and 0 deletions
15
blog/default.nix
Normal file
15
blog/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
depot ? import <depot> {},
|
||||||
|
universe ? import <universe> {},
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
depot.nix.buildLisp.program {
|
||||||
|
name = "server";
|
||||||
|
deps = with depot.third_party.lisp; [
|
||||||
|
hunchentoot
|
||||||
|
];
|
||||||
|
srcs = [
|
||||||
|
./src/server.lisp
|
||||||
|
];
|
||||||
|
}
|
4
blog/posts/test.md
Normal file
4
blog/posts/test.md
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Testing
|
||||||
|
|
||||||
|
The goal here is to be able to write markdown files and have a server that can
|
||||||
|
render the markdown into HTML and serve them to the clients.
|
10
blog/src/server.lisp
Normal file
10
blog/src/server.lisp
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
(in-package #:cl-user)
|
||||||
|
(defpackage #:server
|
||||||
|
(:documentation "Robot condemned to a life of admin work for my blog.")
|
||||||
|
(:use #:cl)
|
||||||
|
(:export :main))
|
||||||
|
(in-package #:server)
|
||||||
|
|
||||||
|
(defun main ()
|
||||||
|
"This is the main entrypoint for our application."
|
||||||
|
(hunchentoot))
|
Loading…
Add table
Add a link
Reference in a new issue