forked from Polymer/old-docs-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthorship.html
26 lines (21 loc) · 1.52 KB
/
authorship.html
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
{% assign author = site.data.authors[page.article.author] %}
{% assign collaborator = site.data.authors[page.article.collaborator] %}
{% assign article = page.article %}
{% assign pubdate = article.published | date: "%Y-%m-%d" %}
{% assign updated = article.updated | date: "%Y-%m-%d" %}
{% if article.polymer_version %}
<span class="forversion">Updated since v{{article.polymer_version}}</span>
{% endif %}
{::options parse_block_html="true" /}
<aside class="author">
<!-- <a href="https://plus.google.com/{{author.gplus}}?rel=author" target="blank_">![{{author.full_name}} profile pic](//www.google.com/s2/photos/profile/{{author.gplus}}?sz=40 "{{author.full_name}}")</a> -->
<a href="https://plus.google.com/{{author.gplus}}?rel=author" target="blank_">![{{author.full_name}} profile pic]({{author.profile_pic}} "{{author.full_name}}")</a>
{% if article.collaborator %}
<a href="https://plus.google.com/{{collaborator.gplus}}?rel=author" target="blank_">![{{collaborator.full_name}} profile pic]({{collaborator.profile_pic}} "{{collaborator.full_name}}")</a>
{% endif %}
By <a href="https://plus.google.com/{{author.gplus}}" target="blank_">{{author.full_name}}</a> {% if article.collaborator %} and <a href="https://plus.google.com/{{collaborator.gplus}}" target="blank_">{{collaborator.full_name}}</a> {% endif %}<br>
Published <time pubdate datetime="{{pubdate}}">{{article.published | date: "%B %d, %Y"}}</time>
{% if article.updated %}
(updated <time datetime="{{updated}}">{{article.updated | date: "%B %d, %Y"}}</time>)
{% endif %}
</aside>