Pārlūkot izejas kodu

NEWS update and minor style tweak.

Brit Butler 12 gadi atpakaļ
vecāks
revīzija
9be3a7f769
2 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 4 0
      NEWS.md
  2. 2 2
      src/indices.lisp

+ 4 - 0
NEWS.md

@@ -1,3 +1,7 @@
1
+## Changes for 0.9 (2013-xx-xx):
2
+
3
+* Add support for analytics via Google.
4
+
1 5
 ## Changes for 0.8 (2013-01-06):
2 6
 
3 7
 * Add support for new [content types](http://blog.redlinernotes.com/posts/Lessons-from-Coleslaw.html).

+ 2 - 2
src/indices.lisp

@@ -58,9 +58,9 @@
58 58
 (defun index-by-n (i content &optional (step 10))
59 59
   "Return the index for the Ith page of CONTENT in reverse chronological order."
60 60
   (let* ((start (* step i))
61
-         (results (subseq content start (min (length content) (+ start step)))))
61
+         (end (min (length content) (+ start step))))
62 62
     (make-instance 'int-index :id (1+ i)
63
-                              :posts results
63
+                              :posts (subseq content start end)
64 64
                               :title "Recent Posts")))
65 65
 
66 66
 (defun render-indices ()