Welcome to mirror list, hosted at ThFree Co, Russian Federation.

baseof.html « _default « layouts - github.com/gonnux/hugo-apps-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 816576b0263021c2a053464fb757ea8eb970d183 (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
46
47
48
49
50
51
52
53
54
55
{{ if .Params.full }}
  {{- block "main" . }}{{- end }}
{{ else }}
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"/>
  <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" . }}
  {{- if not (eq .Site.Params.googleAutoAds "") -}}
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <script>
       (adsbygoogle = window.adsbygoogle || []).push({
            google_ad_client: "{{ .Site.Params.googleAutoAds }}",
            enable_page_level_ads: true
       });
    </script>
  {{- end -}}
</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 }}