-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsidebar.html
More file actions
27 lines (26 loc) · 964 Bytes
/
sidebar.html
File metadata and controls
27 lines (26 loc) · 964 Bytes
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
{% if page.author %} {% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %} {% endif %}
<div class="cover-card table-cell table-middle">
{% if author.avatar %}
<img src="{{ site.url }}/assets/img/{{ author.avatar }}" alt="" class="avatar">
{% endif %}
<a href="{{ site.url }}/" class="author_name">{{ author.name }}</a>
<span class="author_job">{{ author.job }}</span>
<span class="author_bio mbm">{{ author.bio }}</span>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item">
<a href="{{ site.url }}/">home</a>
<span>/</span>
</li>
{% for page in site.pages %} {% if page.title %}
<li class="nav-item">
<a href="{{ site.url }}{{ page.url }}">{{ page.title }}</a>
{% unless forloop.last %}
<span>/</span>
{% endunless %}
</li>
{% endif %} {% endfor %}
</ul>
</nav>
{% include social-links.html %}
</div>