hexo sytnax

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

用HEXO在Github建立个人博客教程: https://www.jianshu.com/p/1f23f94b73d4

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment


hexo sytnax

常用的偏门小技巧

书写风格

Markdown书写风格指南

https://gerrit.googlesource.com/gitiles/+/master/Documentation/markdown.md

文章框架

同一类型的文章,比如技术类的,最好有一个框架用来提醒自己,把事情尽量写清楚;推荐看看
文章框架

目录categories和标签tags的说明:

也不知道合不合适,目录包含标签,是一个大的范围,标签是具体的东西,属于其中,一个目录可包含多个标签。

画图UML

@startuml
Bob -> Alice : hello
@enduml

加密

hexo-blog-encrypt ,具体过程也是参考链接完成安装、使用的。

图床

选用 路过图床

  • 不用注册账号
  • 未注册最大5M,注册后最大10M。大小都够了,不行的话可以提前用 https://tinypng.com/ 压缩一些
  • 上传后提供多种格式供嵌入代码

评论

使用disqus,其账号保持和github的账号一致,毕竟blog内容也在github上。用github用的邮箱注册一把,

然后我当前的主题好像不支持

该用Valine

Valine是基于 LeanCloud 作为数据存储的

  • 登录 https://console.leancloud.app/ 注册 (用国际版,国内的版本似乎还要实名认证)

  • 邮箱验证,手机验证

  • 创建应用:控制台 -> 创建应用(开发版)

  • 创建 Class: CounterComment (默认权限配置即可)

  • Settings-> App keys 获取AppIDAppKey。放到对应主题的 _config.yml

链接中的括号

解决方法1:
%28 代替(, %29代替) 主要是后者会歧义链接部分的结束.,这是使用url符号码去代替ascii的符号,能够解决这个问题。可参考 https://www.w3schools.com/tags/ref_urlencode.asp The default character-set in HTML5 is UTF-8.

例如:
更多关于 Telegram 的介绍可以查看 Wikipedia

解决方法2:
直接使用特殊字符的编码

例如:
更多关于 Telegram 的介绍可以查看 Wikipedia

提示块

目前主题貌似暂时不支持
[note]
Note: This is a note.

[warning]
Warning: This is a warning.

[warning] 我是warning类型引用


删除线

跑路指南哇

锚点

说明文字,点击这里会跳到下面的位置

跳转到的位置

上标、下标

1
2
H<sub>2</sub>O  CO<sub>2</sub>
爆米<sup>TM</sup>

效果:

1
2
H2O CO2
爆米TM

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2019-2024 John Doe
  • Visitors: | Views:

请我喝杯咖啡吧~