Commit ff61efe7 authored by Phil Hofmann's avatar Phil Hofmann

Merge branch 'fix/broken-titles' into 'master'

fix: Before we had the title " - 200ok" for all non-blog pages

See merge request !132
parents c6f8f5bf 8cc105e1
Pipeline #5138 passed with stage
in 5 minutes and 41 seconds
......@@ -18,8 +18,9 @@
:content (meta-description meta-data)}]))
(defn title [global-meta post-meta]
(or (str (:title post-meta) " - 200ok")
(:site-title global-meta)))
(if-let [post-title (:title post-meta)]
(str post-title " - 200ok")
(:site-title global-meta)))
(defn opengraph-meta [global-meta post-meta]
[[:meta {:property "og:title" :content (title global-meta post-meta)}]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment