summaryrefslogtreecommitdiff
path: root/layouts/partials/24-unification/nav.html
blob: a0c463be1d72cc4ccf8ba3bf70b5baa4c880456f (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
      <a href="#content" style="height: 1px;   left: 0;   overflow: hidden;   position: absolute;   top: -1000px;   width: 1px;">Skip to content</a>
      <div class="nav-box">    
        <div class="logo" id="faceBg">
          {{ partial "blog/face-game.html" . }}
        </div>
        
        {{ $page := . }}
        {{- with index site.Menus "sections" }}
        <ol class="section">
          <li class="name"><a href="/"><b>CRYS</b>SITE</a></li>
          {{- range . }}
          <li
            {{ $sectionSlice := slice .Params.section}}
            {{ if intersect $page.Params.Categories $sectionSlice}}
            class="active"
            {{ end }}

            ><a href="{{ .URL }}">{{ .Name }}</a>
            {{- with index site.Menus .Params.submenu }}
            <ol class="subsection">
              {{- range .}}
              <li><a href="{{ .URL}}">{{ .Name }}</a></li>
              {{- end}}
            </ol>
            
            {{- end}}
          </li>

          {{- end}}

          <li class="section" id="moneyLink">
            <a href="https://ko-fi.com/mmspl" target="blank">Buy me a Ko-Fi</a>
          </li>
        </ol>
        {{- end}}
</div>

      <div class="webbuttons">
        {{ partial "button-31" (dict "file" "rss.gif" "alt" "RSS Feed" "href" "https://michal.sapka.me/blog/index.xml") }}
      </div>