put pronoun examples in meta description for #56
This commit is contained in:
parent
3dce2d2dae
commit
b16cf5d7c9
@ -118,16 +118,18 @@
|
||||
(defn format-pronoun-examples
|
||||
[pronoun-declensions]
|
||||
(let [sub-objs (map #(s/join "/" (take 2 %)) pronoun-declensions)
|
||||
title (str "Pronoun Island: " (prose-comma-list sub-objs) " examples")]
|
||||
title (str "Pronoun Island: " (prose-comma-list sub-objs) " examples")
|
||||
examples (map #(apply examples-block %) pronoun-declensions)]
|
||||
(html
|
||||
[:html
|
||||
[:head
|
||||
[:title title]
|
||||
[:meta {:name "viewport" :content "width=device-width"}]
|
||||
[:meta {:name "description" :content (u/strip-markup examples)}]
|
||||
[:link {:rel "stylesheet" :href "/pronouns.css"}]]
|
||||
[:body
|
||||
(header-block title)
|
||||
(map #(apply examples-block %) pronoun-declensions)
|
||||
examples
|
||||
(footer-block)]])))
|
||||
|
||||
(defn lookup-pronouns [pronouns-string]
|
||||
|
@ -103,3 +103,7 @@
|
||||
<x> is already in a sequence for which vector? is false, this will add
|
||||
another layer of nesting."
|
||||
(if (vector? x) x [x]))
|
||||
|
||||
(defn strip-markup [form]
|
||||
(s/join " " (filter string? (flatten form))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user