Add *last-revision* and export it and GET-UPDATED-FILES.
This commit is contained in:
parent
795f568aea
commit
0760459e8f
2 changed files with 7 additions and 2 deletions
|
@ -1,9 +1,13 @@
|
||||||
(in-package :coleslaw)
|
(in-package :coleslaw)
|
||||||
|
|
||||||
|
(defvar *last-revision* nil
|
||||||
|
"The git revision prior to the last push. For use with GET-UPDATED-FILES.")
|
||||||
|
|
||||||
(defun main (&optional (repo-dir "") oldrev)
|
(defun main (&optional (repo-dir "") oldrev)
|
||||||
"Load the user's config file, then compile and deploy the site. Optionally,
|
"Load the user's config file, then compile and deploy the site. Optionally,
|
||||||
REPO-DIR is the location of the blog repo and OLDREV is the revision prior to
|
REPO-DIR is the location of the blog repo and OLDREV is the revision prior to
|
||||||
the last push."
|
the last push."
|
||||||
|
(setf *last-revision* oldrev)
|
||||||
(load-config repo-dir)
|
(load-config repo-dir)
|
||||||
(load-content)
|
(load-content)
|
||||||
(compile-theme (theme *config*))
|
(compile-theme (theme *config*))
|
||||||
|
|
|
@ -3,20 +3,21 @@
|
||||||
(:use :cl)
|
(:use :cl)
|
||||||
(:import-from :alexandria #:hash-table-values
|
(:import-from :alexandria #:hash-table-values
|
||||||
#:make-keyword
|
#:make-keyword
|
||||||
#:mappend
|
#:mappend)
|
||||||
#:compose)
|
|
||||||
(:import-from :cl-fad #:file-exists-p)
|
(:import-from :cl-fad #:file-exists-p)
|
||||||
(:import-from :closure-template #:compile-template)
|
(:import-from :closure-template #:compile-template)
|
||||||
(:import-from :local-time #:format-rfc1123-timestring)
|
(:import-from :local-time #:format-rfc1123-timestring)
|
||||||
(:export #:main
|
(:export #:main
|
||||||
#:preview
|
#:preview
|
||||||
#:*config*
|
#:*config*
|
||||||
|
#:*last-revision*
|
||||||
#:content
|
#:content
|
||||||
#:post
|
#:post
|
||||||
#:index
|
#:index
|
||||||
#:render-text
|
#:render-text
|
||||||
#:add-injection
|
#:add-injection
|
||||||
#:theme-fn
|
#:theme-fn
|
||||||
|
#:get-updated-files
|
||||||
;; The Document Protocol
|
;; The Document Protocol
|
||||||
#:add-document
|
#:add-document
|
||||||
#:find-all
|
#:find-all
|
||||||
|
|
Loading…
Add table
Reference in a new issue