Show logo when site.logo is set

This commit is contained in:
Jiajie Chen 2020-03-23 22:27:31 +08:00
parent 62bef47fcd
commit 4d11f03d38

View File

@ -11,6 +11,7 @@
{% endunless %}
<a class="navbar-brand" href="/">
<span class="thuhidden">
{% if site.logo %}
<picture>
<source
srcset="/static/img/logo-small-dark.png 1x,
@ -25,6 +26,7 @@
/static/img/logo-small@4x.png 4x"
alt=""/>
</picture>
{% endif %}
{{ site.school }}</span>开源软件镜像站
</a>
</div>