forked from creativecommons/ccos-website-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.html
20 lines (18 loc) · 837 Bytes
/
author.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{% extends "layout.html" %}
{% from "macros/posts.html" import render_posts %}
{% from "macros/author_name.html" import render_author_name %}
{% block title %}{{ render_author_name(this) + ' - ' + this.parent.parent.children.get('entries').title }}{% endblock %}
{% block header %}{{ this.parent.parent.children.get('entries').title }}{% endblock %}
{% block body %}
<h2>{{ render_author_name(this) }}</h2>
{% if this.about %}
{% if this.md5_hashed_email %}
<img src="https://secure.gravatar.com/avatar/{{ this.md5_hashed_email }}?size=200" alt="gravatar" style="float:right;" class="px-3 pb-3" />
{% endif %}
{{ this.about }}
{% endif %}
<h3>Posts</h3>
{{ render_posts(this.children) }}
<hr/>
<p class="text-muted"><strong><a href="{{ this.parent|url }}">All Authors</a></strong></p>
{% endblock %}