summaryrefslogtreecommitdiff
path: root/layouts/partials/header/header.html
blob: c32cadd68f651ff08458cb229be9688178901211 (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
<header>
  <div class="logo">
    {{ if in .Page.Params.categories "bsd" }}
    {{ $logo := resources.Get "logos/logo-beastie-white.svg"}}
    <img src="{{$logo.Permalink}}" class="beastie" alt="FreeBSD">
    {{ else if in .Page.Params.categories "star-trek" }}
    {{ $logo := resources.Get "logos/logo-startrek-white.svg" }}
    <img src="{{$logo.Permalink}}" class="stbadge" alt="Star Trek">
    {{ else if in .Page.Params.categories "blog" }}
    {{ $logo := resources.Get "logos/logo-blog-white.svg" }}
    <img src="{{$logo.Permalink}}" class="blogicon" alt="Blog">
    {{ else if in .Page.Params.categories "article" }}
    {{ $logo := resources.Get "logos/logo-article-white.svg" }}
    <img src="{{$logo.Permalink}}" class="files" blog="Articles">
    {{ else if in .Page.Params.Categories "emacs" }}
    {{ $logo := resources.Get "logos/logo-emacs-white.svg" }}
    <img src="{{$logo.Permalink}}" class="emacslogo" alt="Emacs">
    {{ end }}
  </div>
  
  <div class="name">
    <nav>
      <ol>
        {{- range .Ancestors.Reverse }}
        {{- if .LinkTitle}}
        <li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
        {{- end }}
        {{- end }}
        <li>
          <h1>
            <a aria-current="page" href="{{ .RelPermalink }}">{{ .Page.Title }}</a>
          </h1>
        </li>
      </ol>
    </nav>
  </div>
</header>