|
@@ -10,9 +10,9 @@
|
10
|
10
|
(repo :initarg :repo :accessor repo)
|
11
|
11
|
(sitenav :initarg :sitenav :accessor sitenav)
|
12
|
12
|
(staging-dir :initarg :staging-dir :accessor staging-dir)
|
13
|
|
- (postsdir :initarg :postsdir :accessor postsdir :initform "posts")
|
14
|
|
- (separator :initarg :separator :accessor separator :initform ";;;;;")
|
15
|
|
- (pageext :initarg :pageext :accessor pageext :initform ".html")
|
|
13
|
+ (posts-dir :initarg :posts-dir :accessor posts-dir :initform "posts")
|
|
14
|
+ (separator :initarg :separator :accessor separator :initform ";;;;;")
|
|
15
|
+ (page-ext :initarg :page-ext :accessor page-ext :initform "html")
|
16
|
16
|
(title :initarg :title :accessor title)
|
17
|
17
|
(theme :initarg :theme :accessor theme)))
|
18
|
18
|
|
|
@@ -41,11 +41,12 @@ are in the plugins folder in coleslaw's source directory."
|
41
|
41
|
(apply 'enable-plugin (plugin-path name) args)))))
|
42
|
42
|
|
43
|
43
|
(defun discover-config-path (&optional (path ""))
|
44
|
|
- (let ((default-path (make-pathname :directory (namestring (user-homedir-pathname)) :name ".coleslawrc"))
|
45
|
|
- (custom-path (make-pathname :directory path :name ".coleslawrc")))
|
46
|
|
- (cond
|
47
|
|
- ((file-exists-p custom-path) custom-path)
|
48
|
|
- ((file-exists-p default-path) default-path))))
|
|
44
|
+ "Checks the project directory for a coleslawrc and if one
|
|
45
|
+doesn't exist, uses the coleslawrc in the home directory."
|
|
46
|
+ (let ((rel-path (make-pathname :directory path :name ".coleslawrc")))
|
|
47
|
+ (if (file-exists-p rel-path)
|
|
48
|
+ rel-path
|
|
49
|
+ (make-pathname :directory (namestring (user-homedir-pathname)) :name ".coleslawrc"))))
|
49
|
50
|
|
50
|
51
|
(defun load-config (config-key)
|
51
|
52
|
"Load the coleslaw configuration from DIR/.coleslawrc, using CONFIG-KEY
|