def opengraph_tags(title, properties)
tags = {
"og:site_name" => t("layouts.project_name.title"),
- "og:title" => title || t("layouts.project_name.title"),
+ "og:title" => properties["og:title"] || title || t("layouts.project_name.title"),
"og:type" => "website",
"og:url" => url_for(:only_path => false),
- "og:description" => t("layouts.intro_text")
+ "og:description" => properties["og:description"] || t("layouts.intro_text")
}.merge(
opengraph_image_properties(properties)
+ ).merge(
+ properties.slice("article:published_time")
)
safe_join(tags.map do |property, content|