Giter Site home page Giter Site logo

本地进入环境查看

hexo server

添加文章

hexo new '文章名'

清理缓存

hexo clean

清除缓存文件 (db.json) 和已生成的静态文件 (public)

文章分类需要添加标签

category: 分类标签

添加图片

--<img src=""> 不可点击放大
--![查入图片](/02.png) 可点击放大

创建一个分类,分类下有文章

-- hexo new page --path about/me - 必须格式
此时 Hexo 会创建 source/_posts/about/me.md,
同时 me.md 的 Front Matter 中的 title 为 "page"。这是因为在上述命令中,
hexo-cli 将 page 视为指定文章的标题、并采用默认的 layout。
--  比如说新建标签页面,执行命令之后会在根目录source文件夹下创建tags文件夹
hexo new page "tags"

上传

命令上传需要安装

npm install hexo-deployer-git --save

之后执行清楚缓存和上传

hexo clean && hexo deploy

此处注意:上传的不是源码,是public的代码

创建文件夹

hexo new page --path tagcloud/index 标签云

去除表单内格式的html

进环境的时候注意看这个(去除表单内格式的html),会出现很多无用代码

npm 卸载

npm uninstall 插件名

在你的文章的front-matter中提供缩略图的路径或URL地址:

  • post.md
  • title: Icarus快速上手
  • thumbnail: /gallery/thumbnails/desert.jpg

文章内容...

a-lyc's Projects

a-lyc doesn’t have any public repositories yet.

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.