Merge pull request #153 from stevapple/develop

fix: duplicate year in footer
This commit is contained in:
reco_luan 2020-04-02 15:41:18 +08:00 committed by GitHub
commit 74a34d4335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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>