Procházet zdrojové kódy

Alphabetize config slots, docs TODO about content types.

Brit Butler před 11 roky
rodič
revize
9a86d48314
3 změnil soubory, kde provedl 7 přidání a 6 odebrání
  1. 1 0
      docs/hacking.md
  2. 1 1
      src/coleslaw.lisp
  3. 5 5
      src/config.lisp

+ 1 - 0
docs/hacking.md

@@ -39,6 +39,7 @@ generator.  Content Types were added in 0.8 as a step towards making
39 39
 limitations. Chiefly, the association between Content Types, their
40 40
 template, and their inclusion in an INDEX is presently ad-hoc.
41 41
 
42
+// TODO: Write something about class-names as file-extension/eql-specializers!
42 43
 ### Current Content Types & Indexes
43 44
 
44 45
 There are 5 INDEX subclasses at present: TAG-INDEX, DATE-INDEX,

+ 1 - 1
src/coleslaw.lisp

@@ -19,7 +19,7 @@
19 19
   (let ((result (call-next-method)))
20 20
     (if (pathname-type result)
21 21
         result
22
-        (make-pathname :type (page-ext *config*) :defaults result))))
22
+        (make-pathname :type "html" :defaults result))))
23 23
 
24 24
 (defun page-path (object)
25 25
   "The path to store OBJECT at once rendered."

+ 5 - 5
src/config.lisp

@@ -6,15 +6,15 @@
6 6
    (domain          :initarg :domain         :accessor domain)
7 7
    (feeds           :initarg :feeds          :accessor feeds)
8 8
    (license         :initarg :license        :accessor license)
9
+   (page-ext        :initarg :page-ext       :accessor page-ext       :initform "html")
9 10
    (plugins         :initarg :plugins        :accessor plugins)
10 11
    (repo            :initarg :repo           :accessor repo)
12
+   (routing         :initarg :routing        :accessor routing)
13
+   (separator       :initarg :separator      :accessor separator      :initform ";;;;;")
11 14
    (sitenav         :initarg :sitenav        :accessor sitenav)
12 15
    (staging-dir     :initarg :staging-dir    :accessor staging-dir    :initform "/tmp/coleslaw/")
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
-   (title           :initarg :title          :accessor title)
17
-   (theme           :initarg :theme          :accessor theme)))
16
+   (theme           :initarg :theme          :accessor theme)
17
+   (title           :initarg :title          :accessor title)))
18 18
 
19 19
 (define-condition unknown-config-section-error (error)
20 20
   ((text :initarg :text :reader text)))