aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/profile.html
blob: e0c339b335b6180a98db573d276bdfbda1b9d112 (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
{{- $author := partial "function-authors-data.html" . -}}

<profile-box>
  <picture data-type="banner">
    {{ partial "author-header.html" . }}
  </picture>

  <picture data-type="profile">
    {{ partial "author-picture.html" . }}
  </picture>

  <section>
    <aside>
      <h2>{{ $author.name }}</h2>
      <h3>@{{ $author.user }}</h3>
    </aside>
    <p>{{ $author.description | markdownify }}</p>
  </section>

  <footer>
    <p>
      {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/map-pin.svg")) }}
      <span>{{- $author.place | markdownify -}}</span>
    </p>
    <p>
      {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/globe.svg")) }}
      <a href="{{ $author.domain.url }}">
        {{- $author.domain.host | markdownify -}}
      </a>
    </p>
    <p>
      {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/feather/clock.svg")) }}
      <span>{{- $author.epoch | markdownify -}}</span>
    </p>
    <p>
      {{ safeHTML (readFile (print (partial "function-paths.html").static "/icons/tabler/rss.svg")) }}
      <span><b>{{ with $author.feeds.rss }}{{ len . }}{{ else }} 0 {{ end }}</b> Feeds</span>
    </p>
  </footer>
</profile-box>

{{- partial "profile-tabs.html" . -}}