-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy static files, render tags and timestamps.
- Loading branch information
1 parent
0a09111
commit c4d10b7
Showing
17 changed files
with
388 additions
and
70 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,12 @@ | ||
(defvar *templates-difference* | ||
"Variable `config` was renamed to `site`. | ||
`post` renamed to `content` | ||
`pubdate` renamed to `site.pubdate`. | ||
For templates base on Closure Template, StatiCL defines these filters: | ||
* date - formats the a timestamp in this as YYYY-MM-DD | ||
* datetime - formats a timestamp as YYYY-MM-DD HH:MM | ||
To define additional filters, inherit your template class from CLOSURE-TEMPLATE and define a method for REGISTER-USER-FILTERS generic-function. | ||
") |
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,12 @@ | ||
;;;;; | ||
title: Second version of Ultralisp.org is available now! | ||
description: An announce of the new version on Ultralisp - frequently updated Common Lisp libraries distribution. Ultralisp allows everyone to host list libraries, it is like PyPi hosting from Python world. | ||
tags: release, my-projects, ultralisp | ||
created-at: 2019-02-03 15:00 | ||
format: md | ||
;;;;; | ||
|
||
I believe, that software should evolve and evolve quickly. | ||
One of the reasons why Common Lisp seems strange to newcomers is its | ||
ecosystem. It takes a long time to add a new library and make it useful | ||
to other common lispers. |
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
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
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,22 @@ | ||
(uiop:define-package #:staticl/content/post | ||
(:use #:cl) | ||
(:import-from #:staticl/content | ||
#:content-from-file | ||
#:content-type) | ||
(:export #:post-type | ||
#:post)) | ||
(in-package #:staticl/content/post) | ||
|
||
|
||
(defclass post (content-from-file) | ||
() | ||
(:default-initargs | ||
;; In coleslaw page and post share the same template | ||
:template "post")) | ||
|
||
|
||
(defclass post-type (content-type) | ||
() | ||
(:default-initargs | ||
:type "post" | ||
:content-class 'post)) |
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
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
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,23 @@ | ||
(uiop:define-package #:staticl/tag | ||
(:use #:cl) | ||
(:import-from #:serapeum | ||
#:dict) | ||
(:import-from #:staticl/theme | ||
#:template-vars) | ||
(:export #:tag-name | ||
#:tag)) | ||
(in-package #:staticl/tag) | ||
|
||
|
||
(defclass tag () | ||
((name :initarg :name | ||
:type string | ||
:reader tag-name)) | ||
(:default-initargs | ||
:name (error ":NAME is required argument for a tag."))) | ||
|
||
|
||
(defmethod template-vars ((tag tag) &key (hash (dict))) | ||
(setf (gethash "name" hash) | ||
(tag-name tag)) | ||
(values hash)) |
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
Oops, something went wrong.