diff --git a/NEWS.md b/NEWS.md index 701eb4b..c9209e2 100644 --- a/NEWS.md +++ b/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): diff --git a/src/coleslaw.lisp b/src/coleslaw.lisp index 9d62c02..535fc85 100644 --- a/src/coleslaw.lisp +++ b/src/coleslaw.lisp @@ -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 diff --git a/src/config.lisp b/src/config.lisp index a9ec283..e19fbf0 100644 --- a/src/config.lisp +++ b/src/config.lisp @@ -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)