通过git创建的第一篇hexo文章

通过git创建的第一篇hexo文章

这是通过 GIT 工具使用 hexo new "通过git创建的第一篇hexo文章" 命令创建的第一篇文章。
用来测试。

笔记

  1. 创建使用步骤:
    a. 通过 Git Bash Here 打开 Git 命令行工具,$ hexo server 命令启动 hexo 服务,通过浏览器访问 localhost:4000 访问博客首页。
    b. 然后再通过 hexo new "通过git创建的第一篇hexo文章" 命令创建文章。此时,会提示如下信息

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    $ hexo new "通过git创建的第一篇hexo文章"
    INFO =======================================
    ██╗ ██████╗ █████╗ ██████╗ ██╗ ██╗███████╗
    ██║██╔════╝██╔══██╗██╔══██╗██║ ██║██╔════╝
    ██║██║ ███████║██████╔╝██║ ██║███████╗
    ██║██║ ██╔══██║██╔══██╗██║ ██║╚════██║
    ██║╚██████╗██║ ██║██║ ██║╚██████╔╝███████║
    ╚═╝ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝
    =============================================
    INFO Checking dependencies
    INFO Validating the configuration file
    INFO Created: F:\Blog_Hexo_Github_Pages\source\_posts\通过git创建的第一篇hexo文章.md

    表示文章创建成功,可在之上提示中的路径下找到文章的 md 文件,可以通过编辑修改该文件进行文章更新编辑。
    c. 至此可实时在浏览器中查看文章的编辑结果。

  2. md 文档中支持 Markdown 语法。

  3. 文章正文应该在文档 “—” 符号包括文章前缀部分之后。

  4. 文章前缀部分中默认三组变量,title、date 以及 tags. 其中 tags 部分可以设定多个标签,样式为:tags: [测试标签,第一篇文章,Hexo]

  5. 需要注意的是变量后的 “: “ 分号必须有一个空格,否则会出现解析 md 失败,最终造成整个 Hexo 服务异常。

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×