aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/context-profile.html
blob: 91446a9e24bff22d6f389816a2d8019fe55e0750 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{{ $author := index .Site.Data.authors ((or .Params.author .Site.Author.default.user) | default "default") }}

<context-profile>
  <context-menu>
    <section>
      <aside>
      <figure>
        <a title="{{ $author.name }}" href="/{{ $author.user }}">
          <picture>
            <img alt="{{ $author.name }}" src="/{{ $author.user }}/media/profile/picture.png" />
          </picture>
        </a>
      </figure>
      </aside>
      <aside>
        <h1>{{ $author.name }}</h1>
        <h2>@{{ $author.user }}</h2>
      </aside>
    </section>
    <p>{{- $author.description | markdownify -}}</p>
  </context-menu>
</context-profile>