blob: 23bee5ba12dc4b36a56f53d5b316ba7fa92d2c70 (
plain)
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
|
{{ if .Params.full }}
{{- block "main" . }}{{- end }}
{{ else }}
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="{{.Site.BaseURL}}/css/hugo-apps-theme.css"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/default.min.css"/>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
{{ template "_internal/opengraph.html" . }}
</head>
<body>
<header class="apps-header">
<div style="margin-bottom:1rem">
<a href="../" style="float: left">Back</a>
<br/>
<a href="{{ .Site.BaseURL }}" class="apps-header-title">
<h1>
{{ .Site.Title }}
</h1>
</a>
</div>
{{ with .Site.Menus.main }}
{{ range $i, $e := sort . }}
<a class="apps-menu-item" href="{{ $e.URL }}">
<h4>
{{- $e.Name -}}
</h4>
</a>
{{ end }}
{{ end }}
<hr/>
</header>
<div class="apps-body">
{{- block "main" . }}{{- end }}
</div>
<script>hljs.initHighlightingOnLoad();</script>
{{- if not (eq .Site.GoogleAnalytics "") -}}
{{ template "_internal/google_analytics_async.html" . }}
{{- end -}}
</body>
</html>
{{ end }}
|