xehoth / xehoth-blog-comment

0 stars 0 forks source link

「Hexo」gitalk 评论 | xehoth #244

Open xehoth opened 7 years ago

xehoth commented 7 years ago

https://blog.xehoth.cc/Hexo-gitalk/

各种评论服务都挂了后,感觉还是 github 最靠谱,Gitalk 是一个基于 Github Issue 和 Preact 开发的评论插件。这里记录 Hexo 使用 gitalk 作为评论插件的修改方法(支持 markdown + mathjax)。

xehoth commented 7 years ago

数学公式 + markdown 测试

数学公式

markdown 的原因,还是必须对 \ 等字符转义......

单行

$\sum\limits_{i = 1} ^ ni$ $\frac {n} {i - 1}$

多行

$$\begin{aligned}f ^ {(n)} &= \binom {n} {0} x ^ {(0)}[(1 - x) ^ {-4}] ^ {(n)} + \binom {n} {1} x ^ {(1)} [(1 - x) ^ {-4}] ^ {(n - 1)} \\ &= x[(1 - x) ^ {-4}] ^ {(n)} + n[(1 - x) ^ {-4}] ^ {(n - 1)} \\ &= x \prod{i = 1} ^ n(-4 - i + 1)(1 - x) ^ {-4 - n} + n \prod{i = 1} ^ {n - 1}(-4 - i + 1)(1 - x) ^ {-4 - n + 1} \\ &= x \prod{i = -4} ^ {-n - 3}i(1 - x) ^ {-4 - n} + n \prod{i = -4} ^ {-n - 2}i (1 - x) ^ {-3 - n} \\ &= \frac {(n + 3)!} {3!}x(1 - x) ^ {-4 - n} + \frac {n(n + 2)!}{3!}(1 - x) ^ {-3 - n} \end{aligned}$$

高亮

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}
#include <iostream>
int main() {
    std::cout << "Hello World";
    return 0;
}
yoer77 commented 6 years ago

博客好漂亮~ 决定抄一下。

HuXuzhe commented 6 years ago

你好,主题里面没有head.js这个文件呢

kbyyd24 commented 6 years ago

正在考虑用这个,但是很担心 clientID 和 clientSecret 暴露了会不会有安全问题