Add og:image to profiles.
This commit is contained in:
parent
610a6a8b72
commit
1be7ac8904
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
{% extends '@mio/user/master.twig' %}
|
||||
{% from '@mio/macros.twig' import navigation, link %}
|
||||
|
||||
{% set icon = '/profile.php?u=' ~ profile.user_id ~ '&m=avatar' %}
|
||||
{% set title = 'Profile of ' ~ profile.username %}
|
||||
|
||||
{% set youtube_is_channel_id = profile.user_youtube|slice(0, 2) == 'UC' and profile.youtube|length == 24 %}
|
||||
|
@ -117,7 +118,7 @@
|
|||
{% endspaceless %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="mio__avatar mio__profile__avatar" style="background-image:url('/profile.php?u={{ profile.user_id }}&m=avatar');"></div>
|
||||
<div class="mio__avatar mio__profile__avatar" style="background-image:url('{{ icon }}');"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue