mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-05-30 23:06:49 +00:00

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Franck Nijhof <frenck@frenck.nl>
18 lines
648 B
HTML
18 lines
648 B
HTML
{% if post.author %}
|
|
{% assign author = post.author %}
|
|
{% elsif page.author %}
|
|
{% assign author = page.author %}
|
|
{% else %}
|
|
{% assign author = site.author %}
|
|
{% endif %}
|
|
{% if author %}
|
|
{% assign person = site.data.people[author] %}
|
|
{% if person %}
|
|
<span class="byline author vcard"
|
|
<a href="https://github.com/{{ person.github }}" target="_blank"><img class="author-avatar" src="https://avatars.githubusercontent.com/{{ person.github }}?size=64" alt="{{ person.name }}"/> {{ person.name }}</a>
|
|
</span>
|
|
{% else %}
|
|
<span class="byline author vcard">{% icon "mdi:person" %} {{ author }}</span>
|
|
{% endif %}
|
|
{% endif %}
|