Skip to content

Commit

Permalink
Fix type errors in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang committed Nov 10, 2019
1 parent d1eefd5 commit c78f3ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions layout/_partials/footer.swig
Expand Up @@ -4,8 +4,9 @@
{%- if theme.footer.beian.gongan_icon_url %}
<img src="{{ theme.footer.beian.gongan_icon_url }}" style="display: inline-block;">
{%- endif %}
{{- next_url('http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=' + theme.footer.beian.gongan_id,
theme.footer.beian.gongan_num + ' ') }}
{%- 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 + ' ') }}
{%- endif %}
</div>
{%- endif %}

Expand Down
2 changes: 1 addition & 1 deletion scripts/filters/locals.js
Expand Up @@ -16,7 +16,7 @@ hexo.extend.filter.register('template_locals', locals => {
locals.author = __('author') !== 'author' ? __('author') : config.author;
locals.description = __('description') !== 'description' ? __('description') : config.description;
// RSS
locals.rss = (theme.rss !== false) && (theme.rss || (config.feed && config.feed.path) || 'atom.xml');
locals.rss = (theme.rss !== false) && (theme.rss || (config.feed && config.feed.path.toString()) || 'atom.xml');
// PJAX
locals.pjax = theme.pjax ? ' pjax' : '';
});

0 comments on commit c78f3ab

Please sign in to comment.