From a2539803c543f3f75500aa9ab14476ca917cf18b Mon Sep 17 00:00:00 2001 From: yige Date: Sun, 30 Jun 2019 12:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=8B=E6=83=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/LeftContent.vue | 5 +++++ layouts/common.styl | 3 +++ nuxt.config.js | 3 ++- plugins/vue.js | 2 +- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/components/LeftContent.vue b/components/LeftContent.vue index 6547d78..773fba3 100644 --- a/components/LeftContent.vue +++ b/components/LeftContent.vue @@ -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 标签 diff --git a/layouts/common.styl b/layouts/common.styl index c075c38..4c4896a 100644 --- a/layouts/common.styl +++ b/layouts/common.styl @@ -204,6 +204,9 @@ input:-moz-placeholder .widget margin-bottom 10px + .links + margin-bottom 20px + .widgetTitle font-size 18px line-height 100% diff --git a/nuxt.config.js b/nuxt.config.js index b55316e..d08c430 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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 = { diff --git a/plugins/vue.js b/plugins/vue.js index 1d05479..dcfea48 100644 --- a/plugins/vue.js +++ b/plugins/vue.js @@ -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) {