Skip to content

Commit

Permalink
Switched to google fonts.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirherrbatka committed Apr 7, 2015
1 parent 0542013 commit aa53949
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/html/constants.lisp
Expand Up @@ -7,9 +7,9 @@
(defvar *default-menu-items* '(("blog" "Main Page")
("posts" "All Posts")))

(defvar *default-html* "html { font-family: 'Clear Sans'; background: #eee; }")
(defvar *default-html* "html { font-family: 'Oxygen', sans-serif; background: #eee; }")

(defvar *default-source* "code { font-family: monospace; border-style: solid; border-width: medium;}")
(defvar *default-source* "code { font-family: monospace; border-style: solid; border-width: medium; padding: 0.250em;}")

(defvar *default-body* "body {overflow: auto; background: #fff; padding: 1.250em; box-shadow: 0 0.125em 0.188em #ccc; max-width: 750em; margin: 1.875em;}")

Expand Down
5 changes: 3 additions & 2 deletions src/html/templates.lisp
Expand Up @@ -15,8 +15,9 @@


(defmacro standard-page (style menu title &body body)
`(html5 (:html5 (:head
(:title ,title)
`(html5 (:html5
(:link :href "http://fonts.googleapis.com/css?family=Oxygen" :rel "stylesheet" :type "text/css")
(:head (:title ,title)
(:meta :charset "utf-8")
(:style (raw ,style)))
(:body
Expand Down
4 changes: 2 additions & 2 deletions src/model/post-parser.lisp
Expand Up @@ -49,5 +49,5 @@
(defvar *default-expansion-map* (make-expand-map (list :paragraph (lambda (x) (cons :p x)))
(list :points (lambda (x) (cons :ul (mapcar (lambda (y) (list :li y)) x))))
(list :enumeration (lambda (x) (cons :ol (mapcar (lambda (y) (list :li y)) x))))
(list :quote (lambda (x) (if (> 80 (length x)) (list :blockqoute x) (list :q x))))
(list :src (lambda (x) (list :pre (list :code x))))))
(list :quote (lambda (x) (if (> 80 (length x)) (cons :blockqoute x) (cons :q x))))
(list :src (lambda (x) (list :pre (cons :code x))))))
2 changes: 2 additions & 0 deletions src/model/post.lisp
Expand Up @@ -26,12 +26,14 @@
(m-following
:accessor access-following)))


(defmethod initialize-instance ((object post) &key title id tags-list)
(setf (slot-value object 'm-title) title
(slot-value object 'm-id) id
(slot-value object 'm-tags-list) tags-list)
(call-next-method))


(defclass post-comment (object-with-timestamp
object-with-creation-timestamp)
((m-content
Expand Down

0 comments on commit aa53949

Please sign in to comment.