Fix the missing url_for

This commit is contained in:
Mimi 2020-06-11 23:09:12 +08:00
parent 45d6e0413d
commit 52111f750a
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
<div class="beian">
{{- next_url('http://www.beian.miit.gov.cn', theme.footer.beian.icp + ' ') }}
{%- if theme.footer.beian.gongan_icon_url %}
<img src="{{ theme.footer.beian.gongan_icon_url }}" style="display: inline-block;">
<img src="{{ url_for(theme.footer.beian.gongan_icon_url) }}" style="display: inline-block;">
{%- endif %}
{%- if theme.footer.beian.gongan_id and theme.footer.beian.gongan_num %}
{{- next_url('http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' + theme.footer.beian.gongan_id, theme.footer.beian.gongan_num + ' ') }}

View File

@ -11,7 +11,7 @@
<div class="site-meta">
{%- if theme.custom_logo and theme.scheme === 'Muse' %}
<img class="custom-logo-image" src="{{ theme.custom_logo }}" alt="{{ title }}">
<img class="custom-logo-image" src="{{ url_for(theme.custom_logo) }}" alt="{{ title }}">
{%- endif %}
<a href="{{ config.root }}" class="brand" rel="start">
@ -23,7 +23,7 @@
<p class="site-subtitle" itemprop="description">{{ subtitle }}</p>
{%- endif %}
{%- if theme.custom_logo and (theme.scheme === 'Gemini' or theme.scheme === 'Pisces') %}
<img class="custom-logo-image" src="{{ theme.custom_logo }}" alt="{{ title }}">
<img class="custom-logo-image" src="{{ url_for(theme.custom_logo) }}" alt="{{ title }}">
{%- endif %}
</div>