Code Monkey home page Code Monkey logo

arondight.github.io's Introduction

arondight.github.io

About

Source of arondight.github.io.

Dependencies

  1. bash
  2. git
  3. npm and npx

Usage

INIT

git clone https://github.com/Arondight/arondight.github.io.git
cd arondight.github.io
npm install

Build and Serve

npm run serve

Then visit localhost:4000 in browser.

Push

npm run deploy

LICENSE

MIT License.

arondight.github.io's People

Contributors

arondight avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

arondight.github.io's Issues

所有评论丢失

导入数据前清了多说的后台,导入后似乎评论还在,但是无法和页面对应了。

Ref #7

hexo server 本地无法访问categories

INFO  Hexo is running at http://0.0.0.0:4000/. Press Ctrl+C to stop.
TypeError: The header content contains invalid characters
    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:348:11)
    at /home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/lib/middlewares/route.js:27:11
    at call (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:239:7)
    at next (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:183:5)
    at compression (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/compression/index.js:218:5)
    at call (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:239:7)
    at next (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:183:5)
    at /home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/lib/middlewares/header.js:6:5
    at call (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:239:7)
    at next (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:183:5)
    at Function.handle (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:186:3)
    at Server.app (/home/ispeller/Repo/arondight.github.io/node_modules/hexo-server/node_modules/connect/index.js:51:37)
    at emitTwo (events.js:100:13)
    at Server.emit (events.js:185:7)
    at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:537:12)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)

Github Pages 上能够访问正常

hexo 部分参数提示未注册

一个示例输出如下:

FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: Console `help` has not been registered yet!
    at /home/ispeller/Repo/arondight.github.io/node_modules/hexo/lib/hexo/index.js:194:14
    at Promise._execute (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/debuggability.js:272:9)
    at Promise._resolveFromExecutor (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:474:18)
    at new Promise (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:77:14)
    at Hexo.call (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/lib/hexo/index.js:188:10)
    at runHexoCommand (/usr/lib/node_modules/hexo/node_modules/hexo-cli/lib/index.js:58:17)
    at tryCatcher (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:503:31)
    at Promise._settlePromise (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:560:18)
    at Promise._settlePromise0 (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:605:10)
    at Promise._settlePromises (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/promise.js:684:18)
    at Async._drainQueue (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:126:16)
    at Async._drainQueues (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:136:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/home/ispeller/Repo/arondight.github.io/node_modules/hexo/node_modules/bluebird/js/release/async.js:16:14)
    at processImmediate [as _immediateCallback] (timers.js:383:17)

packages.json 如下(同样适用于#1):

{
  "name": "hexo-site",
  "version": "0.0.0",
  "private": true,
  "hexo": {
    "version": "3.2.0"
  },
  "dependencies": {
    "hexo": "^3.2.0",
    "hexo-cli": "^1.0.1",
    "hexo-deployer-git": "0.0.4",
    "hexo-generator-archive": "^0.1.2",
    "hexo-generator-baidu-sitemap": "^0.1.2",
    "hexo-generator-category": "^0.1.2",
    "hexo-generator-feed": "^1.0.3",
    "hexo-generator-index": "^0.1.3",
    "hexo-generator-sitemap": "^1.1.2",
    "hexo-generator-tag": "^0.1.1",
    "hexo-renderer-ejs": "^0.1.1",
    "hexo-renderer-marked": "^0.2.10",
    "hexo-renderer-stylus": "^0.3.1",
    "hexo-server": "^0.1.2"
  }
}

需要一个update.sh

  • 更新仓库
  • 检出submodule 到最新提交

执行./update.sh 后,本地允许和上游不一致(submodule 同步其上游)

init.sh 逻辑有问题

智障了一次,boom。

# ./init.sh
正克隆到 '.deploy_git'...
remote: Counting objects: 1920, done.
remote: Compressing objects: 100% (147/147), done.
remote: Total 1920 (delta 74), reused 0 (delta 0), pack-reused 1713
接收对象中: 100% (1920/1920), 1.14 MiB | 421.00 KiB/s, 完成.
处理 delta 中: 100% (840/840), 完成.
检查连接... 完成。
failed: npm or cnpm is needed but not found, quit.
# ./init.sh
warn: it seems this repo has been initialized, do nothing.

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.