fix: duplicate year in footer (again)

This commit is contained in:
stevapple 2020-04-05 11:39:48 +08:00
parent 04035761be
commit 23a40b76a8
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
<a>
<span v-if="$themeConfig.author || $site.title">{{ $themeConfig.author || $site.title }}</span>
&nbsp;&nbsp;
<span v-if="$themeConfig.startYear">{{ $themeConfig.startYear }} - </span>
<span v-if="$themeConfig.startYear && $themeConfig.startYear != year">{{ $themeConfig.startYear }} - </span>
{{ year }}
</a>
</span>

View File

@ -32,7 +32,7 @@
<a>
<span v-if="$themeConfig.author || $site.title">{{ $themeConfig.author || $site.title }}</span>
&nbsp;&nbsp;
<span v-if="$themeConfig.startYear">{{ $themeConfig.startYear }} - </span>
<span v-if="$themeConfig.startYear && $themeConfig.startYear != year">{{ $themeConfig.startYear }} - </span>
{{ year }}
</a>
</span>