Tweaks to injections handling. NEWS updates.
This commit is contained in:
parent
6082cb46f5
commit
553030428d
3 changed files with 8 additions and 6 deletions
2
NEWS.md
2
NEWS.md
|
@ -2,6 +2,8 @@
|
|||
|
||||
* Added a PREVIEW function for REPL use.
|
||||
* Make ATOM and RSS templates a separate "generic" theme. (thanks @woudshoo!)
|
||||
* Fixed bug where repeatedly loading plugins caused them to appear in the page more than once. (thanks @woudshoo!)
|
||||
* Fixes to spacing in navigation and tagsoup. (thanks @woudshoo!)
|
||||
|
||||
## Changes for 0.9 (2013-02-20):
|
||||
|
||||
|
|
|
@ -75,12 +75,11 @@ Additional args to render CONTENT can be passed via RENDER-ARGS."
|
|||
(defun main (config-key)
|
||||
"Load the user's config section corresponding to CONFIG-KEY, then
|
||||
compile and deploy the blog."
|
||||
(let (*injections*)
|
||||
(load-config config-key)
|
||||
(load-content)
|
||||
(compile-theme (theme *config*))
|
||||
(compile-blog (staging *config*))
|
||||
(deploy (staging *config*))))
|
||||
(load-config config-key)
|
||||
(load-content)
|
||||
(compile-theme (theme *config*))
|
||||
(compile-blog (staging *config*))
|
||||
(deploy (staging *config*)))
|
||||
|
||||
(defun preview (path &optional (content-type 'post))
|
||||
"Render the content at PATH and save it to ~/tmp.html, loading the
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
(defun load-plugins (plugins)
|
||||
"Compile and load the listed PLUGINS. It is expected that matching *.lisp files
|
||||
are in the plugins folder in coleslaw's source directory."
|
||||
(setf *injections* nil)
|
||||
(flet ((plugin-path (sym)
|
||||
(app-path "plugins/~a" (string-downcase (symbol-name sym)))))
|
||||
(dolist (plugin plugins)
|
||||
|
|
Loading…
Add table
Reference in a new issue