Tweaks to injections handling. NEWS updates.

This commit is contained in:
Brit Butler 2013-04-09 16:36:07 -04:00
parent 6082cb46f5
commit 553030428d
3 changed files with 8 additions and 6 deletions

View file

@ -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):

View file

@ -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

View file

@ -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)