Coder Social home page Coder Social logo

Comments (13)

jerryc127 avatar jerryc127 commented on July 20, 2024

请提供一下package.json

from hexo-theme-butterfly.

gorkys avatar gorkys commented on July 20, 2024
{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.8.0"
  },
  "dependencies": {
    "hexo": "^3.7.0",
    "hexo-deployer-git": "^0.3.1",
    "hexo-generator-archive": "^0.1.5",
    "hexo-generator-category": "^0.1.3",
    "hexo-generator-index": "^0.2.1",
    "hexo-generator-search": "^2.3.0",
    "hexo-generator-tag": "^0.2.0",
    "hexo-permalink-pinyin": "^1.0.0",
    "hexo-prism-plugin": "^2.3.0",
    "hexo-renderer-ejs": "^0.3.1",
    "hexo-renderer-jade": "^0.4.1",
    "hexo-renderer-marked": "^0.3.2",
    "hexo-renderer-stylus": "^0.3.3",
    "hexo-server": "^0.3.3",
    "hexo-symbols-count-time": "^0.6.0",
    "hexo-wordcount": "^6.0.1"
  }
}

from hexo-theme-butterfly.

gorkys avatar gorkys commented on July 20, 2024

在使用原版主题的时候是正常的,另外,使用时是将主题的_config.yml配置数据复制到melody.yml中进行的配置。

from hexo-theme-butterfly.

jerryc127 avatar jerryc127 commented on July 20, 2024

我这里测试正常
你提供下melody.yml
还有 报错Cannot read property 'appId' of undefined
下面的一些错误显示也发来

from hexo-theme-butterfly.

gorkys avatar gorkys commented on July 20, 2024

是否方便留个QQ什么的即时通讯的联系方式?

from hexo-theme-butterfly.

gorkys avatar gorkys commented on July 20, 2024

melody.yml中的数据直接是使用的主题里面的_config.yml的数据,没有进行任何更改,尝试开启valine后,填入对应的appId也是一样。
目前是尝试了三种形式:
1.melody.yml中数据使用原版主题的配置报错

ERROR E:\Project\Private\gorkys\themes\Butterfly\layout\includes\aside.pug:5
    3|     .post_data
    4|       .data-item.text-center
  > 5|         img.lozad(data-src=theme.avatar || url_for('/img/avatar.png') onerror=`onerror=null;src='${theme.lodding_bg.flink}'`)
    6|         p.author-info__name.text-center= config.author
    7|         p.author-info__description.text-center= config.description
    8|

Cannot read property 'flink' of undefined
TypeError: E:\Project\Private\gorkys\themes\Butterfly\layout\includes\aside.pug:5
    3|     .post_data
    4|       .data-item.text-center
  > 5|         img.lozad(data-src=theme.avatar || url_for('/img/avatar.png') onerror=`onerror=null;src='${theme.lodding_bg.flink}'`)
    6|         p.author-info__name.text-center= config.author
    7|         p.author-info__description.text-center= config.description
    8|

Cannot read property 'flink' of undefined
    at eval (eval at wrap (E:\Project\Private\gorkys\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:3774:192)
    at template (eval at wrap (E:\Project\Private\gorkys\node_modules\pug-runtime\wrap.js:6:10), <anonymous>:10216:72)
    at Theme._View.View._compiled (E:\Project\Private\gorkys\node_modules\hexo\lib\theme\view.js:125:48)
    at Theme._View.View.View.render (E:\Project\Private\gorkys\node_modules\hexo\lib\theme\view.js:30:15)
    at E:\Project\Private\gorkys\node_modules\hexo\lib\hexo\index.js:394:29
    at tryCatcher (E:\Project\Private\gorkys\node_modules\bluebird\js\release\util.js:16:23)
    at E:\Project\Private\gorkys\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (E:\Project\Private\gorkys\node_modules\hexo\lib\hexo\router.js:134:3)
    at RouteStream.Readable.read (_stream_readable.js:457:10)
    at resume_ (_stream_readable.js:936:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)

2.melody.yml中数据使用该修改版主题的_config.yml配置报错

ERROR E:\Project\Private\gorkys\themes\Butterfly\layout\includes\config.pug:1
  > 1| -
    2|   var algolia = 'undefined';
    3|   var env = process.env;
    4|   if (theme.algolia_search.enable) {

Cannot read property 'appId' of undefined
TypeError: E:\Project\Private\gorkys\themes\Butterfly\layout\includes\config.pug                             :1
  > 1| -
    2|   var algolia = 'undefined';
    3|   var env = process.env;
    4|   if (theme.algolia_search.enable) {

Cannot read property 'appId' of undefined
    at eval (eval at wrap (E:\Project\Private\gorkys\node_modules\pug-runtime\wr                             ap.js:6:10), <anonymous>:369:49)
    at template (eval at wrap (E:\Project\Private\gorkys\node_modules\pug-runtim                             e\wrap.js:6:10), <anonymous>:10216:72)
    at Theme._View.View._compiled (E:\Project\Private\gorkys\node_modules\hexo\l                             ib\theme\view.js:125:48)
    at Theme._View.View.View.render (E:\Project\Private\gorkys\node_modules\hexo                             \lib\theme\view.js:30:15)
    at E:\Project\Private\gorkys\node_modules\hexo\lib\hexo\index.js:394:29
    at tryCatcher (E:\Project\Private\gorkys\node_modules\bluebird\js\release\ut                             il.js:16:23)
    at E:\Project\Private\gorkys\node_modules\bluebird\js\release\method.js:15:3                             4
    at RouteStream._read (E:\Project\Private\gorkys\node_modules\hexo\lib\hexo\r                             outer.js:134:3)
    at RouteStream.Readable.read (_stream_readable.js:457:10)
    at resume_ (_stream_readable.js:936:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:9)

3.melody.yml中数据使用该修改版主题的_config.yml配置并开启valine,报错同2

from hexo-theme-butterfly.

gorkys avatar gorkys commented on July 20, 2024

@jerryc127

from hexo-theme-butterfly.

jerryc127 avatar jerryc127 commented on July 20, 2024

不好意思 有一個低級錯誤
algolia_search:
enable: flase
hits:
per_page: 6

我打錯了 false 而不是 flase
你改正再hexo clean

from hexo-theme-butterfly.

jerryc127 avatar jerryc127 commented on July 20, 2024

不要用原版的_config
因爲我有修改過内容
原版的一些_config内容不適應這版主題

from hexo-theme-butterfly.

gorkys avatar gorkys commented on July 20, 2024

@jerryc127 可以了,非常感谢。另外如何关闭某些页面的评论功能?目前在标签页显示评论功能。

from hexo-theme-butterfly.

jerryc127 avatar jerryc127 commented on July 20, 2024

@jerryc127 可以了,非常感谢。另外如何关闭某些页面的评论功能?目前在标签页显示评论功能。

在標籤頁的md裏加上“comments: false"

title: 標籤
date: 2018-06-07 22:15:37
type: "tags"
top_img: https://cdn.jsdelivr.net/gh/jerryc127/CDN@latest/Photo/tag.jpg
comments: false

from hexo-theme-butterfly.

gorkys avatar gorkys commented on July 20, 2024

再次谢谢你,修改版真的特别棒。你博客中使用到的封面都是自己做的么?感觉很搭~

from hexo-theme-butterfly.

jerryc127 avatar jerryc127 commented on July 20, 2024

再次谢谢你,修改版真的特别棒。你博客中使用到的封面都是自己做的么?感觉很搭~

在一些無版權圖片網站找到

from hexo-theme-butterfly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.