             [clojure.walk :refer (keywordize-keys)]
             [clj-time.format :as format]
             [hiccup.core :as h]
-            [oc.email.config :as config]))
+            [oc.email.config :as config]
+            [jsoup.soup :as soup]))
 
 (def max-logo 32)
+(def author-logo 32)
 
 (def profile-url (str config/web-url "/profile"))
 

            [:th {:class "small-1 large-1 first columns"}]
            [:th {:class "small-10 large-10 columns"}
              [:span {:class "note-body"}
                body]]
            [:th {:class "small-1 large-1 last columns"}]]]
        [:table {:class "row note-block bottom"}
          [:tr

        org-name (:org-name entry)
        org-name? (not (s/blank? org-name))
        headline (:headline entry)
        parsed-body (.text (soup/parse (:body entry)))
        body-length 159
        entry-body (if (> (count parsed-body) body-length)
                      (str (subs parsed-body 0 (- body-length 3)) "...")
                      parsed-body)
        entry-body? (not (s/blank? entry-body))
        org-slug (:org-slug entry)
        sharer (:sharer-name entry)
        publisher (:publisher entry)
        attribution (str (:name publisher) " posted to " (:board-name entry))
        note (:note entry)
        note? (not (s/blank? note))
        from (if (s/blank? sharer) "Someone" sharer)
        from-avatar (when-not (s/blank? sharer) (:sharer-avatar-url entry))
        secure-uuid (:secure-uuid entry)
        origin-url config/web-url
        entry-url (s/join "/" [origin-url org-slug "post" secure-uuid])]
