File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed
Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change 1010
1111 < div class ="profile-wrapper text-center ">
1212 < div id ="avatar ">
13- < a href ="{{ site.baseurl }}/ " alt ="avatar " class ="mx-auto ">
14- {% assign avatar_url = site.avatar %}
15-
16- {% unless avatar_url contains '://' %}
17- {% if site.img_cdn %}
18- {% assign avatar_url = avatar_url | prepend: site.img_cdn %}
19- {% else %}
20- {% assign avatar_url = avatar_url | relative_url %}
21- {% endif %}
22- {% endunless %}
23-
13+ < a href ="{{ '/' | relative_url }} " alt ="avatar " class ="mx-auto ">
14+ {% capture avatar_url %}
15+ {%- if site.avatar contains '://' -%}
16+ {{ site.avatar }}
17+ {%- elsif site.img_cdn != '' and site.img_cdn -%}
18+ {{ site.avatar | prepend: site.img_cdn }}
19+ {%- else -%}
20+ {{ site.avatar | relative_url }}
21+ {%- endif -%}
22+ {% endcapture %}
2423 < img src ="{{ avatar_url }} " alt ="avatar " onerror ="this.style.display='none' ">
2524 </ a >
2625 </ div >
You can’t perform that action at this time.
0 commit comments