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

index.html « layouts - github.com/kdevo/osprey-delight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a842d471c787f8e89ff447098a39b76fa8f02636 (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
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}" class="no-js">
  {{ partial "head.html" . }}
  <body>
    {{ partial "body-top" . }}
    <main>

      {{ range $i, $m := .Site.Menus.main -}}
          {{ $partial := printf "partials/sections/%s.html" $m.Identifier }}
          {{ if templates.Exists $partial }}
            <section class="{{ .Identifier }}" id="{{ replace (replace .URL "/" "") "#" "" }}">
            {{ $page := $m.Page }}
            {{ if eq $page nil -}}
              {{ $page = $.Site.GetPage .Identifier }}
            {{- end }}
            {{ partial $partial $page }}
            </section>
          {{ else if .Page }}
            <section class="default" id="{{ replace (replace .URL "/" "") "#" "" }}">
            {{ partial "partials/sections/default.html" $m.Page }}
            </section>
          {{- end }}
      {{- end }}

    </main>
    {{ partial "footer.html" . }}
    {{ partial "body-bottom" . }}
  </body>
</html>