~kmdodrill/hugo-bare-theme-no-analytics

ref: ea6e9be6afe5f02aabeb5bbfc9a75d230b592a2d hugo-bare-theme-no-analytics/layouts/partials/header.html -rw-r--r-- 1.8 KiB
ea6e9be6Kenneth Dodrill Add all files from Gitea 3 months ago
                                                                                
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
<nav class="navbar is-transparent {{ if .Page.IsHome }}is-hidden-touch{{end}}" role="navigation" aria-label="main navigation">
  <div class="navbar-brand">
    <a class="navbar-item" href="{{ $.Site.Home.Permalink }}">
      <figure class="image">
        <img alt="" class="is-rounded" src="/images/avatar.jpg">
      </figure>
    </a>
    <a class="navbar-item" href="{{ $.Site.Home.Permalink }}">
      {{ $.Site.Title }}
    </a>
  </div>
  
  <div class="navbar-menu">
    <div class="navbar-start">
      {{ range .Site.Taxonomies.tags }}
      <a class="navbar-item" href="{{ .Page.Permalink }}">
        {{ if (eq .Page.Title (upper .Page.Title )) }}
        {{ .Page.Title  }}
        {{ else }}
        {{ .Page.Title | humanize }}
        {{ end }}
      </a>
      {{ end }}
    </div>
    
    <div class="navbar-end">
      {{ range $.Site.Params.social }}
      <a class="navbar-item" href="{{ .url }}" rel="noopener" target="_blank">
        <span class="icon">
          {{ with (resources.Get (printf  "icons/svg/%s.svg" .icon))}}
            <img alt="{{ . }}" src='{{ .Permalink }}'>
          {{ else }}
            {{errorf "Icon %v does not exist in the template directory. View that directory for all icons you can use" (printf  "icons/svg/%s.svg" .icon)}}
          {{end}}
        </span>
      </a>
      {{ end }}
      <a class="navbar-item" href="mailto:{{ .Site.Params.email }}" target="_blank">
        <span class="icon">
          <img alt="email" src='{{ (resources.Get "icons/svg/email.svg").Permalink }}'>
        </span>
      </a>
      {{ with $.Site.Home.OutputFormats.Get "rss" -}}
      <a class="navbar-item" href="{{ .Permalink }}" target="_blank">
        <span class="icon">
          <img alt="rss" src='{{ (resources.Get "icons/svg/rss.svg").Permalink }}'>
        </span>
      </a>
      {{ end }}
    </div>
  </div>
</nav>