Add support for looking up content by relative path.
This commit is contained in:
parent
0760459e8f
commit
52b32f459b
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@
|
|||
"Sort CONTENT in reverse chronological order."
|
||||
(sort content #'string> :key #'content-date))
|
||||
|
||||
(defun find-content-by-path (path)
|
||||
"Find the CONTENT corresponding to the file at PATH."
|
||||
(find path (find-all 'content) :key #'content-file :test #'string=))
|
||||
|
||||
(defgeneric render-text (text format)
|
||||
(:documentation "Render TEXT of the given FORMAT to HTML for display.")
|
||||
(:method (text (format (eql :html)))
|
||||
|
|
Loading…
Add table
Reference in a new issue