doc: Add og:image

This commit is contained in:
Hajime Hoshi 2017-08-18 23:43:08 +09:00
parent f36aae4275
commit a444f1ba35
23 changed files with 48 additions and 0 deletions

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="{{.URL}}images/examples/{{.Example.Name}}.png">
<meta name="description" content="Ebiten example - {{.Example.Name}}">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - {{.Example.Name}}</title>

View File

@ -31,6 +31,10 @@ import (
"github.com/hajimehoshi/ebiten/internal"
)
const (
url = "https://hajimehoshi.github.io/ebiten/"
)
func execute(command string, args ...string) error {
cmd := exec.Command(command, args...)
stderr, err := cmd.StderrPipe()
@ -243,6 +247,7 @@ func outputMain() error {
}
data := map[string]interface{}{
"URL": url,
"Copyright": copyright,
"StableVersion": stableVersion,
"DevVersion": devVersion,
@ -323,6 +328,7 @@ func outputExample(e *example) error {
}
data := map[string]interface{}{
"URL": url,
"Copyright": copyright,
"Example": e,
}

View File

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

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/2048.png">
<meta name="description" content="Ebiten example - 2048">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - 2048</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/alphablending.png">
<meta name="description" content="Ebiten example - alphablending">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - alphablending</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/audio.png">
<meta name="description" content="Ebiten example - audio">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - audio</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/blocks.png">
<meta name="description" content="Ebiten example - blocks">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - blocks</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/font.png">
<meta name="description" content="Ebiten example - font">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - font</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/gamepad.png">
<meta name="description" content="Ebiten example - gamepad">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - gamepad</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/hsv.png">
<meta name="description" content="Ebiten example - hsv">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - hsv</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/hue.png">
<meta name="description" content="Ebiten example - hue">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - hue</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/infinitescroll.png">
<meta name="description" content="Ebiten example - infinitescroll">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - infinitescroll</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/keyboard.png">
<meta name="description" content="Ebiten example - keyboard">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - keyboard</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/life.png">
<meta name="description" content="Ebiten example - life">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - life</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/masking.png">
<meta name="description" content="Ebiten example - masking">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - masking</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/mosaic.png">
<meta name="description" content="Ebiten example - mosaic">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - mosaic</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/noise.png">
<meta name="description" content="Ebiten example - noise">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - noise</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/paint.png">
<meta name="description" content="Ebiten example - paint">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - paint</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/perspective.png">
<meta name="description" content="Ebiten example - perspective">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - perspective</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/piano.png">
<meta name="description" content="Ebiten example - piano">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - piano</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/rotate.png">
<meta name="description" content="Ebiten example - rotate">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - rotate</title>

View File

@ -1,6 +1,8 @@
<!DOCTYPE html>
<meta charset="utf-8">
<script src="../scripts/force-https.js"></script>
<meta property="og:image" itemprop="image primaryImageOfPage" content="https://hajimehoshi.github.io/ebiten/images/examples/sprites.png">
<meta name="description" content="Ebiten example - sprites">
<link rel="shortcut icon" href="../favicon.png" type="image/png" >
<link rel="icon" href="../favicon.png" type="image/png" >
<title>Ebiten example - sprites</title>

View File

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