added original autor and original link for blogpost

This commit is contained in:
Lee Wong 2017-05-07 14:32:15 +07:00 committed by tungfa
parent bf9d2d52e9
commit 9d36ad84b9
2 changed files with 17 additions and 4 deletions

View file

@ -1,11 +1,11 @@
{% if page.author %}
<div class="author">
{% assign author = site.data.people[page.author] %}
{% if author.image %}
<img src="{{ author.image }}" class="author-icon img-circle"><br />
{% endif %}
{% if author.twitter %}
<a rel="author"
href="https://twitter.com/{{ author.twitter }}"
@ -17,7 +17,18 @@
title="{{ author.name }}"
target="_blank">
{% endif %}
{{ author.name }}
{{ author.name }}
</a>
</div>
{% endif %}
{% endif %}
{% if page.original-author %}
<div class="author">
<a
href="{{ page.original-link }}"
title="{{ page.orginal-author }}"
target="_blank">
{{ page.original-author }}
</a>
</div>
{% endif %}