• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{%- assign _author = include.author -%}
2
3{%- if _author.type == 'organization' -%}
4  {%- assign _author_itemtype = 'http://schema.org/Organization' -%}
5{%- else -%}
6  {%- assign _author_itemtype = 'http://schema.org/Person' -%}
7{%- endif -%}
8
9<div itemscope itemtype="{{ _author_itemtype }}" class="author-profile card card--flat item">
10  {%- if _author.avatar -%}
11    {%- if _author.url -%}
12    <a href="{{ _author.url }}" class="item__image">
13    {%- endif -%}
14      {%- include snippets/get-nav-url.html path=_author.avatar -%}
15      {%- assign _author_avatar = __return -%}
16      <img class="author-profile__avatar" itemprop="image" src="{{ _author_avatar }}" />
17    {%- if _author.url -%}
18    </a>
19    {%- endif -%}
20  {%- endif -%}
21
22
23    <div class="item__content">
24
25      {%- if _author.name -%}
26        <meta itemprop="name" content="{{ _author.name }}">
27        <p class="author-profile__name">
28          {%- if _author.url -%}
29            <meta itemprop="url" content="{{ _author.url }}">
30            <a href="{{ _author.url }}">
31          {%- endif -%}
32              {{ _author.name }}
33          {%- if _author.url -%}
34            </a>
35          {%- endif -%}
36        </p>
37      {%- endif -%}
38
39      {%- if _author.bio -%}
40        <p itemprop="description">{{ _author.bio }}</p>
41      {%- endif -%}
42      <div class="author-profile__links">
43        {%- include author-links.html author=_author -%}
44      </div>
45
46    </div>
47</div>