From acbea12b93ddfa47cf9f1c1ebf3b339ea15977c6 Mon Sep 17 00:00:00 2001 From: Morgan Astra Date: Thu, 9 Mar 2017 00:27:51 -0800 Subject: [PATCH] add meta tags needed for twitter preview card. this needs additional cleanup #56 --- src/pronouns/pages.clj | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/pronouns/pages.clj b/src/pronouns/pages.clj index f9939c3..b9ac11b 100644 --- a/src/pronouns/pages.clj +++ b/src/pronouns/pages.clj @@ -116,6 +116,12 @@ (defn footer-block [] [:footer (usage-block) (contact-block)]) +;; +;; +;; +;; +;; + (defn format-pronoun-examples [pronoun-declensions] (let [sub-objs (map #(s/join "/" (take 2 %)) pronoun-declensions) @@ -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)