-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathtmpl.html
More file actions
73 lines (73 loc) · 4.11 KB
/
tmpl.html
File metadata and controls
73 lines (73 loc) · 4.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="{{.Lang}}">
<head>
<meta charset="utf-8">
{{ if .Redirect }}<meta http-equiv="refresh" content="0;url={{.Redirect}}">{{ end }}
<meta name="description" content="{{.Desc}}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#db5620">
<meta property="og:title" content="{{.Title}}">
<meta property="og:site_name" content="Ebitengine - A dead simple 2D game engine for Go">
<meta property="og:image" content="{{.Share}}">
<meta property="og:description" content="{{.Desc}}">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@hajimehoshi">
<meta name="twitter:title" content="{{.Title}}">
<meta name="twitter:description" content="{{.Desc}}">
<meta name="twitter:image" content="{{.Share}}">
<title>{{.Title}}</title>
{{ if .Canonical }}<link rel="canonical" href="{{.Canonical}}">{{ end }}
<link rel="stylesheet" type="text/css" href="/styles/style.css?202312060309">
<link rel="icon" href="/images/favicon.png" type="image/png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/katex.min.css" integrity="sha384-bYdxxUwYipFNohQlHt0bjN/LCpueqWz13HufFEV1SUatKs1cm4L6fFgCi1jT643X" crossorigin="anonymous">
{{ range .AltPages }}<link rel="alternate" hreflang="{{.Lang}}" href="{{.AbsURL}}">{{ end }}
<script src="/scripts/script.js" defer></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.2/dist/katex.min.js" integrity="sha384-Qsn9KnoKISj6dI8g7p1HBlNpVx0I8p1SvlwOldgi3IorMle61nQy4zEahWYtljaz" crossorigin="anonymous"></script>
</head>
<body>
{{if .NavExists -}}
<input type="checkbox" id="sidemenu"><label for="sidemenu" class="sidemenubutton"></label><label for="sidemenu" class="sidemenucover"></label>
<nav>
<h1><a href="{{ .Top }}">Ebitengine™</a></h1>
<ul id="language">{{ range .AltPages }}
{{ if .SameLang }}<li class="active">{{.Title}}</li>{{ else }}<li><a href="{{.RelURL}}" hreflang="{{.Lang}}">{{.Title}}</a></li>{{ end }}
{{ end }}</ul>
<ul>
<li><a href="https://ebitengine-zh.pages.dev/">中文</a></li>
</ul>
<ul>
{{ if eq .Lang "en" }}<li><a href="{{ .Top }}">Home</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten">Source code</a></li>
<li><a href="https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2">API reference</a></li>
<li><a href="/en/tour/">Tour (WIP)</a></li>
<li><a href="/en/documents/">Documents</a></li>
<li><a href="/en/examples/">Examples</a></li>
<li><a href="/en/showcase.html">Showcase</a></li>
<li><a href="/en/blog/">Blog</a></li>
<li><a href="/en/contact.html">Contact Us</a></li>{{ end }}
{{ if eq .Lang "ja" }}<li><a href="{{ .Top }}">ホーム</a></li>
<li><a href="https://github.com/hajimehoshi/ebiten">ソースコード</a></li>
<li><a href="https://pkg.go.dev/github.com/hajimehoshi/ebiten/v2">API リファレンス</a></li>
<li><a href="/ja/tour/">ツアー (未完成)</a></li>
<li><a href="/ja/documents/">ドキュメント</a></li>
<li><a href="/ja/examples/">サンプル</a></li>
<li><a href="/ja/showcase.html">ショーケース</a></li>
<li><a href="/ja/blog/">ブログ</a></li>
<li><a href="/ja/contact.html">連絡先</a></li>{{ end }}
</ul>
{{ if .SubNav }}{{ .SubNav | noescape }}{{ end }}
</nav>
{{- end}}
<main>
<article>
{{ .Content | noescape }}
</article>
{{ if .Feedback -}}
<footer>
{{ if eq .Lang "en" }}<p>Feedback about this page? <a href="https://github.com/ebitengine/ebitengine.org/issues/new?body={{.Canonical}}%0a%0a">Please reach out on GitHub</a>. Thank you!</p>{{ end }}
{{ if eq .Lang "ja" }}<p>このページに何か問題がありましたら、<a href="https://github.com/ebitengine/ebitengine.org/issues/new?body={{.Canonical}}%0a%0a">GitHub にて報告</a>していただけると幸いです。</p>{{ end }}
</footer>
{{- end }}
</main>
</body>
</html>