Use PNG logo for og:image
This commit is contained in:
parent
e62e879b3b
commit
18d26c0d81
3 changed files with 2 additions and 3 deletions
BIN
app/assets/images/osm_logo_256.png
Normal file
BIN
app/assets/images/osm_logo_256.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 72 KiB |
BIN
app/assets/images/osm_logo_512.png
Normal file
BIN
app/assets/images/osm_logo_512.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 191 KiB |
|
@ -4,9 +4,8 @@ module OpenGraphHelper
|
|||
"og:site_name" => t("layouts.project_name.title"),
|
||||
"og:title" => [t("layouts.project_name.title"), title].compact.join(" | "),
|
||||
"og:type" => "website",
|
||||
"og:image" => image_path("osm_logo.svg", :host => SERVER_URL),
|
||||
"og:image:width" => "200",
|
||||
"og:image:height" => "200"
|
||||
"og:image" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "http"),
|
||||
"og:image:secure_url" => image_path("osm_logo_256.png", :host => SERVER_URL, :protocol => "https")
|
||||
}
|
||||
|
||||
tags.map do |property, content|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue