Skip to content

Commit

Permalink
add meta tags needed for twitter preview card. this needs additional …
Browse files Browse the repository at this point in the history
…cleanup #56
  • Loading branch information
morganastra committed Mar 9, 2017
1 parent 414909a commit acbea12
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pronouns/pages.clj
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@
(defn footer-block []
[:footer (usage-block) (contact-block)])

;; <meta name="twitter:card" content="summary" />
;; <meta name="twitter:site" content="@flickr" />
;; <meta name="twitter:title" content="Small Island Developing States Photo Submission" />
;; <meta name="twitter:description" content="View the album on Flickr." />
;; <meta name="twitter:image" content="https://farm6.staticflickr.com/5510/14338202952_93595258ff_z.jpg" />

(defn format-pronoun-examples
[pronoun-declensions]
(let [sub-objs (map #(s/join "/" (take 2 %)) pronoun-declensions)
Expand All @@ -127,6 +133,11 @@
[:title title]
[:meta {:name "viewport" :content "width=device-width"}]
[:meta {:name "description" :content (u/strip-markup examples)}]
[:meta {:name "twitter:card" :content (u/strip-markup examples)}]
[:meta {:name "twitter:site" :content "@morganastra"}]
[:meta {:name "twitter:title" :content title}]
[:meta {:name "twitter:description" :content (u/strip-markup examples)}]
[:meta {:name "twitter:image" :content "https://pronoun.is/purple-flag64.png"}]
[:link {:rel "stylesheet" :href "/pronouns.css"}]]
[:body
(header-block title)
Expand Down

0 comments on commit acbea12

Please sign in to comment.