forked from ebitengine/ebitengine.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmpl.html
81 lines (80 loc) · 4.78 KB
/
tmpl.html
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
74
75
76
77
78
79
80
81
<!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 - 一款Go语言编写的超级简单2D游戏引擎">
<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">
<link rel="icon" href="/images/favicon.png" type="image/png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-bYdxxUwYipFNohQlHt0bjN/LCpueqWz13HufFEV1SUatKs1cm4L6fFgCi1jT643X" crossorigin="anonymous">
<script src="/scripts/script.js" defer></script>
<script defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-Qsn9KnoKISj6dI8g7p1HBlNpVx0I8p1SvlwOldgi3IorMle61nQy4zEahWYtljaz" crossorigin="anonymous"></script>
<!-- Cloudflare Web Analytics --><script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "909e4403b96c402996fca889d074c29f"}'></script><!-- End Cloudflare Web Analytics -->
</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 .Available }}<li><a href="{{.URL}}">{{.Title}}</a></li>{{ else }}<li class="active">{{.Title}}</li>{{ end }}
{{ end }}</ul>
<ul>
<li><a href="https://ebitengine.org/">官方源站</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/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/blog/">ブログ</a></li>
<li><a href="/ja/contact.html">連絡先</a></li>{{ end }}
{{ if eq .Lang "zh" }}<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="/zh/tour/">教程 (WIP)</a></li>
<li><a href="/zh/documents/">文档</a></li>
<li><a href="/zh/examples/">示例</a></li>
<li><a href="/zh/blog/">Blog</a></li>
<li><a href="/zh/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 }}
{{ if eq .Lang "zh" }}<p>反馈建议? <a href="https://github.com/ebitengine/ebitengine.org/issues/new?body={{.Canonical}}%0a%0a">请在GitHub上反馈我</a>. 谢谢!</p>{{ end }}
</footer>
{{- end }}
</main>
</body>
</html>