添加友情链接

This commit is contained in:
yi-ge 2019-06-30 12:46:50 +08:00
parent 06dfbf889d
commit a2539803c5
4 changed files with 11 additions and 2 deletions

View File

@ -76,6 +76,11 @@
.detail
nuxt-link(:to="'/post/' + hotArticle.ID", :title='hotArticle.post_title') {{ hotArticle.post_title }}
.meta {{ hotArticle.post_modified }}
.widget.links(v-if="$route.path === '/'")
.widgetTitle
label 友情链接
.links
a(href="https://johnsonlee.site/" target="_blank") Johnson Blog
#tags.widget.tags
.widgetTitle
label 标签

View File

@ -204,6 +204,9 @@ input:-moz-placeholder
.widget
margin-bottom 10px
.links
margin-bottom 20px
.widgetTitle
font-size 18px
line-height 100%

View File

@ -1,6 +1,7 @@
const pkg = require('./package')
const DevBaseUrl = 'http://127.0.0.1:65534'
// const DevBaseUrl = 'http://127.0.0.1:65534'
const DevBaseUrl = 'https://api.wyr.me'
const ProdBashUrl = 'https://api.wyr.me'
module.exports = {

View File

@ -21,7 +21,7 @@ export default function (ctx, inject) {
if (hotTmp >= 1) {
return 'full'
} else if (hotTmp >= 0.75 && hotTmp < 1) {
return 'threeQuarters'
return 'three-quarters'
} else if (hotTmp >= 0.5 && hotTmp < 0.75) {
return 'half'
} else if (hotTmp >= 0.25 && hotTmp < 0.5) {