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

footer.html « partials « layouts - github.com/sudorook/capsule.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c0ca9f80b3376ce436ea5e72ecae0fbae48910d1 (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
56
57
58
59
60
61
62
63
64
65
66
67
<footer class="footer">
  <div class="container">
    <nav class="level">

      {{ range $.Site.Home.Sections -}}
      <div class="level-item has-text-centered">
        <a href="{{ .Permalink }}" class="heading">
          <span class="header">{{ .Title }}</span>
        </a>
      </div>
      {{- end }}

    </nav>

    <nav class="level">

      <div class="level-left has-text-centered">
        <div class="level-item">
          <form class="control has-icons has-icons-right" method="get"
                action="{{ if .Site.Params.searchURL }}{{ .Site.Params.searchURL }}
                        {{- else }}https://duckduckgo.com
                        {{- end }}">
            <input class="input" type="text" name="q" maxlength="255"
                   placeholder="{{- i18n "search" }}">
            <input class="input" type="hidden" name="sites"
                   value="{{ .Site.BaseURL }}">
            <span class="icon is-small is-right"><i class="fas fa-search"></i></span>
          </form>
        </div>
      </div>

      <div class="level-right has-text-centered">
        <div class="level-item">

          <a class="button" href="{{ "/" | relLangURL }}">
            <span class="icon"><i class="fas fa-home"></i></span>
          </a> &nbsp;

          <!-- Most sites have the template https://<site>.com/<user>, so just
               use that instead of hardcoding everything. Sites that don't
               follow the template will need hard-coding, though... -->
          {{- range $key, $value := .Site.Social }}
            {{- if eq $key "hacker-news" }}
          <a class="button"
             href="https://news.ycombinator.com/user?id={{ $value }}">
            <span class="icon"><i class="fab fa-{{ $key }}"></i></span>
          </a> &nbsp;

            {{- else }}
          <a class="button" href="https://{{ $key }}.com/{{ $value }}">
            <span class="icon"><i class="fab fa-{{ $key }}"></i></span>
          </a> &nbsp;

            {{- end }}
          {{- end }}

          <a class="button"
             href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink | relLangURL }}{{ end }}">
            <span class="icon"><i class="fas fa-rss"></i></span>
          </a>

        </div>
      </div>

    </nav>
  </div>
</footer>