Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa8842b
commit e6afccc
Showing
4 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
title: Lorem Ipsum | ||
tags: | ||
- blog | ||
- test | ||
- mies | ||
|
||
### Blog | ||
|
||
Have a _nice_ day! And read all the posts below. | ||
|
||
* postje 1 | ||
* post 2 | ||
* post 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html lang="en" xml:lang="en"> | ||
<head> | ||
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> | ||
<title>template</title> | ||
</head> | ||
|
||
<body> | ||
<div id="menu"></div> | ||
<div id="content"></div> | ||
</body> | ||
|
||
|
||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
title: Lorem Ipsum Dolor | ||
tags: | ||
- fiets | ||
- noot | ||
- mies | ||
|
||
### Helo /world!/ | ||
|
||
Have a _nice_ day! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(ns site | ||
(:use utterson.compile net.cgrand.enlive-html)) | ||
|
||
(defgen page | ||
[[:title] (content (:title headers)) | ||
[:#content] (html-content body)] | ||
|
||
[[:#menu] (append (:title headers))]) | ||
|
||
(defgen post | ||
[[:title] (content (:title headers)) | ||
[:#content] (html-content body)] | ||
|
||
[[:#menu] (append (:title headers)) | ||
[:body.index :#content] (prepend body)]) | ||
|