forked from WereBooks/BookshelfCMS_Alpha
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.tmpl
More file actions
23 lines (23 loc) · 1.25 KB
/
author.tmpl
File metadata and controls
23 lines (23 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[% INCLUDE author_header.tmpl %]
<div class="author" itemscope="itemscope" itemtype="http://schema.org/author">
<img class="portrait" src="[% config.imagepath %][% author.portrait %]" alt="[% config.author.name %]">
<div id="about" class="p-name p-author h-card" title="[% config.author.name %]">
[% author.about %]
</div>
<hr />
</div>
<div class="posts">
[% FOREACH book = author.books.keys.sort %]
<figure class="post h-entry post-text book" itemscope="itemscope" itemtype="http://schema.org/Book">
<div class="e-content entry-content">[% IF author.books.$book.link.defined %][% link = author.books.$book.link %][% ELSE %][% link = '../' _ author.books.$book.url %][% END %]
<a href="[% link %]"><figure [% author.book.$book.coverstyle %]><img class="cover" src="../[% author.books.$book.url %][% config.imagepath %][% author.book.$book.cover %]" alt="[% book %]" title="[% author.books.$book.hover %]"></figure></a>
</div>
<figcaption><a href="[% link %]" class="u-url"><h3 class="post-title p-name name">[% book %]</h3></a></figcaption>
</figure>
[% END %]
</div>
</div>
</div>
<label for="sidebar-checkbox" class="sidebar-toggle"></label>
</body>
[% INCLUDE blog_footer.tmpl %]