-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauthor.php
36 lines (30 loc) · 1.25 KB
/
author.php
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
{% extends "base.php" %}
{% block content %}
<div id="container">
<div id="content" role="main">
<h1 class="page-title author">
Author Archives:
<span class="vcard">
<a class="url fn n" href="{{ site.get_author_posts_url( site.get_the_author_meta( 'ID' ) ) }}" title="{{ site.get_the_author_meta('nicename', site.get_the_author_meta('ID'))|e }}" rel="me">{{ site.get_the_author_meta('nicename', site.get_the_author_meta('ID'))|e }}</a>
</span>
</h1>
{% if site.the_author_meta('description') is defined %}
<div id="entry-author-info">
<div id="author-avatar">
{# Complex get avatar function again #}
{% set gravatar = site.get_avatar( site.get_the_author_meta( 'user_email' ), site.apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ) %}
{{ gravatar|raw }}
</div>
<div id="author-description">
<h2>About {{ site.the_author_meta('description', site.get_the_author_meta( 'ID' )) }}</h2>
{% if site.the_author_meta('description') is defined %}
{% debug site.get_the_author_meta('description', site.get_the_author_meta('ID')) %}
{% endif %}
</div>
</div>
{% endif %}
{% include "loop.php" %}
</div>
</div>
{{ site.get_sidebar() }}
{% endblock %}