mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added support for local author avatars
This commit is contained in:
parent
2412a1b7bc
commit
0fc36a1f4c
@ -24,7 +24,7 @@
|
|||||||
{% for author in page.authors %}
|
{% for author in page.authors %}
|
||||||
<div class="md-profile md-post__profile">
|
<div class="md-profile md-post__profile">
|
||||||
<span class="md-author md-author--long">
|
<span class="md-author md-author--long">
|
||||||
<img src="{{ author.avatar }}" alt="{{ author.name }}">
|
<img src="{{ author.avatar | url }}" alt="{{ author.name }}">
|
||||||
</span>
|
</span>
|
||||||
<span class="md-profile__description">
|
<span class="md-profile__description">
|
||||||
<strong>
|
<strong>
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<nav class="md-post__authors md-typeset">
|
<nav class="md-post__authors md-typeset">
|
||||||
{% for author in post.authors %}
|
{% for author in post.authors %}
|
||||||
<span class="md-author">
|
<span class="md-author">
|
||||||
<img src="{{ author.avatar }}" alt="{{ author.name }}">
|
<img src="{{ author.avatar | url }}" alt="{{ author.name }}">
|
||||||
</span>
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
{% for author in page.authors %}
|
{% for author in page.authors %}
|
||||||
<div class="md-profile md-post__profile">
|
<div class="md-profile md-post__profile">
|
||||||
<span class="md-author md-author--long">
|
<span class="md-author md-author--long">
|
||||||
<img src="{{ author.avatar }}" alt="{{ author.name }}" />
|
<img src="{{ author.avatar | url }}" alt="{{ author.name }}" />
|
||||||
</span>
|
</span>
|
||||||
<span class="md-profile__description">
|
<span class="md-profile__description">
|
||||||
<strong>
|
<strong>
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
<nav class="md-post__authors md-typeset">
|
<nav class="md-post__authors md-typeset">
|
||||||
{% for author in post.authors %}
|
{% for author in post.authors %}
|
||||||
<span class="md-author">
|
<span class="md-author">
|
||||||
<img src="{{ author.avatar }}" alt="{{ author.name }}" />
|
<img src="{{ author.avatar | url }}" alt="{{ author.name }}" />
|
||||||
</span>
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user