doc: Bug fix: Use PNG for og:image

It looks like OpenGraph doesn't support SVG images.
This commit is contained in:
Hajime Hoshi 2017-08-18 23:50:08 +09:00
parent a365f0c7d4
commit cea5f8f59d
3 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<meta charset="utf-8"> <meta charset="utf-8">
<meta property="og:image" itemprop="image primaryImageOfPage" content="{{.URL}}images/logo.svg"> <meta property="og:image" itemprop="image primaryImageOfPage" content="{{.URL}}images/logo.png">
<meta name="description" content="Ebiten - A simple 2D game library in Go"> <meta name="description" content="Ebiten - A simple 2D game library in Go">
<link rel="shortcut icon" href="./favicon.png" type="image/png"> <link rel="shortcut icon" href="./favicon.png" type="image/png">
<link rel="icon" href="./favicon.png" type="image/png"> <link rel="icon" href="./favicon.png" type="image/png">

BIN
docs/images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

@ -1,6 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<meta charset="utf-8"> <meta charset="utf-8">
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/logo.svg"> <meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/logo.png">
<meta name="description" content="Ebiten - A simple 2D game library in Go"> <meta name="description" content="Ebiten - A simple 2D game library in Go">
<link rel="shortcut icon" href="./favicon.png" type="image/png"> <link rel="shortcut icon" href="./favicon.png" type="image/png">
<link rel="icon" href="./favicon.png" type="image/png"> <link rel="icon" href="./favicon.png" type="image/png">